Afora

Domain modeling for TypeScript on TypeBox: properties that validate and normalize, entities with invariants and events, repositories with typed findBy<Key>, use cases and exceptions that know their layer. Sensitive data is masked at any depth, every field is Standard Schema (Hono, tRPC, TanStack Form) and the whole application can be described in an afora.json.
Packages
- @afora/coreThe core: properties, blueprints, records, entities, repositories, use cases, commands and outputs.
- @afora/codegenGenerates idiomatic TypeScript from an afora.json and extracts the spec back from an application.
- @afora/mcpMCP server that lets an agent discover the catalog, edit and validate the afora.json, generate the code and check the result.
- @afora/honoServes outputs as an HTTP API: one route per operation, problem+json errors, masked responses and an OpenAPI 3.1 document.
- @afora/drizzleRepository provider on Drizzle ORM (SQLite and Postgres), with cursor pagination.



