That config gives you a full blog API — user auth, JWT login, foreign keys, draft/published visibility rules, auto-migrations, OpenAPI docs, and an admin panel. No backend code, just a typed config object.
[!NOTE]
Teenybase is early (v0.1). Actively developed, API stabilizing. Good enough to ship side projects and MVPs, not yet proven for high-stakes production.
Quick Start
A real run of the commands below; the npm install, migration and server start-up waits are shortened.
npx teenybase create my-app --yes # scaffold + npm install (template: with-auth)
cd my-app
npx teenybase deploy --local --yes # generate and apply migrations to the local database
npx teenybase dev
Use npx teenybase, not npx teeny: the npm package named teeny is unrelated. Once teenybase is installed (in the project or with npm i -g teenybase), its CLI is also available as teeny.
Backend running at localhost:8787. Full REST API, auth endpoints, Swagger docs at /api/v1/doc/ui, admin panel at /api/v1/pocket/.
Deploy to your own Cloudflare account:
npx wrangler login # one-time: authenticate with Cloudflare
npx teenybase deploy --remote # uses your login's account, creates the D1 database, uploads secrets, deploys
No Cloudflare account? npx teenybase deploy --temporary deploys to a temporary one: it prints the live URL and a claim link that keeps it if you sign in within 60 minutes. Details: Try without an account.