RC RANDOM CHAOS

Typebase turns a TypeScript folder into a deployable, fully typed backend

· via Hacker News

Original source

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

Hacker News →

Typebase, a Show HN launch, collapses backend development into a single typebase/ folder that lives inside an existing app. Developers define their database schema, server actions, and auth as TypeScript, and two CLI commands scaffold and deploy the result as a running server. The frontend then calls those actions as if they were local functions, with types flowing end to end. Deployment targets include Vercel, Cloudflare Workers, and Deno Deploy, with Postgres hosted on Neon; the company runs no infrastructure of its own, and developers can eject to self-host the generated server code.

The pitch leans hard on a critique of row-level security. Because RLS rules live in SQL that editors don’t typecheck, an overly broad UPDATE policy can hand write access to every column—including ones added later—and slip past review unnoticed. Typebase makes authorization explicit in application code: an action declares which columns it accepts, auth checks run before anything reaches the database, and adding a column forces the compiler to surface who can write to it. The framing is squarely aimed at the AI-coding era, where an agent generating a permissive policy at 2am is exactly the failure mode a compiler is meant to catch.

Positioned as “the DX of Convex with the openness of Supabase,” Typebase targets developers who want code-resident backend functions over a database they actually own. It ships client integrations for Server Components, SvelteKit, Nuxt, and Expo, though file storage isn’t built yet and sits on the roadmap. The landing page also takes a self-aware jab at the genre, openly labeling its testimonials as fabricated.

Read the full article

Continue reading at Hacker News →

This is an AI-generated summary. Read the original for the full story.