Introduction
Semola replaces a stack of backend libraries with one zero-dependency TypeScript package - typed APIs, queues, ORM, workflows, and more
Most backends start as a pile of packages: a router, a queue, an ORM, a validator, maybe an OpenAPI generator. Types almost line up. Semola is the alternative - one TypeScript package with an empty dependencies field. Install once, import only what you need:
import { Api } from "semola/api";
import { mightThrow } from "semola/errors";
import { Queue } from "semola/queue";Validation works with semola/schema or any Standard Schema library (Zod, Valibot, ArkType, and others).
What you can build with
HTTP & Jobs
| You need… | Start here |
|---|---|
| HTTP APIs with OpenAPI | API |
| Background jobs | Queue |
| Typed real-time channels | PubSub |
| Scheduled tasks | Cron |
| Durable multi-step work | Workflow |
Data & Auth
| You need… | Start here |
|---|---|
| SQL / SQLite data access | ORM |
| Redis caching | Cache |
| Authorization rules | Policy |
| Typed translations | i18n |
Utilities
| You need… | Start here |
|---|---|
| Runtime schema validation | Schema |
| Errors without try/catch | Errors |
| Prefixed console or file logs | Logging |
| Interactive terminal input | Prompts |
| Typed command-line programs | CLI |
| Small general-purpose helpers | Extra |
Next step
Getting Started walks through install and a small working API.