Backends
Design a service in one file. Globetrotter checks it, writes the API contract and the server code from it, and keeps the pages, the contract and the code in step.

What you design
designs/<name>.service.json holds the stores, entities, services, flows,
jobs and sign-in rules of a backend. You edit it in the studio's Backend tab,
by an agent's tools, or by hand.
What the vocabulary covers, each shown in Concepts:
- list queries that filter, sort and page, by a link (
?assignee=<id>) and by when a row was made or changed too; - updates where
nullempties an optional field, for the params that say so; - entities linked one-to-many or many-to-many, and rows that belong to an organisation;
- shapes, state machines, clients, webhooks, files in a bucket;
- versions, so two people cannot overwrite each other's edit (
If-Match); - idempotency keys, so a retry runs nothing twice (
Idempotency-Key); - rate limits per person, organisation or address (a 429 with
Retry-After); - API keys the service keeps, with scopes, expiry and rotation.
What is generated
npx globetrotter sync validates the file, lints it and writes:
- the OpenAPI contract the pages and the server share;
- SQL migrations, one numbered file per change, applied by you;
- a Python server (FastAPI) and, if you turn it on, a Rust one (axum).
What is yours
The handler of each operation, each flow step and each job, plus tests and the file that wires them in. Generated code calls your code through typed interfaces; regeneration never overwrites it.
Where to go
| I want to… | Read |
|---|---|
| Run a backend and call it in ten minutes | Quickstart |
| Understand the model: entities, services, flows, targets | Concepts |
| Look up a primitive, a prop, a route or a lint rule | Reference |
| Know which files are written, and which are mine | Generated code |
| Write an operation, a step or a test | Your code |
| Set up sign-in, roles and audit, and know what is guarded | Auth and security |
| Change the schema, run migrations, back up | Data and migrations |
| Run work after a change, or on a schedule | Flows and jobs |
| Put it on a server and keep it running | Deploy and operate |
| Use the Backend tab, or drive it from an agent | Studio and agents |
| Run Python and Rust side by side, and switch | Targets |
| Know what it cannot do yet | Limits |
| See how it was built and why | History and plan |
What it is not yet
The route shape is fixed: you choose a service's base path, not each operation's path. An LLM node is designed and never written.
Nearly every run here was on SQLite; one example ran on Postgres 16, on both targets, and on MySQL 8.4 on Python. Also written are row-level security, an organisation read from a token (Python only), both Dockerfiles, the compose file and the CI workflow; none of them has been run or built. Files in a bucket ran against a local fake, never a real one, and rate limits never counted in a real Redis. Both targets generate managed API keys, with or without organisations, and one key was used across both on one database both ways. What has been run is one table.
Rust delivers a webhook at least once, an unpaged list is cut at 50 rows, CORS is off until you name origins, and failed sign-ins are always rate limited while an operation is limited only where the design says so, each process counting its own unless the design names a redis store. Limits lists each gap and what to do instead.