smrt
Open the smrt source on GitHub Switch to dark color scheme

TypeScript framework · MIT licensed

Build agentic software for people and agents.

Describe your models once. smrt gives you the screens people use and the tools agents use, and makes both play by the same rules.

Get started See the demo

npx -y @happyvertical/smrt-cli@0.62.10 kitchen my-app

Opens the planner in your browser. Pick your features, then send them to the kitchen.

src/lib/objects/Widget.ts

@smrt({ api: true, mcp: true, cli: true })
export class Widget extends SmrtObject {
  name = '';
  inStock = 0;
  leftHanded = false;
}
Who's asking?

Showing what a person sees

Widgets Acme Corp · 3 of 3
NameKindIn stock
Left-handed doodadleft-handed40
Gizmo, regular400
Nick-nack, assorted12

Same widgets. Same rules. One permission for both: widgets.read

Agentic features, out of the box.

Here is what agents can do inside a smrt app, and how you stay in charge of them. An agent works as a user, with that user’s permissions and nothing more.

Also in the box: agent memory, search by meaning, voice on the device.

One model, every way in.

You describe each thing in your app once, as a TypeScript class called a model. smrt reads it and generates the rest, so the screen a person uses and the tool an agent calls come from the same model.

  • A tableThe fields tell smrt what to store.
  • An APIRoutes and clients for exactly the actions you allow.
  • Agent toolsThe same actions, described so an agent knows when to use them.
  • CommandsFor the terminal and for scripts.
  • FormsFields and labels, straight from the model.
  • PermissionsHowever a request arrives, the same checks apply.

Three ways to a running app.

They all end in the same place: a real project on your machine.

  • in the browser

    Plan it first

    Tick the features you want in build-a-boilerplate, poke at a working mock-up, and export it as a cookbook.

    Open the planner →
  • one command

    Start from a cookbook

    A cookbook is a short file naming what your app is made of. The CLI turns it into a project. A bakery and a yoga studio are included.

    Cook one →
  • from scratch

    Clone the starter

    The template on its own: one owner, a local database, a notes model and an assistant. Add things as you go.

    Get smrt-start →

Agents are welcome here too.

Your coding agent should not have to guess how smrt works. This site is written for it, and for you.

  • llms.txt A directory of the whole site, one line per page.
  • any page + .md Every page has a Markdown copy at its address plus .md.
  • Development MCP Read-only knowledge of your workspace and installed packages.
  • Application MCP The operations your app permits, offered to an agent as tools.