News for hackers. Stuff that matters.

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

https://typebase.io

Hey HN!

I built Typebase, a library that gives you Convex's DX with Supabase's openness.

After trying Supabase I liked how fast it is to spin up a DB and auth, but really didn't like using RLS and SQL for authorization. With Convex I loved how your server "lives" in your code, but disliked the DB model and the realtime-first defaults.

With Typebase you just write TS files inside a typebase/ 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.

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.

Built on top of oRPC, Drizzle, and better-auth.

Happy to answer any questions or feedback!

( 48 comments | on HN )
Re:Show HN: Typebase – A single-folder back end you write in... by xixixao on Saturday August 29, 2026 @11:10AM (#49490559)
Very cool!

Note that you can run Convex on top of your own Postgres, and we do this for our internal apps, with very nice performance (plenty for our internal use cases).

Re:Show HN: Typebase – A single-folder back end you write in... by andrewww-dev on Tuesday September 01, 2026 @12:48AM (#49518083)
Thanks! But even if you run Convex on your own Postgres you still need to follow the Convex DB model right?
Re:Show HN: Typebase – A single-folder back end you write in... by phren0logy on Saturday August 29, 2026 @11:44AM (#49490842)
I love the (well-disclosed) fake testimonials. Hilarious!
Re:Show HN: Typebase – A single-folder back end you write in... by adamddev1 on Saturday August 29, 2026 @02:58PM (#49492336)
> “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.”

So good. I laughed out loud at this.

Re:Show HN: Typebase – A single-folder back end you write in... by andrewww-dev on Tuesday September 01, 2026 @12:29AM (#49517966)
Thanks! I'm glad you liked them!
Re:Show HN: Typebase – A single-folder back end you write in... by rgbrgb on Saturday August 29, 2026 @11:45AM (#49490852)
I’ve been curious about trying the Supabase type of RLS model for an app but haven’t yet. I like the idea of the db defined api like postgraphile and hasura but had trouble with testing and ergonomics. This looks pretty nice though, it’s cool that you’re thinking about ergonomics for working with coding agents. I feel like a hard thing with that rn is that everyone is kind of figuring out different workflows for AI coding right now so it’s hard to optimize DX. Can you talk a little about your personal agent workflow and how this fits it?
Re:Show HN: Typebase – A single-folder back end you write in... by k4rli on Saturday August 29, 2026 @12:55PM (#49491414)
I've only had experience in one full-stack project with supabase RLS so experience is limited. However it seemed like a mess. Seems much more human-maintainable to have a classic spring/golang backend. For sure in some projects, esp mobile apps, it makes more sense, and fable-level models might also keep it from being full spaghetti.

Also Supabase at that time wasn't reliable and it's not really made for self-hosting. Felt almost as bad as Github stability these days.

Still, based on this limited experience, I've been avoiding RLS and supabase.

Re:Show HN: Typebase – A single-folder back end you write in... by NewJazz on Saturday August 29, 2026 @05:55PM (#49493679)
I thought supabase was mainly for self hosting? Like it was self-hostable firebase... Not too familiar with it though.
Re:Show HN: Typebase – A single-folder back end you write in... by bosky101 on Saturday August 29, 2026 @11:50AM (#49490900)
very cool. though the deploy wasnt clear if i can just run migration on some pg url. and it wasnt clear if i can bind some middleware into my existing app server (like express)
Re:Show HN: Typebase – A single-folder back end you write in... by andrewww-dev on Tuesday September 01, 2026 @12:20AM (#49517915)
You can use your own DB by saving the URL on DATABASE_URL inside .env. For now migrations are not supported but they are coming on the next version. Another feature that is on the pipeline is being able to generate the server so you can bind it to your current server
[dead]
Re:Show HN: Typebase – A single-folder back end you write in... by optimisticedits on Saturday August 29, 2026 @12:49PM (#49491368)
I see no code there to automatically pick D1 for the DB when you deploy to Cloudflare.

On Cloudflare, it should use the `@neondatabase/serverless` driver configured here https://github.com/typebase-io/monorepo/blob/fa3af0b71126caa...

Re:Show HN: Typebase – A single-folder back end you write in... by andrewww-dev on Tuesday September 01, 2026 @12:12AM (#49517878)
Hey! For now we only support Neon but the idea is too add more DB providers soon. I wanted to build a "base layer" to show that Typebase is versatile enough, I'll add D1 to the priorities
Re:Show HN: Typebase – A single-folder back end you write in... by ramon156 on Saturday August 29, 2026 @12:35PM (#49491274)
Fake reviews are a hard no-no imo. Really weird addition, but I suppose it wasn't you who got the idea.

Looks an awful lot like a orpc, just built on top of drizzle instead of raw queries. I'm sure some people want this, but it seems like gross duct tape that will bite you in three years

Re:Show HN: Typebase – A single-folder back end you write in... by dinkleberg on Saturday August 29, 2026 @10:21PM (#49495114)
I’m very surprised to see others commenting here that they like the fake reviews. Claude loves adding that shit, but you’re allowed to modify and remove the junk it produces.

> * None of these people exist. We checked. Twice. Legal is chill

Maybe I’m just the old man yelling at the clouds, but can we not have some integrity and actually put the truth out there? There is nothing wrong with using AI, but we’re still responsible for our work.

Re:Show HN: Typebase – A single-folder back end you write in... by brianpg on Monday August 31, 2026 @09:43AM (#49509722)
I don't know, I have plenty of gray hair, but I still love a little tongue in cheek humor. I still remember the first cold email I got asking for 12 minutes of my time - I replied. Now if the disclaimer was buried at the bottom of the page and this product was asking for money, I would agree there is more of a trust issue here.
Re:Show HN: Typebase – A single-folder back end you write in... by andrewww-dev on Tuesday September 01, 2026 @12:23AM (#49517924)
Hey! I actually added the fake reviews myself, I wanted to give some personality to the landing.

> Looks an awful lot like a orpc, just built on top of drizzle instead of raw queries

Typebase is built on top of oRPC, the idea with Typebase is that you can build everything on super simple way and Typebase will take care of the rest.

Re:Show HN: Typebase – A single-folder back end you write in... by pyrolistical on Saturday August 29, 2026 @12:54PM (#49491405)
It’s like next.js but for backend.

Personally not for me. These are very productive once you learn the shape they expect.

But the wheel needs to be reinvented on how to do everything.

I ran have straight forward verbose code with no hidden control flow

Re:Show HN: Typebase – A single-folder back end you write in... by NoItsDanger on Saturday August 29, 2026 @04:19PM (#49493013)
I’ve been saying for years we need CCR (Client Centric Rendering).

What we do is have the server just serve the page and let the client handle most of the rendering.

It’s novel and innovative

Re:Show HN: Typebase – A single-folder back end you write in... by anon7000 on Saturday August 29, 2026 @05:36PM (#49493550)
Smells like SPA
Re:Show HN: Typebase – A single-folder back end you write in... by shunia_huang on Sunday August 30, 2026 @12:33AM (#49495723)
Isn't this html + javascript?
Re:Show HN: Typebase – A single-folder back end you write in... by jodacola on Saturday August 29, 2026 @03:45PM (#49492732)
> once you learn the shape they expect

I’m reminded of this essay discussing frameworks versus libraries [0].

[0] https://tomasp.net/blog/2015/library-frameworks/

Re:Show HN: Typebase – A single-folder back end you write in... by virgil_disgr4ce on Saturday August 29, 2026 @02:00PM (#49491888)
Am I missing something? The entire point of next.js is that it's backend+frontend in one project
Re:Show HN: Typebase – A single-folder back end you write in... by apsurd on Saturday August 29, 2026 @02:09PM (#49491966)
that’s likely the promise but it’s so confusing and high cognitive overhead to maintain that backend <-> frontend relationship. ‘use client’ - i think the special sauce for why people use nextjs is all frontend based. the frontend that comes from the backend.

nextjs dx is a special kind of hell. disclaimer: im just a simple rails guy.

Re:Show HN: Typebase – A single-folder back end you write in... by chrysoprace on Saturday August 29, 2026 @11:30PM (#49495431)
Next.js is a poor choice for a client-side application. It is first and foremost a server-side framework, and trying to force it to be client-side is to work against it. There are so many better options than Next.js for dedicated client-side front-ends.
Re:Show HN: Typebase – A single-folder back end you write in... by hirako2000 on Sunday August 30, 2026 @12:35AM (#49495733)
Nextjs is also a bundler for web applications. And it deploys the front end assets.

It's yet another backend framework, added that it only runs on vercel infrastructure.

There are better front end and back end servers, those that simply rely on nodejs to serve. Next.js does that, without vercel.

Re:Show HN: Typebase – A single-folder back end you write in... by virgil_disgr4ce on Monday August 31, 2026 @08:57AM (#49509202)
I don't understand this perspective. I've developed, delivered and maintained countless Next.js projects and never come close to considering it "high cognitive overhead." It's among the nicest DX I've experienced. It has a lot of features, I guess, but you don't have to use them if you don't like them. Next.js has very little to do with the frontend. The frontend is literally just react, which is why I commented in the first place. People keep acting like it's a "frontend framework" which doesn't make any sense at all.
Re:Show HN: Typebase – A single-folder back end you write in... by apsurd on Monday August 31, 2026 @01:39PM (#49512500)
React is a frontend framework. How do you get around that? It's invented entirely to handle client-side UX and reactive DOM updates which have to be DOM because it for the browser which is a frontend. Are you saying nextjs is the backend and react is just react, it's not nextjs' fault?

I'd say we disagree on the simplicity then: hydration, nextjs API reinventions of every interaction else 'use client' as an escape hatch which means it runs on the client but then what does the non 'use client' code do if nextjs is not a client-facing framework?

Re:Show HN: Typebase – A single-folder back end you write in... by socialest on Sunday August 30, 2026 @06:00AM (#49497256)
I let the LLM tokens flow. Usually it ends up saving me innovation tokens.
Re:Show HN: Typebase – A single-folder back end you write in... by scrollaway on Saturday August 29, 2026 @12:56PM (#49491418)
Scratching my head a little bit here, I'm not sure how this differs from NextJS (or Vite) with a layer of drizzle & better-auth.

Not that that layer isn't important. We ended up building something like this at Ingram, nextkit: https://github.com/ingram-technologies/nextkit - but we distribute it as a set of micro libraries that work well together rather than a unified framework. (Auth is nk-auth, built on top of betterauth, and sql is nk-db, built on top of drizzle)

You got to pretty much the same conclusions we did though regarding the "why".

Re:Show HN: Typebase – A single-folder back end you write in... by catlifeonmars on Saturday August 29, 2026 @02:03PM (#49491916)
What, in your opinion, is this not a good fit for?
Re:Show HN: Typebase – A single-folder back end you write in... by SillyUsername on Saturday August 29, 2026 @03:49PM (#49492769)
Enterprise software, stuff that you expect to scale exactly because it has queues and distributed computing.
Re:Show HN: Typebase – A single-folder back end you write in... by andrewww-dev on Tuesday September 01, 2026 @12:18AM (#49517907)
I think on of the best things about Typebase is that it allows you to have typed actions you can call from your backend as if it where functions of your front end, for that reason I dont think Typebase is a great tool when you have apps on different languages apart from TypeScript
Re:Show HN: Typebase – A single-folder back end you write in... by desireco42 on Saturday August 29, 2026 @02:25PM (#49492107)
I was about the ask a question but you just answered how it is built. I guess I will try it out, it sounds really good.

I love your approach, fake testemonials and all.

Re:Show HN: Typebase – A single-folder back end you write in... by andrewww-dev on Tuesday September 01, 2026 @12:23AM (#49517926)
Thanks!
Re:Show HN: Typebase – A single-folder back end you write in... by dsabanin on Saturday August 29, 2026 @06:20PM (#49493802)
Looks useful, congrats
Re:Show HN: Typebase – A single-folder back end you write in... by andrewww-dev on Tuesday September 01, 2026 @12:10AM (#49517868)
Thanks!
Re:Show HN: Typebase – A single-folder back end you write in... by stack_framer on Saturday August 29, 2026 @06:55PM (#49494061)
The pronunciation of "Vercel" near the end of the "Typebase in 100s" video was VER-cel, with the emphasis on the first syllable, instead of ver-CEL with the emphasis on the second syllable.

Was the video generated by AI?

Re:Show HN: Typebase – A single-folder back end you write in... by cliche on Saturday August 29, 2026 @07:38PM (#49494286)
Duh
Re:Show HN: Typebase – A single-folder back end you write in... by andrewww-dev on Tuesday September 01, 2026 @12:29AM (#49517962)
The audio is actually from a guy I hired on Fiverr but you are right that the pronunciation sounds kind of weird on Vercel.
Re:Show HN: Typebase – A single-folder back end you write in... by ishbrzero on Saturday August 29, 2026 @07:16PM (#49494177)
Sounds very interesting. I have to agree I didn't like RLS as well. I mean, it's useful but it seems too many knobs to turn...
Re:Show HN: Typebase – A single-folder back end you write in... by andrewww-dev on Tuesday September 01, 2026 @12:24AM (#49517930)
Yeah I had the same problem, I think is super easy to shot yourself by using RLS
Re:Show HN: Typebase – A single-folder back end you write in... by bdcravens on Saturday August 29, 2026 @11:57PM (#49495563)
To be honest, the use of AI in your marketing doesn't bother me. But paired with the fact that you have a newish HN account with no comments ever, and no comments on your own "Show HN" in response to others, doesn't put off strong trust signals.
Re:Show HN: Typebase – A single-folder back end you write in... by andrewww-dev on Tuesday September 01, 2026 @12:27AM (#49517946)
Hey! I created a new account on HN just to have an account specifically for Typebase and I'm sorry I dind't answer more quickly the post got traction a during the weekend a couple of days after I posted. I'm answering everything right now!
Re:Show HN: Typebase – A single-folder back end you write in... by brianpg on Monday August 31, 2026 @09:53AM (#49509845)
I have deployed and maintained plenty of diff setups on GCP, AWS, colo, and I have also used AI for coding, my concern is do we really trust AI to do prod deploy and maintenance of the backend yet? Not to mention what are the limitations here, someone already mentioned queues? But for a straightforward site with limited complexities, it might be cool to try out.
Re:Show HN: Typebase – A single-folder back end you write in... by andrewww-dev on Tuesday September 01, 2026 @12:34AM (#49518000)
Hey! Even tho I use AI to code faster I still review every line of code and I test every new feature. About the limitations, I'm a single developer working after work trying to add as many features as fast as I can so some of them may take more time to be ready. The good thing about Typebase is that under the hood is a normal TypeScript server so you can add any feature you want even if Typebase doesnt implemented natively!
Re:Show HN: Typebase – A single-folder back end you write in... by mermadicsolutio on Tuesday September 01, 2026 @11:06PM (#49531252)
What about you configure your aws cli and tell the agent which command to run for deployment? I found that useful since I don't have to expose any secrets to it, just a static set of commands
Re:Show HN: Typebase – A single-folder back end you write in... by desireco42 on Tuesday September 01, 2026 @10:18AM (#49522359)
I tried it on small project. A lot of promising ideas. I don't even care it is so new.

What didn't work for me is the build step. In a bigger project it should be normal to have this but I really love to interactively build and having to restart and rebuild after each change is issue for me.

Re:Show HN: Typebase – A single-folder back end you write in... by andrewww-dev on Tuesday September 01, 2026 @04:07PM (#49527392)
I'm glad you liked it! Where you using a local build or where you uploading to a server on each change?

For the local build we have the 'generate-server --watch' command and I want to add an option so on every rebuild it runs another command, something like 'generate-server --watch --command "pnpm run dev"' so on every change the server runs the latest version of the code.

For when you upload to a server theres no much we can do because the builds on the server take too long, something we have on the roadmap is having our own server provider and the number 1 priority is that is so fast that you can deploy a new version on every local change.