The case in one page · The Plain Web Stack · diadem.fun
The Plain Web Stack1 / 15

The case in one page

Three small open-source libraries for Bun make one stack:

Layer Library What it replaces
Web framework TradJS (tradjs) Next.js, Remix, a client router, a bundler config
Database sqlite-zod-orm (sqlite-zod-orm) Prisma or Drizzle plus a database server
Logging and timing measure-fn (measure-fn) a logger plus a tracing SDK
The idea is to do less, and prove what you do.
  • Pages are rendered on the server and the browser navigates with real links.
  • Data lives in one SQLite file, described by the same Zod schemas that validate it.
  • Every meaningful step prints one line with its time.
  • Then every claim is checked by running the real thing: a real browser, a real database file built by an older version, real processes. Use it when:
  • you are building a product with pages, forms, accounts and an API;
  • one machine (or a few processes on one machine) serves your traffic;
  • you want to read every layer of your stack in an afternoon. Do not use it when:
  • you need a database server shared by many machines (SQLite is one file on one disk);
  • your app is a single-page application that never reloads;
  • your team depends on the React ecosystem's component libraries. TradJS uses its own small JSX renderer, not React.

Note: every number in this book comes from a test that was run on 18 November 2026 and is recorded in the libraries' changelogs. Where something was not measured, the book says so. Next: read chapter 2 for the reasoning, or jump to chapter 10 to start an app.