Skip to content
GitHub

You're reading the docs for Strutvane 0.1, which has reached end of life and no longer gets fixes. Read this page for Strutvane 0.2, the current version.

What is Strutvane?

View as Markdownllms.txt

What you’ll learn

  • What Strutvane does, in plain words
  • Who it’s for, and who it’s not for
  • How it saves you time, shown with a real example

Strutvane is a toolkit for building business apps in TypeScript. Think of apps like a customer list, an invoicing tool, a helpdesk, or an HR portal.

You describe your data. Strutvane builds the rest:

  • the database tables that store your data
  • the API, the doorway other programs use to read and save that data
  • the logins and permissions (who can see or change what)
  • the screens: tables, forms and detail pages

Imagine you open a restaurant. You want to focus on your recipes, the thing that makes you special.

You don’t want to build the ovens, wire the electricity and design the order system yourself.

In a restaurant In Strutvane
Your recipes (what makes you unique) Your models (what your data looks like) and your business rules
The kitchen: ovens, fridges, plumbing The database, API and screens that Strutvane builds
The door staff checking reservations Auth: logins, roles and permissions
Separate tables for separate parties Multi-tenancy: each customer company only sees its own data

You still own the kitchen. If you want a different oven, you can swap it. That’s the difference between Strutvane and many “no-code” tools: everything it builds is normal code in your project.

Say you need a list of customers. Without Strutvane you would typically:

  1. write a database migration to create a customers table
  2. write code to list, create, update and delete customers
  3. add validation (“email must look like an email”)
  4. add permission checks (“only admins can delete”)
  5. build a table screen, a form and a detail page

With Strutvane, you write this:

app/models/customer.model.ts
import { defineModel, field } from '@strutvane/framework'
export default defineModel('Customer', {
name: field.string().required().searchable(),
email: field.email().unique(),
phone: field.phone().optional(),
tier: field.enum(['free', 'pro', 'enterprise']).default('free').filterable(),
})

…then run one command (pnpm sv migrate). Steps 1 to 5 are done for you. Need something special, like “send a welcome email when a customer is created”? You add just that piece. See Levels of control.

Teams building business apps

Admin panels, internal tools, customer portals and SaaS products, especially ones with logins, roles and lots of forms.

TypeScript developers

If you know a bit of TypeScript (or JavaScript), you can use Strutvane. Its error messages tell you what went wrong and how to fix it.

Agencies and freelancers

Build client projects faster and hand over clean code the client fully owns.

Enterprise teams

Roles, audit logs, single sign-on and multi-tenancy come built in, at no extra cost.

  • Not a no-code tool. You write a little TypeScript. In return, you’re never stuck.
  • Not a hosting service. You run your app wherever you like.
  • Not a black box. The generated code lives in your project, and you can read and change all of it.
  • Not for every app. For a static blog or a game, simpler tools fit better.