Skip to main content

Describe Once, Ship It All: Why I'm Building Strutvane, a TypeScript Framework for Business Apps

An open-source TypeScript framework where you describe your data once and get the database, a secured API, auth and a full admin UI as code you own.

Updated 10 min readMarkdown

Every business app I've built started the same way: the same tables, the same sign-in flow, the same roles, the same admin screens. Strutvane is my attempt to never write that plumbing by hand again.


TL;DR

  • Strutvane is an open-source (MIT) TypeScript framework for business (B2B) apps.
  • You describe your data once. Strutvane generates the database migrations, typed models, a secured CRUD API, authentication and a full admin UI, all as plain code you own and can change.
  • 9 packages are already live on npm as a 0.2 preview, with 5,700+ automated tests and CI on Linux, Windows and macOS.
  • My one rule while building it: no failures shipped. If the tests aren't green three times in a row, it doesn't go out.
  • Next: a full demo app working end to end (early December), then queues, mail, notifications and a scheduler (0.3, mid-December), then 1.0 in January 2027.

If you've ever thought "why am I writing this login page for the fifth time?", this one's for you. ☕


The itch

Here's a confession. Most of the business software I've worked on wasn't hard because of the business. It was hard because of everything around it:

  • users, sign-in, password resets, two-factor authentication;
  • roles and permissions ("managers can edit their own team's invoices, but only view everyone else's");
  • multi-tenancy ("customer A must never see customer B's data");
  • a CRUD API with filtering, sorting, pagination and validation;
  • an admin panel so the operations team can actually use the thing;
  • audit trails, error handling, logging, file uploads, emails…

None of that is the product. It's the scaffolding around the product. And yet it's where most of the time and most of the bugs go, especially the expensive security bugs.

The TypeScript ecosystem is amazing at libraries. There's a great router, a great ORM, a great validation library, a great UI kit. But you still have to assemble them yourself, wire them together, and keep them in sync every time your data model changes. That's the part I wanted to remove.

The idea: describe once, ship it all

Strutvane starts from one simple idea:

Your data model is the source of truth. Everything else is derived from it.

You describe a table once. Strutvane takes it from there:

npm create strutvane@latest my-app      # asks a few questions, installs, migrates, seeds
node strut make:migration create_invoices_table
node strut migrate

And after migrate:

✔ API  /api/v1/invoices  ·  UI /invoices  ·  menu "Invoices"

That's a typed model, a REST endpoint with filtering, sorting, pagination and validation, an admin screen, and a sidebar entry, all respecting your permission rules from the start.

⚠️ Strutvane is a 0.2 preview. The commands above show the flow it's built around. Some parts of the generated flow are still being finished for the 0.2.0 release (see the roadmap below), and APIs may still change before 1.0.

"Generated code" without the usual trap

Code generators have a bad reputation, and for good reason: they hand you thousands of lines, and the moment you edit one, upgrading becomes a nightmare.

Strutvane takes a different approach. The generated files are thin and owned by you, and there are four clear levels of control:

Level What you do Example
L0: Declare Describe your data Add a table, get the API and screen
L1: Configure Change settings Which fields are searchable, the page size
L2: Override Replace one piece A custom validation rule or a custom screen
L3: Eject Take full ownership of a file Upgrades then use a three-way merge, so your changes survive

You get the speed of generation and the freedom of hand-written code. No black box.


What's under the hood

I wanted modern, boring-in-a-good-way technology:

  • TypeScript in strict mode, ES modules only, Node 24+. No any, no magic decorators.
  • Hono for HTTP: fast, standards-based, runs almost anywhere.
  • Zod 4 / Standard Schema for validation, so the same rules check the API and the forms.
  • Your choice of database: SQLite, PostgreSQL, MySQL or MariaDB. Support for several databases inside one app is on its way.
  • React 19 + Vite + TanStack + Tailwind 4 for the admin UI.
  • npm only. Plain npm install, no special tooling to learn.

The packages (live on npm today)

Package What it does
@strutvane/framework The core: routing, ORM, migrations, CRUD API, storage, authorization policies, tenancy, logging
@strutvane/auth Sign-in, two-factor authentication, passkeys, API tokens, teams
@strutvane/ui The React admin: automatic CRUD screens, sidebar, forms
@strutvane/design-crisp The clean default look for the admin
@strutvane/design-vivid A bold, colourful alternative look
@strutvane/redis Cache, session and queue drivers on Redis
@strutvane/health Health checks and an uptime endpoint for your monitors
@strutvane/social-login Sign in with Google, GitHub, Microsoft and Apple
strutvane A small safety guard behind npx strutvane

Each package is its own repository and works on its own. Add-ons plug into the framework through a small, documented set of connection points, and never reach into each other's internals. Install what you need, skip what you don't.


Secure by default, not secure "if you remember"

