@scalar/api-reference
| Install | |
|---|---|
npm install @scalar/api-reference |
|
| Latest Version: | 1.76.0 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Oct 27, 2026 |
| Links: | GitHub · npm |
Scalar API Reference
Interactive API Reference from OpenAPI/Swagger Documents Try our Demo
Scalar is an open-source API platform for teams who want beautiful developer interfaces without vendor lock-in.
- API References — Interactive API documentation from OpenAPI and AsyncAPI specs.
- Developer Docs — Write in Markdown/MDX, generate API references, sync with two-way Git.
- SDK Generator — Type-safe SDKs and CLIs in TypeScript, Python, Go, PHP, Java, and Ruby.
- API Client — Open-source, offline-first Postman alternative built on OpenAPI.
20M+ monthly npm installs · 15,500+ GitHub stars · MIT licensed · scalar.com
CDN
<!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>
<!-- Load the Script -->
<script src="https://cdn.jsdelivr.net/npm/@scalar/api-reference"></script>
<!-- Initialize the Scalar API Reference -->
<script>
Scalar.createApiReference('#app', {
// The URL of the OpenAPI/Swagger document
url: 'https://registry.scalar.com/@scalar/apis/galaxy?format=json',
// Avoid CORS issues
proxyUrl: 'https://proxy.scalar.com',
})
</script>
</body>
</html>
AsyncAPI Markdown actions
AsyncAPI channels and operations include a Copy as Markdown button in both layouts. Copies contain the selected section and its relevant context, using @scalar/asyncapi-to-markdown. Tags and introduction support custom actions but do not show a copy button by default.
When embedding Vue sections, use the actions slot to replace the default button, or supply an empty slot to hide it:
<AsyncApiChannel v-bind="channelProps">
<template #actions>
<button @click="copyPage">Copy page</button>
</template>
</AsyncApiChannel>
<AsyncApiOperation v-bind="operationProps">
<template #actions />
</AsyncApiOperation>
AsyncApiChannel and AsyncApiOperation are exported from @scalar/api-reference/components and receive the resolved AsyncAPI document. Embedded Tag (from @scalar/api-reference/components) and InfoBlock (from @scalar/api-reference/blocks) expose the same actions slot without a default button. Pass the resolved document as asyncApiDocument to Tag to preserve real AsyncAPI tag headings. These are section component slots, not configuration options on the full API reference.
Documentation
Community
We are API nerds. You too? Let's chat on Discord: https://discord.gg/scalar
License
The source code in this repository is licensed under MIT.
Related Packages
Interactive OpenAPI documentation for VitePress. Lightweight, Vue-native, compos...
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.76.0 | ^3.5.44 | MIT | |
| 1.75.1 | ^3.5.40 | MIT | |
| 1.75.0 | ^3.5.40 | MIT | |
| 1.74.0 | ^3.5.40 | MIT | |
| 1.73.1 | ^3.5.40 | MIT | |
| 1.73.0 | ^3.5.40 | MIT | |
| 1.72.4 | ^3.5.40 | MIT | |
| 1.72.3 | ^3.5.40 | MIT | |
| 1.72.2 | ^3.5.40 | MIT | |
| 1.72.1 | ^3.5.40 | MIT | |
| 1.72.0 | ^3.5.40 | MIT | |
| 1.71.0 | ^3.5.40 | MIT | |
| 1.70.0 | ^3.5.40 | MIT | |
| 1.69.2 | ^3.5.40 | MIT | |
| 1.69.1 | ^3.5.40 | MIT | |
| 1.69.0 | ^3.5.40 | MIT | |
| 1.68.0 | ^3.5.40 | MIT | |
| 1.67.0 | ^3.5.40 | MIT | |
| 1.66.1 | ^3.5.40 | MIT | |
| 1.65.1 | ^3.5.40 | MIT | |
| 1.65.0 | ^3.5.40 | MIT | |
| 1.64.1 | ^3.5.40 | MIT | |
| 1.64.0 | ^3.5.30 | MIT | |
| 1.63.0 | ^3.5.30 | MIT | |
| 1.62.9 | ^3.5.30 | MIT | |
| 1.62.8 | ^3.5.30 | MIT | |
| 1.62.7 | ^3.5.30 | MIT | |
| 1.62.6 | ^3.5.30 | MIT | |
| 1.62.5 | ^3.5.30 | MIT | |
| 1.62.4 | ^3.5.30 | MIT |
Showing the latest 30 of 720. See every release on npm
Pre-releases (2)
| Version | Released | Vue | License |
|---|---|---|---|
| 1.10.4-alpha | ^3.3.0 | MIT | |
| 1.10.3-alpha | ^3.3.0 | MIT |