This plugin provides an easy way to render a beautiful API reference based on an OpenAPI/Swagger file with Next.js.
Installation
npm install @scalar/nextjs-api-reference
Compatibility
This package is compatible with Next.js 15 and is untested on Next.js 14. If you want guaranteed Next.js 14 support
please use version 0.4.106 of this package.
Usage
If you have a OpenAPI/Swagger file already, you can pass a URL to the plugin in an API Route:
a Next.js component to render API references from an OpenAPI file
The npm package @scalar/nextjs-api-reference receives a total of 38,139 weekly downloads. As such, @scalar/nextjs-api-reference popularity was classified as popular.
We found that @scalar/nextjs-api-reference demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 8 open source maintainers collaborating on the project.
Package last updated on 23 Apr 2025
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.