Scalar
└ Renders OpenAPI/Swagger documents
└ Free and open-source
Install the Copy this prompt into your coding agent from your project: All you need is a single HTML file. Load the ESM build from our CDN, with no build step required: Need a Custom Header? Check out this example: https://codepen.io/scalarorg/pen/VwOXqam And there's an ever-growing list of plugins and integrations: The following frameworks have chosen Scalar API Reference as their default OpenAPI documentation UI, recognizing its developer-friendly features and modern design: We're offering a free and paid managed hosting on the edge, too: Ready? Create your Scalar Account We are API nerds. You too? Let's chat on Discord: Contributions are welcome! Read the Top Contributors (Last Month)
Top Contributors (All Time) </a>
</a>
</p>
Interactive API Reference from OpenAPI/Swagger
└ Comes with an API testing tool
└ Doesn't look like 2011
└ Generates code examples for many languages & frameworks
└ Integrates with your favorite framework
└ Try Demo
An offline-first API Client built for OpenAPI
└ First-class OpenAPI/Swagger support
└ Integrates with dozens of API Frameworks (Elysia, Hono, FastAPI, etc)
└ Syncs with your favorite server framework (Watch Mode)
└ Has environment variables, dynamic parameters and everything
└ Try It in the Browser
└ Download (Windows, MacOS, Linux)
Trusted by:
Quickstart
Set up with your coding agent
scalar-api-reference skill to give your coding agent guidance for framework integration, configuration, and troubleshooting:npx skills add scalar/scalar --skill scalar-api-reference
Set up Scalar API Reference in this project.
Inspect the project’s framework, package manager, routing, and existing
OpenAPI setup. Choose the appropriate framework integration from
https://scalar.com/products/api-references and install it using this
project’s conventions.
If no framework integration exists, render a route using the HTML/JS guide:
https://scalar.com/products/api-references/integrations/html-js
Also ask whether I want to request a framework integration here:
https://github.com/scalar/scalar/discussions/new?category=ideas
Serve the API reference at /scalar, or use an existing documentation route,
and connect it to the project’s OpenAPI document or generated endpoint.
If no OpenAPI document exists, ask me which source to use or whether
we need to add OpenAPI generation.
Use these guides for configuration and theming:
https://scalar.com/products/api-references/configuration
https://scalar.com/products/api-references/themes
Implement the setup, verify that the page loads and displays the API
documentation, and tell me how to run it locally and where to find it.
Set up with HTML
<!doctype html>
<html>
<head>
<title>Scalar API Reference</title>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1" />
</head>
<body>
<div id="app"></div>
<script type="module">
import { createApiReference } from 'https://cdn.jsdelivr.net/npm/@scalar/api-reference/esm.js'
createApiReference('#app', {
// The URL of the OpenAPI document
url: 'https://registry.scalar.com/@scalar/apis/galaxy?format=json',
// Avoid CORS issues
proxyUrl: 'https://proxy.scalar.com',
})
</script>
</body>
</html>
Integrations
Built-in Support
Managed Hosting
YOUR_NAME_HERE.apidocumentation.com subdomain and SSL (free)Documentation
Topic
Description
Configuration
The universal configuration object
Themes
Predefined themes, layouts & styling
OpenAPI
OpenAPI specification extensions
Markdown
Supported Markdown syntax
Plugins
Extend the functionality
Projects
Project
Description
Scalar API Reference
Self-hosted API Reference
Scalar API Client
Postman alternative
Agent Scalar
Chat with your API
Scalar Registry
Manage OpenAPI documents
Scalar Docs
Hosted documentation
Scalar Docs Starter
Starter template for Scalar Docs
Scalar SDKs
SDK generation
Scalar CLI
Command-line interface
Scalar Mock Server
Mock APIs from OpenAPI documents
Scalar Galaxy
Our OpenAPI Example
Scalar Editor
OpenAPI Online Editor
Scalar OpenAPI Parser
Parse OpenAPI documents
Scalar OpenAPI to Markdown
OpenAPI > Markdown/HTML
Scalar OpenAPI Upgrader
Upgrade OpenAPI documents
Scalar Void Server
HTTP Request Mirror
Community
Contributions
CONTRIBUTING guide.