Controllers, services and repositories, connected by dependency injection. Validation and API docs come from the same code.
$bun x @venizia/vulcan init --preset ignis $cd my-product && make dev
const UserCrud = ControllerFactory .defineCrudController({ entity: User, repository: { name: UserRepository.name }, controller: { name: 'UserController', basePath: '/users', }, }); // Validated, in the OpenAPI docs. Open until // you add authenticate and authorize. @controller({ path: '/users' }) export class UserController extends UserCrud {}
Nine CRUD routes: find, findOne, findById, count, create, updateById, updateBy, deleteById, deleteBy. Imports left out. REST controllers explains the factory.
The two endpoints of the quickstart.
Counted from the repository. A test of the wiki fails when the numbers it states drift from it.
Controllers wrap Hono's OpenAPIHono directly, with no adapter layer. Routes are typed with @hono/zod-openapi, and Swagger or Scalar docs come from your schemas.
ReaddiA small standalone container. @inject, @controller and @repository with auto-wiring and singleton or transient scopes.
ReaddataDrizzle and Zod end to end. A repository hierarchy with relations, transactions, soft delete and a rich filter system.
ReadauthOAuth2 not implementedOne component for JWT (JWS or JWKS), Basic and service-assertion authentication. Casbin authorization is experimental. OAuth2 is not implemented: its hook is an empty stub.
ReadrealtimeWebSocket, Socket.IO and Mail components; BullMQ, Kafka, MQTT, Redis and Cron helpers. Import each from its sub-path.
ReadtenancyA row access scope with a write guard, default query filters and limits per model, and CRUD controllers that refuse to boot when a write route would inherit a read-only authorize.
ReadenginesPostgreSQL (three drivers, PGlite included), SQLite, Typesense and Meilisearch behind the same repository contract, plus an HTTP connector for the browser side.
ReadbrowserThe kernel, filter, inversion and worker packages bundle for a browser or Web Worker with plain vite build, and a CI gate keeps Node builtins out.
ReadOne command writes a monorepo with a first controller, tests and the files of your coding agents.
Start the dev server and open the API reference.
Add another app or a library to the same monorepo.
On the 0.4 line. The APIs still change between releases, and every release is a patch release, breaking ones included. Each changelog entry says who is affected and what to do.