Inspiration
Plenty of organizations still run on web software with no API and no export button: clinic portals, vendor systems, university pages, internal admin tools. Their data is trapped behind screens, so people become the integration, retyping and copying records between systems by hand.
Replacing these systems is slow and risky, mostly because nobody knows exactly what's inside them. We wanted to solve that first step with nothing but a URL, and without touching the old system's code.
The name is a play on words: REST + restore. We give old systems a REST API and restore access to their data.
What it does
RESTore turns an old website with no API into a modern REST API and MCP server, using a team of NVIDIA Nemotron agents, in minutes, without changing the old system.
Paste in a URL and watch the agents work on a live dashboard:
- Explorer (Nemotron 3 Nano Omni) maps the site read-only and extracts every record.
- Parser (Nemotron Parse) works in parallel, reading the PDFs and scanned images the Explorer finds.
- Operator (Nemotron 3 Super, falling back to Nano) cleans up the data model and designs the API.
- Server (deterministic code) loads everything into SpacetimeDB and serves a tested REST API,
/docsand an MCP server. - Ask the API (Nemotron with function calling) answers plain-English questions by calling the MCP tools that were just generated, showing every call and the data that came back.
Example run: a professor's site from the early 2000s with no API became 12 endpoints over 122 records (announcements, 79 course offerings, projects, and a scanned exam form read by Nemotron Parse) in under 5 minutes, passing 24/24 self-tests. Asking "What are his office hours?" makes Nemotron search the new API through MCP and answer "Room SCI 1.220 (from /projects)".
The highlight: a multi-agent NVIDIA Nemotron architecture
Design principle: Nemotron decides, code executes, every decision is checked
Each agent uses Nemotron where judgement is needed: understanding a page, naming data, designing an interface, choosing tools. Plain code does what must be exact and repeatable: copying rows, validating, serving, testing. Every model output passes a checkpoint before anything downstream uses it. That's what makes an autonomous pipeline safe to point at a real system.
The workflow
URL
│
┌──────────────┴──────────────┐
▼ ▼
① EXPLORER ② PARSER (run at the same time)
Nemotron 3 Nano Omni Nemotron Parse
page → mapping → rows PDF / image → markdown
│ records stream live into SpacetimeDB
└──────────────┬──────────────┘
▼
data_model.json + records/*.jsonl
▼
③ OPERATOR Nemotron 3 Super (→ Nano fallback)
cleanup pass → API design → checker → one repair round
▼
operations.json
▼
④ SERVER deterministic code
SpacetimeDB load → REST API + /docs + MCP server → self-test every route & tool
▼
⑤ ASK THE API Nemotron + function calling over the generated MCP tools
Agents hand off through shared JSON contracts (data model, records, operations.json) and report through one event bus, so the dashboard shows every step live.
Every NVIDIA checkpoint, in order
| # | Agent | Nemotron call | What the model decides | How the output is checked |
|---|---|---|---|---|
| 1 | Explorer | Nemotron 3 Nano Omni: page understanding | Page type, which tables hold which records, which column means what, the record's own detail-link pattern, which links to follow | Every mapping is validated against the real page (columns exist, aren't empty, aren't vague names like note, col1). Bad mappings go back with the exact problems for one repair round and are never cached. Invented links are refused. |
| 2 | Explorer | Nemotron: packed-cell splitting | A regex that splits cells like "42 points by alice 3 hours ago" into fields |
Code runs the regex on every row; under 75% coverage it goes back to Nemotron with the failing rows. It's re-checked on every later page that reuses it. |
| 3 | Parser | Nemotron Parse (markdown_no_bbox) |
Transcribes each PDF page and document image into markdown, in reading order | Pages are rendered at the right resolution and kept under the inline size limit. Photos with no text are dropped. Every page is traceable to its source file. |
| 4 | Operator | Nemotron 3 Super: cleanup pass | Renames vague entities and fields, writes descriptions, merges duplicates, moves misfiled groups, using real samples grouped by source page | Code accepts only valid names with no collisions, never empties an entity, never moves the main group, and protects the Parser's Documents. |
| 5 | Operator | Nemotron 3 Super: API design | Endpoints, filters suited to the real value distributions, search fields, and write endpoints from the forms it saw | A checker validates every field, path, type and filter, and one base path per entity. Problems go back for one repair round. Anything still invalid is dropped. Code guarantees list, get and search endpoints. |
| 6 | Server | none | Deterministic build: routes and MCP tools come straight from operations.json |
Self-test: every route is called with the Operator's own examples and every MCP tool is called like a real AI client. It goes live only if they pass. |
| 7 | Ask the API | Nemotron writes example questions | Natural questions grounded in the real catalog | Code keeps only the ones a search proves will find something. |
| 8 | Ask the API | Nemotron with function calling over the generated MCP tools | Which tools to call, with what arguments, and how to answer | Code first searches every endpoint for the question's keywords. Nemotron answers only from tool results, and every call is shown with its JSON. |
Learn once, code runs fast
Calling a model for every record scales with the number of records $N$. Learning each page type once scales with the number of page types $T$:
$$ \text{calls}{\text{per record}} = O(N) \qquad \text{vs.} \qquad \text{calls}{\text{RESTore}} = O(T), \quad T \ll N $$
On the professor's site, Nemotron read 7 of 12 pages; every other page reused a learned mapping. On Hacker News, a few Nemotron calls produced 2,582 posts.
Right-sized models
- Nano Omni for the Explorer: fast, called often, and multimodal, so it can also read screenshots.
- Nemotron Parse: a dedicated document-transcription model for files.
- Super for the Operator: its 2–4 calls shape every endpoint, so reasoning quality matters most there.
- Function calling for the assistant, so it uses tools the way AI clients really do.
All models run on NVIDIA NIM. Each agent's model and endpoint is one setting (MODEL_EXPLORER, MODEL_OPERATOR, MODEL_PARSER, NVIDIA_BASE_URL_*), so any agent can move to a self-hosted NIM without code changes. If a model isn't available, the agent falls back automatically and the dashboard shows which model actually answered.
Running in parallel, live
- The Explorer and the Parser run at the same time.
- Records stream into SpacetimeDB as they're found.
- Every agent emits events to the dashboard: pages read, documents parsed, endpoints proposed and fixed, each route tested.
- Stop halts every agent at the next step and shuts down the generated server.
Why it's modernization
Before, the data could only be read by a person clicking through pages. Afterwards, software can use it:
- Query exactly what you need:
GET /courses/search?q=CS3162instead of scrolling through 20 tables. - Build on it: a student app, a dashboard or a calendar sync in an afternoon, without scraping HTML that breaks.
- Connect it: export to spreadsheets, sync to other systems, post new announcements to Slack.
- AI-ready on day one: the MCP server gives assistants proper tools, so they answer from real data instead of guessing. Our chat shows Nemotron doing exactly that.
- Unlock files: scanned forms and PDFs become searchable text through Nemotron Parse.
- Documented and dependable: every endpoint, field and filter is in
/docs, stored in a real database, and tested.
This is the first step of the "strangler fig" pattern companies use to modernize safely: put a clean interface in front of the old system, then replace pieces behind it over time. That step normally takes developers weeks per system. RESTore does it automatically, in minutes, while the old system keeps running untouched.
How we built it
- Explorer: Playwright captures each page into a compact page model: tables, including header rows written as plain cells and same-shape tables split by headings; repeated list blocks; forms; label/value pairs; links. Nemotron 3 Nano Omni maps each new page type; code extracts every row and follows pagination.
- Parser: a background worker collects PDF links and large images, renders pages with pypdfium2, and calls Nemotron Parse through NIM.
- Operator: code profiles real field values (types, distinct values, ranges), Nemotron cleans up and designs, and a code checker enforces a valid, consistent API.
- Server: FastAPI builds the routes,
/docs(with field descriptions) and an MCP server (JSON-RPC over HTTP and stdio) fromoperations.json, reading from SpacetimeDB. - Ask the API: a Nemotron agent with native function calling over the MCP tools, plus a code-run, rarity-ranked keyword search, so answers are grounded even with smaller models.
- Data: SpacetimeDB stores records, schemas, jobs and events; saved sites can be served again instantly.
- Dashboard: React + Vite, with one
python -m apicommand running the whole pipeline. Each agent's tile shows its NVIDIA model and live progress.
Challenges we ran into
- Exploring safely: an autonomous agent on a live system can't be allowed to change anything. The Explorer never submits forms or clicks buttons, never follows destructive-looking links ("delete", "log out", "vote"), never reads password fields into the data model, and only follows links that really exist on the page.
- Trusting model output: answers can be malformed or wrong, so every Nemotron response hits a checkpoint: it's validated, repaired once with specific feedback, or replaced by a labelled code fallback.
- Messy real sites: our first run on a real academic site produced vague entities ("Professor" holding course notes), empty endpoints from code files, truncated text and a missed announcements table. Fixing it led to multi-table mapping per page, header detection, merging same-shape tables, skipping non-HTML files, and the Operator's cleanup pass.
- Making tool use reliable: a model choosing its own search terms gave up too easily ("office hours" never matched "Office and Hours"). Word-order-independent search and a code-run search before Nemotron answers made it dependable.
- Finding the right scope: we went from a UI overlay, to two-way sync, to database + API + MCP.
- Testing without real data: mock 2005-style sites built from data files let the pipeline check its output field by field and fail if any write reaches the site.
- Building in parallel: four people on connected agents, held together by shared JSON contracts agreed on early.
Accomplishments that we're proud of
- A full multi-agent pipeline from one URL: four agents and three NVIDIA models, running live from the dashboard.
- Every Nemotron decision has a checkpoint, and the dashboard shows which model made each one.
- Nemotron uses the API it just built, through MCP, with every tool call visible. The system builds its own tools, then proves them.
- A real site we never tuned for became a searchable, tested API in under 5 minutes, with every value traceable to the original page.
- 2,582 Hacker News posts from a handful of Nemotron calls.
What we learned
- Agents are most reliable when models make the decisions and code does the checking and the repetitive work.
- The right model per job beats one model everywhere.
- Safety rules belong in the system itself, not in a prompt.
- Grounding matters: a small model with a good retrieval step beats a large model guessing search terms.
- Being clear about limits builds trust. RESTore can only see what a site shows, so hidden logic like billing formulas stays out of reach.
What's next
- Live writes: write endpoints are already designed from the forms the agents find but return
501for now. Next is a Nemotron worker that performs each write on the old system and verifies the result. - Typed fields from packed text: have Nemotron split strings like course code, days, time and room into typed fields, so filters like
?room=work everywhere. - Vision-first exploration: turn on Nano Omni's screenshot reading for canvas-heavy and JavaScript-heavy sites.
- Scheduled refresh: re-run on a schedule and stream only the changes into SpacetimeDB.
- On-premises: self-host every model as an NVIDIA NIM so sensitive data never leaves the building.
Built With
- electron
- fastapi
- javascript
- nemotron
- python
- react
- spacetime
- typescript