Elestia Open Source Ratings
7.3

Swagger UI

A strong pick. 3rd of 9 OpenAPI tools.

Swagger UI is the long-standing, SmartBear-backed web page that renders an OpenAPI document as interactive docs with "Try it out". It is actively maintained and is the default in many backend frameworks. Its design looks dated next to Scalar and some OpenAPI 3.1 gaps remain, so it is a safe, familiar pick rather than the best docs UI today.

Best for: Backend teams that want the familiar interactive docs page that their framework's OpenAPI plugin already ships, including Swagger 2.0 and OAuth2 flows.

WebsiteGitHubnpm

Scores

Overall7.3

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 6.5, likely 5.5 to 7.5

It is well maintained, safe and everywhere, and it is the path of least resistance when a framework already bundles it. For a new docs page, Scalar offers a more modern UI, code samples and a built-in client, and Redoc suits read-only references. That makes Swagger UI a reasonable but no longer leading choice.

GPT-6.2 Sol: 8.0, likely 6.9 to 9.0

Swagger UI is a strong choice for new projects that need an interactive reference from an existing OpenAPI spec. Active maintenance, support through OpenAPI 3.2, and established framework integrations make it particularly practical for teams already using those integrations. Scalar has stronger search and code examples for public docs and is gaining ground much faster from a smaller base. How much those features matter, and how the current build handles a team's more complex schemas, determines where Swagger UI falls in the range.

Needed by many5.8

How many developers need a tool for this job?

Claude Opus 5.5: 6.0, likely 5.0 to 7.0

Most developers who build HTTP APIs want a docs page for them, so the group is large. Swagger UI covers only the docs part of the category's job, not types or clients. That keeps it below the broadest tools.

GPT-6.2 Sol: 5.6, likely 4.3 to 6.9

Interactive API reference pages are useful to many JavaScript and TypeScript teams that publish HTTP APIs. Swagger UI runs in a browser and can serve specs from any backend. Its role starts with an existing spec and covers one part of the OpenAPI workflow. API-focused survey samples leave the share of all JavaScript and TypeScript projects uncertain.

Helps a lot6.9

How well does it do the job for those who need it?

Claude Opus 5.5: 6.0, likely 5.0 to 7.0

It is mature and reliable for rendering specs and sending test requests, with OAuth2 and Swagger 2.0 support. Its design is dated, it has no code samples or built-in theming, and its bundle is the largest. Open 3.1 rendering issues and a stronger modern peer (Scalar) keep it in the middle.

GPT-6.2 Sol: 7.8, likely 6.6 to 8.8

Version 5.35.1 handles common OpenAPI versions, supports authenticated requests, and has well-documented setup options that an AI coding agent can follow. Recent releases improved rendering performance and added path filtering. Open user reports describe failures with tuple and deeply nested schemas on earlier 5.x builds, and the npm distribution still uses separate community types. The reports leave some uncertainty about how the current build handles complex specs.

Holds up over time7.9

Will it still be a good choice in two years?

Claude Opus 5.5: 7.5, likely 6.5 to 8.5

SmartBear funds the work. The repo had 252 commits and 28 releases in the last year, the latest two days before this review, with active OpenAPI 3.2 work. The issue backlog is large and part of the ecosystem, notably .NET, is moving to Scalar. Still, framework defaults keep it relevant for years.

GPT-6.2 Sol: 8.2, likely 7.0 to 9.2

SmartBear backs the project, and 252 commits and 28 releases in the last year show continued maintenance. The project shipped OpenAPI 3.2 support and responded to a user-reported performance problem with a patch. About 970 open issues and 198 open pull requests leave triage capacity uncertain, and plugins using internal APIs face upgrade risk. The number of people with release access is unclear, and ASP.NET Core no longer includes Swagger UI in its default templates.

Used widely7.3

How many use it, and is that growing?

Claude Opus 5.5: 8.0, likely 7.0 to 9.0

Its 60,531 dependent repos are far more than any peer, and it has 73M downloads per 4 weeks. Many downloads are transitive through swagger-ui-express, @nestjs/swagger and fastify plugins. Its growth ratio of 3.1 is below the 4.1 median, and Scalar and the client generators grow much faster, so its share is slipping.

  • dependents repos: 60,531 repos, versus 8,379 for the next peer
  • npm downloadsLast4Weeks / downloadsSame4WeeksYearAgo: 73.5M vs 23.5M, ratio 3.1, below the 4.1 median
  • peers Scalar downloads: Scalar grew about 30x in a year
  • github stars: 29k stars, the most in the category

