Skip to content

BrevityA little framework. Your kind of app.

Build APIs and server-rendered pages in TypeScript. Add what you need. Leave the rest out.

A route is just a function ​

ts
import { createApp } from "@portablesheep/brevity";

export const app = createApp();
app.router.get("/", (_req, res) => res.json({ message: "Hello, Brevity" }));

Call app.listen(3000) in your entry point to start the server. Send JSON with res.json(), redirect with res.redirect(), or render an HTML page.

Where to start ​

Run your first app, then follow the notebook tutorial for forms and a database. Already building something? Pick an integration recipe or look up an API in the reference.

Small core. Build your way.