Skip to content

Mantle JS

Build real-time APIs in TypeScript with clean layers — services as contracts, swappable data adapters, and one hook pipeline for REST, sockets, and AI agents.
Terminal window
npm create mantlejs@latest my-app

Services are contracts

Service<T> defines the API; Repository<T> adapters do the data access. Swap Postgres for MongoDB or DynamoDB without touching a service.

One hook pipeline

Authentication, validation, logging, and auditing are plain function hooks that run identically for REST, Socket.IO, and MCP callers.

Agent-native

Expose services to AI agents over MCP — per-method tools or a sandboxed code mode — with scoped, revocable agent tokens and an audit trail.

Batteries, unbundled

Eight SQL, document, graph, and vector adapters; local and seven OAuth sign-in strategies; uploads to disk, S3, or GCS; OpenAPI; realtime sync — one package each.

Building with an AI assistant? Point it at /llms.txt — or /llms-full.txt for every guide and package README in one file.