Typebase
Write actions, a database schema, and auth as TypeScript files in a typebase/ folder inside your app. Your frontend calls them like local functions, end-to-end typed, zero REST boilerplate.
Cost / License
- Free
- Open Source (MIT)
Platforms
- Self-Hosted
- JavaScript
- Typescript
- npm
Features
- Backend
- Support for Typescript
Typebase News & Activities
Recent activities
Typebase information
What is Typebase?
Your backend is a folder of TypeScript.
Define your database schema, server actions, and auth in a typebase/ folder inside your app. One command deploys a fully typed server your frontend calls like local functions.
How it works:
Zero to a deployed backend in two commands
Everything happens inside your codebase. The CLI handles codegen, schema pushes, and deployment.
- Scaffold: One command creates a typebase/ folder in your existing app, with a database schema, example actions, and optional auth or realtime publishing. No separate repo, no dashboard.
- Write TypeScript: Define tables in db/schema.ts, export actions from actions/, drop in auth.ts, env.ts, and publisher.ts for realtime. Every export is typechecked end to end.
- Deploy: Ships your folder as a server on Vercel, Cloudflare Workers, or Deno Deploy, with Postgres on Neon. Or generate the server code and host it anywhere. Typebase owns zero servers.
The problem with RLS
RLS is implicit and lives in a SQL dialect your editor doesn’t typecheck. One UPDATE policy gives write access to every column, including the ones you add tomorrow. The overly permissive clause an agent slipped in at 2am sails through review, because no compiler is going to flag it.
With Typebase, authorization is explicit. Your action declares the columns it accepts and your auth check runs in code before any of them reach the database. Add a column, the compiler tells you who can write to it. The same code your agent writes is the code your compiler checks.
Give your agent a backend it can read. It takes about ninety seconds. Most of that is npm install.

