Skip to content

Public API and examples ​

Choose a guide to build a feature, or open the import path from your source file to look up an individual declaration. Each symbol has a usage example. Controller methods and option objects are shown in context-sized fragments. Source excerpts link to the surrounding implementation or fixture. Start with the linked guides for complete applications. Shared exports lead to the same declaration from every package that exposes it.

Application APIs ​

Import pathStart with a guideExports
@chojs/webBuild and dispatch HTTP routes102
@chojs/commandLaunch a CLI or embed a command34
@chojs/messagePublish, subscribe and request a reply83
@chojs/coreConstruct and share services51

Adapters and OpenAPI ​

Import pathStart with a guideExports
@chojs/vendor-choApply an HTTP request policy26
@chojs/vendor-honoUse Hono middleware in CHO10
@chojs/vendor-fastifyUse native Fastify plugins and hooks12
@chojs/vendor-natsRequest a reply or consume durable events33
@chojs/vendor-kafkaConsume partitioned events17
@chojs/openapiGive clients an API description26

Listeners, graphs and extension utilities ​

Import pathStart with a guideExports
@chojs/core/diImplement decorators and resolve handlers67
@chojs/core/utilsCompose middleware and inspect the runtime22
@chojs/core/utils/test_utilsExercise a framework extension11
@chojs/web/serveStart and drain a network listener13
@chojs/web/linkerConnect an HTTP router3
@chojs/web/graphInspect compiled HTTP operations21
@chojs/message/linkerConnect a broker12
@chojs/message/graphInspect compiled subscriptions17