Static DI
Every dependency is declared once in defineContext. c.get('key') only compiles for keys you registered — your dependencies are statically enumerable, not string-keyed lookups that escape the type system.
Opinionated like NestJS, functional like a script, verifiable like a type system — built so AI agents and humans both produce correct code on the first try.
| Nest | Elysia | Hono + Zod template | Kata | |
|---|---|---|---|---|
| Functional only | ❌ | ✅ | ✅ | ✅ |
| Runs on Hono (Node · Bun · Deno · Edge) | ❌ | ❌ | ✅ | ✅ |
| Mandatory schemas (lint-enforced) | ❌ | ⚠️ | ❌ | ✅ |
| Statically enumerable DI | ❌ | ⚠️ | ❌ | ✅ |
| Harness hooks shipped natively | ❌ | ❌ | ❌ | ✅ |
A module has exactly one place for each concern — schema, service, route — so every route, DTO, and test is findable by glob, and kata verify can check the whole contract in well under 100 ms.
src/
├── context.ts # defineContext({ ... }) — the one DI registry
└── modules/users/
├── users.schema.ts # Zod DTOs
├── users.service.ts # pure functions
└── users.route.ts # defineRoute — input + output schemas