@scalar/client-side-rendering
v0.3.3
Published
Client-side rendering for the Scalar API Reference using the CDN
Keywords
Readme
Scalar Client-Side Rendering
Render the Scalar API Reference as static HTML using the CDN. No server-side dependencies required.
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.
- Docs — Write in Markdown/MDX, generate API references, sync with two-way Git.
- SDKs — Type-safe client libraries in TypeScript, Python, Go, PHP, Java, and Ruby.
- MCP Servers — Generate secure MCP servers from your API spec.
- API Client — Open-source, offline-first Postman alternative built on OpenAPI.
20M+ monthly npm installs · 15,500+ GitHub stars · MIT licensed · scalar.com
Installation
npm install @scalar/client-side-renderingUsage
import { renderApiReference } from '@scalar/client-side-rendering'
const html = renderApiReference({
pageTitle: 'My API Reference',
config: {
url: 'https://registry.scalar.com/@scalar/apis/galaxy?format=json',
},
})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.
