# swagger-api/swagger-client

Javascript library to connect to swagger-enabled APIs via browser or nodejs

Repository: https://github.com/swagger-api/swagger-client
Canonical: https://ross.abutalabs.com/products/swagger-client
Homepage: http://swagger.io
Language: JavaScript
License: Apache-2.0
License Family: permissive
Topics: swagger, swagger-api, rest, rest-api, javascript, openapi-specification, openapi3, hacktoberfest, openapi31, open-source, swagger-oss, swagger-client, openapi32
Last push: 2026-08-19T07:36:33+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 97, longevity 100
- inputs: {"age_days": 5313, "days_push": 14, "days_rel": 20, "gap_med": 14.0, "n_releases_24m": 39}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2694, forks 765 (observed 2026-08-28T04:07:11.133354+00:00)

## What it is
Swagger Client is a JavaScript library for fetching, resolving, and executing requests against Swagger/OpenAPI-defined REST APIs from the browser or Node.js. It parses OpenAPI 2.0, 3.0, 3.1, and 3.2 documents and turns them into callable client operations.

## Use cases
- call a REST API from an OpenAPI spec in JavaScript
- fetch and resolve a swagger/openapi document in node
- generate an api client from an openapi 3.1 definition
- execute swagger-defined operations in the browser
- validate and dereference an openapi spec programmatically

## When to choose
- you have an OpenAPI/Swagger spec and want to call the API without hand-writing HTTP code
- you need to parse, resolve, or validate OpenAPI documents in JS
- you need a client that works in both browser and Node.js

## When to avoid
- your API has no OpenAPI/Swagger definition
- you need a code-generating SDK for other languages (use Swagger Codegen)
- you only need interactive API docs UI (use Swagger UI)

## Facets
- artifact type: library
- maturity: active
- function: http-client, parser, sdk
- domain: apis, web-development, developer-tools, documentation
- platform: browser, cross-platform
- tags: openapi, swagger, rest-client, api-client, spec-resolution, nodejs, javascript

## Member repositories
- swagger-api/swagger-client (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:11.133354+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-30T02:16:21.224253+00:00, confidence not recorded.
  - readme: https://github.com/swagger-api/swagger-client (fetched 2026-08-28T04:07:11.133354+00:00, sha a0f58274f29b)
  - homepage: http://swagger.io (fetched 2026-08-29T09:59:47.410840+00:00, sha 4f1f57a23ce3)
  - site_page: https://swagger.io/docs (fetched 2026-08-29T09:59:47.416744+00:00, sha bc9e768d7742)
  - site_page: https://swagger.io/product/portal (fetched 2026-08-29T09:59:47.414214+00:00, sha a39114d3b402)
- Data as of 2026-08-30T08:39:29.467469+00:00.
