Skip to content
- Try it on Windows: One line in the Run box or a terminal starts a local Protobase with workflows on and a sample workflow, with nothing installed, and one folder to delete afterwards.
- Project starter:
npm create protobase (also bun create and pnpm create) starts a new app from the scratch, automations (workflows on), ERP, property portal or real estate preset, with its own Postgres in Docker for development, and prints the next steps. Each preset has an AGENTS.md with rules for coding agents.
- Start on an existing database:
npm create protobase <database-url> makes a project on a Postgres database you already have and asks which of its tables become resources, only reading the database.
- Example apps: Seeded example apps on Postgres: an ERP, real estate property management and a public property portal.
- One config: The whole app is one object of data in
protobase.config.ts, typed with defineConfig, with a sensible default for every key.
- Code found by path: The config names jobs, hooks and providers, and Protobase finds their code by its path, such as
jobs/<name>.ts.
- JSON config: The same config works as
protobase.config.json, with values from the environment written as $env, and a JSON Schema that checks it in the editor.
- App options: The app’s name, public URL, secret, language, time zone, install colours and mobile build, each with its type, default and environment variable.
- Sign-in options: Every key of
auth and authenticate, from roles and organizations to sign-in providers and tokens of an auth server elsewhere.
- API options: The REST API’s path, keys, CORS, access defaults, query limits, error reporting, write hooks and MCP tools.
- Admin app options: The assistant, the maps and the plugins the admin app loads.
- Jobs and events options: Each job’s retries, timeout and schedule, and the settings of events, history, webhooks and notifications.
- Files options: The file providers, retention, signing, the Storage API and the image library.
- Scaffold from a database: Reads your Postgres tables and writes the data config for them, with field types, keys, relations, enums, soft delete, tenants and search filled in, and with
--ui a first view of each.
- Safe re-scaffolding: Running scaffold again adds only the columns that are not declared yet and leaves your own config code as it is.
- Schema drift report: After each scaffold, lists declared fields whose column is gone, whose type changed or whose enum values differ, with a suggested fix.
- Doctor: Checks every resource and view against the database, the ones Protobase adds such as webhook subscriptions included, with the reads that lack an index, and prints the fix for each problem. It then runs the server’s startup checks, such as the triggers of resources with events, so a project it passes starts. With
--without-database it checks what the config and the migrations alone tell, such as relations, sorts and those triggers, and lists the checks it skipped.
- Apps without resources: An app with no resources on purpose, such as one that only signs people in, says so with
resources: 'none', so doctor accepts it while still catching an app that lost its resources by mistake.
- Admin without a view: A table with an empty view already gives a working admin with every column, sorting, paging, a record page and a New button.
- Agent skills:
protobase skill install writes agent skills that match the installed version into the project, for the coding agents that work on it.
- Docs as Markdown: Every docs page is also Markdown at its address plus
.md, for coding agents and chat assistants.
- llms.txt: The docs site serves
/llms.txt, which links every page’s Markdown, and the protobase agent skill at /skills/protobase/SKILL.md, for chat assistants.