For business apps, security can't be a checklist you hope everyone follows. It has to be the default, so that doing nothing is safe. Some of the choices baked into Strutvane:

  • Deny by default. If no rule says a user may do something, they may not. A new table starts out locked, not open.
  • Permissions become SQL. Authorization rules are compiled into the database query itself, so a list endpoint can't "accidentally" return rows the user isn't allowed to see.
  • Real multi-tenancy. On PostgreSQL, tenant isolation is enforced by the database itself (row-level security) as a second lock behind the application code.
  • One error format. Every error is a standard RFC 9457 "problem" response with a stable code, never a stack trace or raw SQL leaking out.
  • Logs that don't leak. Redaction is always on, so secrets don't end up in log files.
  • A careful supply chain. Packages are published with npm provenance through trusted publishing: no long-lived tokens. Every release is staged first and approved by a human with two-factor authentication before it goes live. Install scripts from dependencies are blocked unless explicitly allowed.

And because "secure by default" is a promise, not a vibe: every package gets an adversarial security review before a release that adds new surface. Anything found is fixed together with a regression test for the whole class of problem, not just the one example. Three of this week's releases were exactly that: security upgrades shipped with their tests.


"No failures shipped": how I keep myself honest

It's very easy for a side project to become "works on my machine". So I set myself a few rules, and I stick to them even when they're annoying:

  1. Every change comes with tests. Data logic is tested against real databases (SQLite, PostgreSQL, MySQL, MariaDB), not mocks.
  2. Green three times in a row. Before anything merges, the full test suite has to pass 3 times in a row from a clean install. That kills flaky tests early, before they kill trust.
  3. Every operating system. CI runs on Linux, Windows and macOS, on Node 24 and 26.
  4. A human approves every release. CI can only stage a version; it goes live only after a manual approval with 2FA.

Today that adds up to 5,700+ automated tests across the live packages, from 190 for the health checks to more than 3,200 for the framework itself.

Is it slower? A little. Is it worth it? Every single time a "tiny" change turned out to break something on macOS that Windows never noticed: absolutely.


What I've learned so far

A few lessons from the last few weeks that I didn't expect:

1. Every package can pass its tests while the whole still fails. I built a real demo app end to end, installing it the way a new user would. It surfaced a list of problems that every package's own tests had happily passed: two pieces disagreeing on a URL, a setting one package wrote that another never read, and so on. Unit tests check the parts. Only an end-to-end run checks the promise. A whole-ecosystem test in CI is now on the roadmap.

2. Your laptop is part of your test environment. I once lost a full test cycle because the laptop quietly went to sleep in the middle of a run, and every timing-based test "failed". Real failures and fake failures look the same in a red CI log. Know which one you're looking at before you "fix" anything.

3. Defaults are the product. The most valuable security fixes weren't clever. They were about what happens when someone leaves a setting out. If the safe behaviour needs an extra line of configuration, most apps won't have it. So the safe behaviour has to be what you get when you write nothing.

4. Boring infrastructure is a feature. Changelogs, versioning rules, signed releases, a published security policy. None of it is exciting, all of it is what makes people trust a framework. I'm treating it as part of the product.


The road ahead

When Milestone What it brings
✅ November 2026 0.2 preview: live 9 packages on npm: framework, auth, admin UI, two designs, add-ons
🔶 Early December 2026 0.2.0 + the demo app The full flow, from npm create strutvane to a working admin, end to end
⏳ Mid-December 2026 0.3: background work Queues, mail, notifications, a scheduler and a cache
⏳ January 2027 1.0: production-ready File uploads, search, charts, import/export, plus an external security audit

After 1.0, the plan is a growing catalogue of optional add-ons: billing, dashboards, realtime and more, each in its own package, each working alone.


Want to follow along?

Strutvane is open source under the MIT licence, and I'm building it in public.

  • ⭐ Follow the project on GitHub: github.com/vishwajit-vm/strutvane
  • 📦 Try a package from npm: everything lives under the @strutvane scope.
  • 💬 Tell me what hurts. What's the one thing you wish your backend framework just did for you? That's exactly the kind of feedback that shapes the roadmap.
  • 🤝 Contributors welcome, from typo fixes to whole add-ons.

I'll keep posting updates here as each milestone lands. If you've made it this far, thank you. Now go ship something. 🚀

— Vishwajit VM


Part of the Strutvane series. Strutvane™ is open source under the MIT licence.

About the author

  • Hi, I'm Vishwajit VM, a backend & AI engineer from New Delhi. For 5+ years I've built the parts of apps you don't see: APIs, databases, queues and AI agents, for teams in hiring, real estate, finance, retail and civic tech. My rule is simple: a system should keep working when something goes wrong. Right now I'm a backend developer at SPNX, building an EU VAT-registration platform that runs in production. After hours I'm building Strutvane, an open-source TypeScript framework for business apps (I'm writing about it as a series on my blog, vishwajitvm.hashnode.dev), plus my own products such as DevFlow-AI (self-hosted AI code review) and Hopline (encrypted peer-to-peer file transfer). Day to day I work with Python, FastAPI, Node.js, TypeScript, NestJS, PostgreSQL, Redis, Docker, LangGraph and RAG, and I've shipped plenty of Laravel/PHP and React along the way. Outside work, I'm a part-time photographer. See my work at https://vishwajit-labs-web.vercel.app/

No comments yet. Be the first to comment.

More from this blog