GPT-6.2 Sol: 6.6, likely 5.1 to 8.0

The collector found about 60,500 dependent repositories, the largest observed count among the peers. Four-week downloads rose from 23.5 million to 73.5 million, or 3.13×, below the 4.1× catalog median and far behind Scalar's 29.6× growth. NestJS and Express integrations drive indirect installs, while CDN and static copies bypass npm. Swagger UI led the peer group in Bluesky links, though its top posts were release notices, so the rate of new direct adoption remains uncertain.

Vouched for7.7

Who stands behind it being good?

Claude Opus 5.5: 7.0, likely 6.0 to 8.0

Major frameworks such as NestJS, FastAPI, springdoc and Fastify ship it as their default docs UI, and it runs at countless companies. Independent 2026 comparisons call it the familiar incumbent but now lean to Scalar for new projects. Microsoft dropping it from the .NET template weakens current endorsement.

GPT-6.2 Sol: 8.3, likely 7.2 to 9.3

NestJS integrates Swagger UI, FastAPI serves it by default, and the European Medicines Agency uses it for a public API reference. Microsoft's .NET 10 guidance supports it alongside Scalar and describes Scalar as easier to customize. User reports also show teams choosing Scalar for its layout and code examples. Current evidence is stronger for framework and production use than for developer satisfaction or retention.

Safe7.8

How safe is it to depend on?

Claude Opus 5.5: 8.0, likely 7.0 to 9.0

There are only two moderate advisories, both from 2021–2022 and fixed, and none in 24 months. The licence is Apache-2.0 and the package has one dependency, but the dist bundles many libraries such as DOMPurify inside it. The Scorecard is 7.4, with weak Token-Permissions, Fuzzing and CII checks.

  • advisories: 2 total, 0 in the last 24 months
  • scorecard: 7.4 overall; Token-Permissions 0, Fuzzing 0
  • npm dependencies / license: 1 dependency, Apache-2.0
  • github.com/swagger-api/swagger-ui/releases: Prompt DOMPurify bumps in releases

GPT-6.2 Sol: 7.6, likely 6.4 to 8.7

The Apache-2.0 distribution declares one npm dependency and collects opt-out install telemetry through Scarf. Both recorded advisories were patched in 4.1.3, with that release shipping a day after the December 2021 advisory and before the March 2022 advisory was published. GitHub releases are automated, and the 7.4 OpenSSF Scorecard shows strong security policy and static analysis checks alongside zero scores for token permissions and fuzzing. Release signing and the number of authorized npm publishers remain unverified.

Good

  • The "Try it out" request runner and the OAuth2 authorization dialog work well, and almost every API consumer already knows them.
  • It is the built-in docs UI of the NestJS, FastAPI, springdoc and Fastify swagger plugins, so setup is often no work at all.
  • It ships steady releases (28 in the last year), including work on OpenAPI 3.2 and JSON Schema 2020-12 rendering.
  • The dist package is self-contained with one dependency and has had no advisories in two years.

Bad

  • The default look is dated and has no built-in code samples, and theming needs custom CSS, while Scalar does all this out of the box.
  • Users still report edge-case OpenAPI 3.1 rendering bugs, such as nullable type arrays, schema examples and file uploads.
  • The bundle is larger than Scalar's or Redoc's, and swagger-ui-dist ships no TypeScript types.
  • Close to 1,000 issues and about 200 pull requests are open, and .NET 9 dropped it from the default template.

The numbers

npm downloads, 4 weeks
73M ×3.1 in a year
GitHub stars
29k
Commits, 12 months
252
npm version
5.35.1 Nov 2026
Versions, 12 months
28
Advisories, 24 months
0 of 2 ever
OpenSSF Scorecard
7.4 out of 10, Nov 2026
Licence
Apache-2.0

Read on 21 November 2026 from GitHub (swagger-api/swagger-ui), npm (swagger-ui-dist), OSV and the OpenSSF Scorecard.

OpenAPI tools

  1. 8.1Scalar
  2. 7.7Orval
  3. 7.3Swagger UI
  4. 7.1Hey API
  5. 6.9Kubb
  6. 6.9zod-to-openapi
  7. 6.7Spectral
  8. 6.7Redoc
  9. 3.2openapi-typescript
Compare all 9 on six scores