Back to articles
engineering

The stack I run all my products on: TanStack Start, SQLite and a €5.99 server

By Daniel Chavez

Every product I run, RunMist, NoDramaMail, WeatherDestination, warpkit.dev and this site, is built on the same stack, and I picked each part for the same two reasons: I want to know exactly what my code is doing, and I want it to cost as little as possible for as long as possible.

Why TanStack Start?

I wanted end-to-end TypeScript safety, an app that's client-first where I opt into server code when I need it, and the freedom to host it anywhere. Next.js makes the server the default, and after moving to TanStack Start I don't really miss anything from it. I wrote the longer version, with code, on warpkit.dev: TanStack Start vs Next.js.

Why SQLite, and one database per user?

I couldn't find a good, solid SQLite template for web apps, so I built one, and every user gets their own SQLite file. There's no database server to run or pay for, and one user's data can't leak into another's query. I load tested it on the cheapest Hetzner box that makes sense for an app and it handled 3,500 users online at the same time without losing a write, the numbers are in this post, and the story of the one setting that almost made me think my template wasn't fit for production is here.

Why Hetzner and not Vercel?

I started on Vercel's free plan, hit its limits fast, and found out it doesn't allow commercial products. I paid for one month of Pro to test it and left, because they charge per function, per logs, per pretty much everything, and after reading their terms I didn't feel comfortable hosting my projects there. I moved warpkit.dev and WeatherDestination off Vercel in August and this site in November.

Now everything runs on Hetzner, because it's the cheapest cloud I found: 2 vCPU and 4 GB is €5.99 a month, against $24 on DigitalOcean. DigitalOcean's dashboard and CLI are honestly nicer, but at that price difference it wasn't close for me. I deploy with RunMist, which I built so I could push a JS/TS app to my own server as fast as I could on Vercel, and the full price comparison is on its Hetzner vs DigitalOcean page.

And email?

I've used Postmark and SendGrid and they work great, but they get way too expensive for a company that's starting out. At 500k emails a month SendGrid is $499 and Postmark $455, and Amazon SES is $0.10 per 1,000. SES doesn't tell you much about what happened to an email after you send it though, so I built NoDramaMail for that, and the SendGrid pricing page has the numbers side by side.

What does it all cost?

Two CX23 servers on Hetzner, €5.49 each plus €0.50 each for the IPv4 address, so €11.98 a month. RunMist runs on one of them and the other one runs NoDramaMail, WeatherDestination, warpkit.dev and this site, all four on the same box. My October bill was €14.73, and the extra €2.75 was the test servers I rent by the hour for load tests like the one above.

If you want to start from the same base, it's WarpKit. It's what all of the above runs on, and it's for the little guys like me who want to squeeze the most out of a small box before paying for a bigger one.