About Documentation
API documentation and specification tools
Browse the snippets below to find the documentation implementation you need for your Express.js project.
All Documentation Snippets
Zod-Swagger Helper
Programmatic OpenAPI documentation with Zod
- No manual YAML or JSDoc comments
- DocumentedRouter helper for easy route registration
- Type-safe schema-to-OpenAPI conversion
Swagger JSDoc
API documentation using JSDoc and Swagger UI
- OpenAPI 3.0.0 specification
- Interactive Swagger UI at /docs
- JSON specification at /docs.json
OpenAPI Validator
Contract-first validation and documentation
- Contract-first development setup
- Runtime request and response validation
- Static openapi.yaml serving via Swagger UI
How to Use
Install any snippet using the Hanma CLI:
npx hanma add --framework express
For example, to install the first snippet:
npx hanma add docs/zod-swagger