Gathering detailed insights and metrics for swagger-ui
Gathering detailed insights and metrics for swagger-ui
Gathering detailed insights and metrics for swagger-ui
Gathering detailed insights and metrics for swagger-ui
Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
npm install swagger-ui
Swagger UI v5.18.2 Released!
Published on 07 Nov 2024
Swagger UI v5.18.1 Released!
Published on 05 Nov 2024
Swagger UI v5.18.0 Released!
Published on 05 Nov 2024
Swagger UI v5.17.14 Released!
Published on 28 May 2024
Swagger UI v5.17.13 Released!
Published on 27 May 2024
Swagger UI v5.17.12 Released!
Published on 21 May 2024
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
26,642 Stars
6,578 Commits
8,966 Forks
648 Watching
51 Branches
535 Contributors
Updated on 28 Nov 2024
Minified
Minified + Gzipped
JavaScript (94.91%)
SCSS (3.75%)
HTML (0.96%)
Shell (0.28%)
Dockerfile (0.07%)
CSS (0.02%)
Cumulative downloads
Total Downloads
Last day
-22.1%
26,877
Compared to previous day
Last week
-20.3%
165,814
Compared to previous week
Last month
92.5%
911,794
Compared to previous month
Last year
14.5%
5,810,313
Compared to previous year
36
81
Swagger UI allows anyone — be it your development team or your end consumers — to visualize and interact with the API’s resources without having any of the implementation logic in place. It’s automatically generated from your OpenAPI (formerly known as Swagger) Specification, with the visual documentation making it easy for back end implementation and client side consumption.
👉🏼 Want to score an easy open-source contribution? Check out our Good first issue label.
🕰️ Looking for the older version of Swagger UI? Refer to the 2.x branch.
This repository publishes three different NPM modules:
We strongly suggest that you use swagger-ui
instead of swagger-ui-dist
if you're building a single-page application, since swagger-ui-dist
is significantly larger.
If you are looking for plain ol' HTML/JS/CSS, download the latest release and copy the contents of the /dist
folder to your server.
The OpenAPI Specification has undergone 5 revisions since initial creation in 2010. Compatibility between Swagger UI and the OpenAPI Specification is as follows:
Swagger UI Version | Release Date | OpenAPI Spec compatibility | Notes |
---|---|---|---|
5.0.0 | 2023-06-12 | 2.0, 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.1.0 | tag v5.0.0 |
4.0.0 | 2021-11-03 | 2.0, 3.0.0, 3.0.1, 3.0.2, 3.0.3 | tag v4.0.0 |
3.18.3 | 2018-08-03 | 2.0, 3.0.0, 3.0.1, 3.0.2, 3.0.3 | tag v3.18.3 |
3.0.21 | 2017-07-26 | 2.0 | tag v3.0.21 |
2.2.10 | 2017-01-04 | 1.1, 1.2, 2.0 | tag v2.2.10 |
2.1.5 | 2016-07-20 | 1.1, 1.2, 2.0 | tag v2.1.5 |
2.0.24 | 2014-09-12 | 1.1, 1.2 | tag v2.0.24 |
1.0.13 | 2013-03-08 | 1.1, 1.2 | tag v1.0.13 |
1.0.1 | 2011-10-11 | 1.0, 1.1 | tag v1.0.1 |
SwaggerUI uses Scarf to collect anonymized installation analytics. These analytics help support the maintainers of this library and ONLY run during installation. To opt out, you can set the scarfSettings.enabled
field to false
in your project's package.json
:
// package.json
{
// ...
"scarfSettings": {
"enabled": false
}
// ...
}
Alternatively, you can set the environment variable SCARF_ANALYTICS
to false
as part of the environment that installs your npm packages, e.g., SCARF_ANALYTICS=false npm install
.
You will need JDK of version 7 or higher as instructed here https://nightwatchjs.org/guide/getting-started/installation.html#install-selenium-server
Integration tests can be run locally with npm run e2e
- be sure you aren't running a dev server when testing!
Swagger UI works in the latest versions of Chrome, Safari, Firefox, and Edge.
To help with the migration, here are the currently known issues with 3.X. This list will update regularly, and will not include features that were not implemented in previous versions.
collectionFormat
is partial.Please disclose any security-related issues or vulnerabilities by emailing security@swagger.io, instead of using the public issue tracker.
SwaggerUI is licensed under Apache 2.0 license. SwaggerUI comes with an explicit NOTICE file containing additional legal notices and information.
The latest stable version of the package.
Stable Version
4
9.8/10
Summary
Cross-site scripting in Swagger-UI
Affected Versions
< 3.23.11
Patched Versions
3.23.11
0/10
Summary
Cross-Site Scripting in swagger-ui
Affected Versions
< 2.2.1
Patched Versions
2.2.1
0/10
Summary
Cross-Site Scripting in swagger-ui
Affected Versions
<= 2.2.0
Patched Versions
2.2.1
0/10
Summary
Cross-Site Scripting in swagger-ui
Affected Versions
< 2.2.1
Patched Versions
2.2.1
1
0/10
Summary
Cross-Site Scripting in swagger-ui
Affected Versions
< 2.2.1
Patched Versions
2.2.1
9
4.3/10
Summary
Spoofing attack in swagger-ui
Affected Versions
< 4.1.3
Patched Versions
4.1.3
6.5/10
Summary
Cross-Site Scripting in swagger-ui
Affected Versions
< 3.20.9
Patched Versions
3.20.9
6.1/10
Summary
Improper Neutralization of Input During Web Page Generation in swagger-ui
Affected Versions
< 2.2.1
Patched Versions
2.2.1
0/10
Summary
Server side request forgery in SwaggerUI
Affected Versions
< 4.1.3
Patched Versions
4.1.3
0/10
Summary
Cross-Site Scripting in swagger-ui
Affected Versions
< 2.2.1
Patched Versions
2.2.1
0/10
Summary
Cross-Site Scripting in swagger-ui
Affected Versions
< 2.2.1
Patched Versions
2.2.1
0/10
Summary
Cross-Site Scripting in swagger-ui
Affected Versions
< 2.2.1
Patched Versions
2.2.1
6.5/10
Summary
Cross-Site Scripting in swagger-ui
Affected Versions
< 3.0.13
Patched Versions
3.0.13
4.3/10
Summary
Reverse Tabnapping in swagger-ui
Affected Versions
< 3.18.0
Patched Versions
3.18.0
Reason
security policy file detected
Details
Reason
24 commit(s) and 3 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
SAST tool is run on all commits
Details
Reason
2 existing vulnerabilities detected
Details
Reason
badge detected: InProgress
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
Reason
Found 1/10 approved changesets -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More