DocTreen
Adapters

Adapters overview

One adapter per Node.js framework — same docs UI, same OpenAPI export, same schemas.

DocTreen ships an adapter for each supported Node.js framework. They all:

  • Accept the same config object
  • Serve the docs UI at docsPath (default /docs)
  • Expose OpenAPI 3.1 at <docsPath>/openapi.json
  • Accept Zod schemas, the s builder, JSDoc, or framework-native schemas (Fastify)
  • Support runtime validation, drift detection, and flows
AdapterImportMount orderSchemas read from
Expressdoctreen/expressAfter routesdefineRoute → JSDoc → runtime inference
Fastifydoctreen/fastifyBefore routesdefineRoute → Fastify native JSON Schema → JSDoc
Honodoctreen/honoEither orderdefineRoute → JSDoc
Koadoctreen/koaEither orderdefineRoute → JSDoc
NestJSdoctreen/nestAfter NestFactory.create(), before listen()@DocRoute / @Doc* decorators