# swagger-api/swagger-node

Swagger module for node.js

Repository: https://github.com/swagger-api/swagger-node
Canonical: https://ross.abutalabs.com/products/swagger-node
Homepage: http://swagger.io
Language: JavaScript
License: Apache-2.0
License Family: permissive
Topics: swagger, swagger-node, swagger-api, javascript, rest, rest-api, openapi-specification
Archived: true
Last push: 2022-09-14T14:39:48+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5495, "days_push": 1449, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3945, forks 572 (observed 2026-08-28T04:08:30.263702+00:00)

## What it is
A Node.js module and CLI for designing, building, and testing Swagger 2.0-compliant REST APIs, integrating with Express, Hapi, Restify, and Sails. It bundles an editor, validation, and routing driven by a Swagger YAML specification. The repository is archived and no longer maintained.

## Use cases
- design and build a REST API in Node.js from an OpenAPI/Swagger spec
- scaffold a Swagger API project from the command line
- validate and route API endpoints from a Swagger 2.0 YAML definition
- edit an API spec in a built-in browser-based editor with live validation
- auto-generate API documentation from a Swagger definition

## When to choose
- you must maintain a legacy Node.js project already built on the swagger module
- you need a spec-first Swagger 2.0 workflow with Express, Hapi, Restify, or Sails and can accept an unmaintained dependency

## When to avoid
- starting a new project - the repo is archived and the npm package may be repurposed
- you need OpenAPI 3.x support or active maintenance
- you only need Swagger UI, Editor, or Codegen - use the individual actively maintained Swagger tools instead

## Facets
- artifact type: framework
- maturity: abandoned
- function: api-framework, routing, middleware, cli, documentation
- domain: web-development, backend, apis, developer-tools, documentation
- platform: cli
- tags: openapi, swagger, rest-api, api-design, archived, express, hapi, restify, nodejs, javascript, web-server

## Member repositories
- swagger-api/swagger-node (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:30.263702+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:24:35.364165+00:00, confidence not recorded.
  - readme: https://github.com/swagger-api/swagger-node (fetched 2026-08-28T04:08:30.263702+00:00, sha 62aa03c0c725)
  - homepage: http://swagger.io (fetched 2026-08-29T09:18:29.440275+00:00, sha 4f1f57a23ce3)
  - site_page: https://swagger.io/docs (fetched 2026-08-29T09:18:29.452168+00:00, sha bc9e768d7742)
  - site_page: https://swagger.io/product/portal (fetched 2026-08-29T09:18:29.449766+00:00, sha a39114d3b402)
- Data as of 2026-08-30T08:39:29.467469+00:00.
