Show HN: Typebase – A single-folder back end you write in TypeScript
Typebase introduces a TypeScript-first backend paradigm, allowing developers to define their entire server logic and database schema within a single codebase folder. It promises the developer experience of integrated solutions like Convex with the database ownership of Supabase, explicitly tackling the complexity of SQL-based RLS. The Hacker News crowd debated its innovation against existing full-stack frameworks while appreciating its fresh approach to backend development.
The Lowdown
Typebase is a new TypeScript-centric library designed to streamline backend development by integrating server logic directly into existing application repositories. It aims to offer the seamless developer experience (DX) found in platforms like Convex, but with the data ownership and flexibility characteristic of Supabase, addressing common frustrations with existing backend solutions.
- Developers define their database schema, server actions, and authentication within a dedicated
typebase/folder in their project. - It generates a fully typed server that client-side frameworks (Next.js, SvelteKit, Nuxt, Expo) can call as if they were local functions.
- Deployment is handled via a CLI, targeting serverless platforms like Vercel, Cloudflare Workers, or Deno Deploy, and using Neon for PostgreSQL.
- A core innovation is its explicit, TypeScript-based authorization, which directly addresses the perceived pitfalls of implicit, SQL-based Row Level Security (RLS).
- Built upon established tools such as oRPC, Drizzle, and better-auth.
- The project's marketing includes a series of self-aware, humorous, and fabricated testimonials.
Typebase positions itself as a compelling option for developers seeking a highly integrated, type-safe, and transparently authorized backend, particularly those looking to avoid the complexities of traditional backend setups or the implicit nature of RLS.
The Gossip
Framework Fracas & DX Discourses
Commenters engaged in lively debate over Typebase's positioning relative to existing solutions like Next.js (with Drizzle/better-auth), Convex, and Supabase. While some appreciated its integrated "backend as a folder" approach as a step forward, others questioned its novelty, suggesting it's a re-bundling of existing components or a "reinvention of the wheel." The project's explicit authorization was largely seen as a significant improvement over SQL RLS.
The Faux Feedback Furore
The unique use of clearly labeled, humorous fake testimonials in the project's marketing sparked a divided reaction. Many found this candid and refreshing approach hilarious and a welcome break from typical marketing jargon. However, a minority expressed strong disapproval, viewing any form of fabricated endorsements, even self-mocking ones, as unprofessional or misleading.
Deployment Details & Database Deep Dives
Discussions delved into the practicalities and technical underpinnings of Typebase's deployment and database interactions. Users inquired about database migration processes, the ability to integrate middleware into existing app servers, and specific considerations for serverless targets like Cloudflare Workers (e.g., D1 integration vs. Neon). The creator and community members provided clarifications, highlighting the decoupled nature of the DB layer.