Why a Boring, Well-Trodden TypeScript Stack for a Commercial App
Express, React, Drizzle, and Postgres are not exciting choices. For a commercial line-of-business app, that is exactly the point.
When I sat down to pick a stack for a commercial jewelry-business-management application, I had every excuse to try something new. It was greenfield, it was my own architecture decision, and nobody was going to stop me from reaching for whatever was trending that quarter. I picked Express, React 19, Drizzle ORM over PostgreSQL, and TypeScript end to end instead — and I would make the same choice again.
The two-column, well-trodden shape of the stack is deliberate, not a placeholder for "something fancier later."
Boring is a feature when someone else's business depends on it
A hobby project can absorb the cost of a framework going out of fashion, or a library abandoning its maintainers. A commercial app that a customer relies on to run their business every day cannot. TypeScript across the whole stack — Express on the backend, React 19 with Vite, Tailwind v4, and Framer Motion on the frontend — meant one type system, one hiring pool of familiar patterns, and a much smaller chance of hitting an unmaintained dependency three years in.
None of these choices are interesting to argue about on their own merits. That is exactly why they were the right choices: I wanted the boring parts of the stack to be boring, so the actual product work could get my attention.
Drizzle over Postgres, and the appeal of an embedded option
Drizzle ORM gave me typed queries against PostgreSQL without the runtime weight or magic of a heavier ORM. Migrations are explicit, the generated SQL is readable, and the type inference genuinely catches mistakes at compile time rather than at 2am in production logs.
The detail I did not expect to matter as much as it does: an embedded, in-process Postgres option (@electric-sql/pglite) for local development and offline use. Because it speaks the same wire protocol, the same Drizzle schema and queries run against it unmodified. That meant:
- new developers can run the app with zero external services to install,
- offline or intermittently-connected environments have a real local database instead of a mock,
- CI can spin up a full database in milliseconds instead of waiting on a container.
dev: app <--> pglite (embedded, in-process)
prod: app <--> PostgreSQL (managed / self-hosted)Same schema, same queries, two very different runtime footprints — chosen per environment rather than forced to be identical everywhere.
Auth, storage, and the unglamorous plumbing
JWT-based authentication, an S3-compatible SDK for object storage, PDF generation with pdfkit, OCR via tesseract.js for document handling, and QR code support with html5-qrcode round out the stack. Every one of these is a solved problem with mature libraries; none of them needed to be reinvented, and reinventing any of them would have been time stolen from the business logic that actually differentiates the product.
The temptation I resisted
Somewhere in year one I considered adding a fashionable state-management library, then a GraphQL layer, then a microservices split. Each time, the question that stopped me was the same: does this solve a problem I actually have, or a problem I am imagining because it would be more fun to build? For a ~13,600-line, actively developed, single-deployment commercial app, the honest answer was almost always no. A monolith in a well-known stack is easier to secure, easier to reason about, and easier to hand off — and for a paying customer, all three of those matter more than novelty.
Series: Building and Shipping.