Gathering detailed insights and metrics for redoc
Gathering detailed insights and metrics for redoc
Gathering detailed insights and metrics for redoc
Gathering detailed insights and metrics for redoc
📘 OpenAPI/Swagger-generated API Reference Documentation
npm install redoc
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
23,670 Stars
2,599 Commits
2,309 Forks
296 Watching
13 Branches
256 Contributors
Updated on 28 Nov 2024
Minified
Minified + Gzipped
TypeScript (97.81%)
JavaScript (1.06%)
Shell (0.46%)
HTML (0.36%)
Dockerfile (0.32%)
Cumulative downloads
Total Downloads
Last day
-0.6%
132,009
Compared to previous day
Last week
6.9%
701,935
Compared to previous week
Last month
14.3%
2,962,762
Compared to previous month
Last year
69.3%
26,068,200
Compared to previous year
22
5
67
Redoc is an open source tool for generating documentation from OpenAPI (formerly Swagger) definitions.
By default Redoc offers a three-panel, responsive layout:
If you want to see how Redoc renders your OpenAPI definition, you can try it out online at https://redocly.github.io/redoc/.
A version of the Swagger Petstore API is displayed by default. To test it with your own OpenAPI definition, enter the URL for your definition and select TRY IT.
x-tagGroups
specification extensioncreate-react-app
Redoc is provided as a CLI tool (also distributed as a Docker image), HTML tag, and React component.
If you have Node installed, quickly generate documentation using npx
:
1npx @redocly/cli build-docs openapi.yaml
The tool outputs by default to a file named redoc-static.html
that you can open in your browser.
Redocly CLI does more than docs; check it out and add linting, bundling, and more to your API workflow.
Create an HTML page, or edit an existing one, and add the following within the body tags:
1 <redoc spec-url="http://petstore.swagger.io/v2/swagger.json"></redoc> 2 <script src="https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js"> </script>
Open the HTML file in your browser, and your API documentation is shown on the page.
Add your own spec-url
to the <redoc>
tag; this attribute can also be a local file. The JavaScript library can also be installed locally using npm
and served from your own server, see the HTML deployment documentation for more details.
Check out the deployment documentation for more options, and detailed documentation for each.
Redoc is Redocly's community-edition product. Looking for something more? We also offer hosted API reference documentation with additional features including:
docs/
folder)A sample of the organizations using Redocly tools in the wild:
Pull requests to add your own API page to the list are welcome
Redoc is highly configurable, see the configuration documentation for details.
Redoc uses the following specification extensions:
x-logo
- is used to specify API logox-traitTag
- useful for tags that refer to non-navigation properties like Pagination, Rate-Limits, etcx-codeSamples
- specify operation code samplesx-badges
- specify operation badgesx-examples
- specify JSON example for requestsx-nullable
- mark schema param as a nullablex-displayName
- specify human-friendly names for the menu categoriesx-tagGroups
- group tags by categories in the side menux-servers
- ability to specify different servers for API (backported from OpenAPI 3.0)x-ignoredHeaderParameters
- ability to specify header parameter names to ignorex-additionalPropertiesName
- ability to supply a descriptive name for the additional property keysx-summary
- for Response object, use as the response button text, with description rendered under the buttonx-extendedDiscriminator
- in Schemas, uses this to solve name-clash issues with the standard discriminatorx-explicitMappingOnly
- in Schemas, display a more descriptive property name in objects with additionalProperties when viewing the property list with an objectThe README for the 1.x
version is on the v1.x branch.
All the 2.x releases are deployed to npm and can be used with Redocly-cdn:
v2.0.0
: https://cdn.redoc.ly/redoc/v2.0.0/bundles/redoc.standalone.jslatest
release: https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.jsAdditionally, all the 1.x releases are hosted on our GitHub Pages-based CDN (deprecated):
v1.2.0
: https://rebilly.github.io/ReDoc/releases/v1.2.0/redoc.min.jsv1.x.x
release: https://rebilly.github.io/ReDoc/releases/v1.x.x/redoc.min.jslatest
release: https://rebilly.github.io/ReDoc/releases/latest/redoc.min.js - points to latest 1.x.x release since 2.x releases are not hosted on this CDN but on unpkg.see CONTRIBUTING.md
No vulnerabilities found.
Reason
15 commit(s) and 6 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
all changesets reviewed
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
1 existing vulnerabilities detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 8
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2024-11-25
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