Postgres · file-based APIs · one command
Write a Postgres schema and HTTP handlers in TypeScript. robodev deploy syncs the database and serves the APIs — with Swagger on the project host.
01
Schema in TypeScript
Declare tables with Drizzle in database.ts. Deploy creates the named database and reconciles columns — no migration files.
02
File-based APIs
Export get or post from api/planets.ts and it becomes GET /planets. Zod validates query, body, and response.
03
Hosted per project
Each project gets its own host, tenant Postgres, and /docs. The starter UI talks to it via VITE_API_URL.
database.ts
Default-export defineDatabase. Starbase creates that Postgres database on first deploy and keeps tables in sync after that. Destructive changes ask for confirmation, or pass --force.
api/*.ts
defineApi gives you a typed db, parsed query and body, and optional response schema. Filename is the path. Open /docs on the project host to try the generated OpenAPI.
Lovable · Bolt · v0
Lovable, Bolt, v0, and other frontend-only AIs should not install @supabase/supabase-js. Point fetch at your project host with VITE_API_URL and keep database.ts / api/*.ts on Robodev. The docs page has a prompt you can paste into the tool. For in-app sign-in, use Robodev Auth (Bearer tokens) at /docs/auth.
1
Sign in
robodev auth opens Starbase in the browser and stores tokens in ~/.robodev.
2
Create
robodev create scaffolds the starter, creates a project, and deploys it.
3
Iterate
Edit database.ts or api/, then robodev deploy. npm run dev serves the UI.