MoroJS Documentation

Build high-performance, type-safe APIs with intelligent routing and a zero-friction developer experience — production-ready features out of the box.

Quick Start

1

Scaffold your project

One command — typed, validated, ESM-ready

npx @morojs/cli init my-api
2

Run it

Dev server with hot reload on port 3000

cd my-api
npm run dev
3

Add a typed route

Open src/index.ts and start building

app.get('/users/:id').handler((req) => {
  return { userId: req.params.id };
});

Why MoroJS?

Enterprise Authentication

Better Auth integration with OAuth, RBAC, and zero dependencies

High Performance

226k+ req/sec with full TypeScript safety

Multi-Runtime

Deploy anywhere: Node.js, Edge, Lambda, Workers

Configuration System

Config files, environment variables, TypeScript support

Explore the Docs

Next Steps