fastify/fastify-swagger
Swagger documentation generator for Fastify observed · 2026-09-03
Health v2 · maintenance only
98/100
- Activity 100
- Release rhythm 93
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 28.5
- age_days: 3441
- days_rel: 51
- days_push: 0
- n_releases_24m: 15
Adoption not part of the score
1092 stars · 219 forks observed · 2026-09-03
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Fastify plugin that automatically generates and serves Swagger (OpenAPI v2) or OpenAPI v3 schemas from your route schemas or an existing spec. It pairs with UI plugins like @fastify/swagger-ui to serve interactive API documentation.
Use cases
- generate openapi spec from fastify routes
- serve swagger documentation for a nodejs api
- auto-generate api docs from json schemas
- publish openapi v3 schema for a rest api
- document fastify endpoints with swagger
- expose swagger json endpoint for codegen
When to choose
- you use Fastify and want API docs generated from route schemas
- you need OpenAPI v2 or v3 output for clients or tooling
- you want a spec-first or schema-first documentation workflow in Node.js
When to avoid
- you use Express, Koa, or another non-Fastify framework
- you want a built-in Swagger UI - use @fastify/swagger-ui alongside it
- you need to generate routes from an existing OpenAPI schema - use fastify-openapi-glue
Facets
plugin · maturity active
api-documentation documentation middleware plugin-system web-development backend apis documentation developer-tools fastify swagger openapi openapi-v3 api-specs route-schemas nodejs web-server javascript
3 sources
- readme: https://github.com/fastify/fastify-swagger · fetched 2026-09-03 · 498eb9bb7bd1
- homepage: https://npmjs.com/package/@fastify/swagger · fetched 2026-08-29 · 9672c60cfa22
- registry_npm: https://registry.npmjs.org/fastify-swagger · fetched 2026-08-29 · 63ce72335858
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| fastify/fastify-swagger | main | 98 |
For agents
markdown · JSON · MCP: product_card(name="fastify/fastify-swagger")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem