Afora

Simple to write, built to hold: domain-first TypeScript backends whose guarantees live in the runtime, for people and AI agents alike. You declare the entities, use cases and API; the runtime masks secrets, rejects unknown fields, keeps unique keys unique and gives business errors the right status. Any server (Hono, Fastify, Express, Elysia), any store (memory, Drizzle, DynamoDB), and the whole application can be an afora.json your agent writes through the MCP server.
Packages
- @afora/coreThe core: properties, blueprints, records, entities, repositories, use cases, commands and outputs, with the guarantees in the runtime.
- @afora/mcpMCP server that lets an agent read the catalog, edit and validate the afora.json, generate the code and see its TypeScript diagnostics.
- @afora/codegenTurns the afora.json into the TypeScript you would write by hand, to review and commit; extractSpec(app) goes the other way.



