Show HN: Typebase – A single-folder back end you write in TypeScript

Hacker News Top Tools

Summary

Typebase is a TypeScript-based backend tool that simplifies server deployment by allowing developers to define schemas and actions in a single folder, with support for various frontend frameworks and cloud platforms.

Hey HN!<p>I built Typebase, a library that gives you Convex&#x27;s DX with Supabase&#x27;s openness.<p>After trying Supabase I liked how fast it is to spin up a DB and auth, but really didn&#x27;t like using RLS and SQL for authorization. With Convex I loved how your server &quot;lives&quot; in your code, but disliked the DB model and the realtime-first defaults.<p>With Typebase you just write TS files inside a typebase&#x2F; folder in your existing repo. You can define your DB tables inside a schema.ts file and export server functions that your frontend calls like local functions, fully typed. Auth is built in.<p>Then one CLI command uploads your server to any of the available providers (Vercel, Cloudflare Workers or Deno Deploy for the servera and Neon for the DB), or generates the code so you can deploy it wherever you want.<p>Built on top of oRPC, Drizzle, and better-auth.<p>Happy to answer any questions or feedback!
Original Article
View Cached Full Text

Cached at: 08/29/26, 03:36 PM

# Typebase: your backend is a folder of TypeScript. AI loves code. Source: [https://typebase.io/](https://typebase.io/) 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\. [Get started](https://typebase.io/docs/getting-started)[Typebase in 100s](https://youtu.be/pvL5LOt567g) Ships with first\-class guides for Next\.js·SvelteKit · Nuxt·Expo Idiomatic clients for each one: Server Components, SvelteKit load functions, Nuxt plugins, Expo SecureStore\. How it works ## Zero to a deployed backend in two commands Everything happens inside your codebase\. The CLI handles codegen, schema pushes, and deployment\. 1. ### 01Scaffold 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\. `$ npx typebase\-io\-cli init` 2. ### 02Write 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\. 3. ### 03Deploy 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\. `$ npx typebase\-io\-cli deploy` ### Step 02, expanded - typebase/ - actions/ - mutations/ - queries/ - db/ ## 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\. vs\. 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\. Insecure policypolicy \#2 auth\.role\(\) = 'authenticated'lets every signed\-in user update every column of every row\. ## The DX of Convex\.The openness of Supabase\. Typebase exists because we wanted both and couldn’t find it: backend functions that live in your code, backed by a database you actually own\. Storage isn’t there yet; it’s next on the[roadmap](https://typebase.io/docs/roadmap)\.[Read the full comparison](https://typebase.io/docs/comparison) ## Industry\-shaking testimonials\* \*None of these people exist\. We checked\. Twice\. Legal is chill\. > “I deleted 40,000 lines of REST plumbing last quarter\. My tech lead cried\. I think they were happy tears\. I have stopped asking\.” MV Mariel Vonnegut Principal Eng, AI unicorn you’ve heard of > “Before Typebase I had three acronyms in my pipeline: REST, gRPC, and WHY\. Now I have one: fn\(\)\. I have never been happier and my Oura ring agrees\.” DD Dave Dave Senior Fullstack, maybe > “I’ve told four separate therapists about Typebase\. Two stopped taking me as a client\. The other two are now shipping an app with it\.” CR Clementine Ryu Engineer, between therapists > “My co\-founder asked where the auth lives\. I said “a file called auth\.ts\.” He hasn’t spoken to me since\. I assume he’s impressed\.” TL Tomás Lindberg Indie hacker, possibly single > “We replaced 14 microservices with one folder\. The DevOps team threw me a party\. The party was a meeting\. The meeting was about layoffs\.” A Anonymous For obvious reasons > “10/10 would make my backend a folder again\.” HP Hannah Pollard Senior Folder Engineer, self\-appointed Do you have a real, non\-fabricated quote? We will happily replace one of these humans with you\. ## Give your agent a backend it can read\. It takes about ninety seconds\. Most of that is`npm install`\. `$ npm i typebase\-io && npm i \-D typebase\-io\-cli` [Read the docs](https://typebase.io/docs/getting-started)[Star on GitHub](https://github.com/typebase-io/monorepo)

Similar Articles

microsoft/TypeScript

GitHub Trending (daily)

TypeScript is a language for application-scale JavaScript that adds optional types. The repository hosts the TypeScript compiler and tooling.

TypeScript 7

Hacker News Top

TypeScript 7 is a major release that rewrites the compiler in Go, achieving 8-12x faster build times while maintaining full compatibility, available now on npm.