Overview
Traditional API documentation tools like Swagger UI feel antiquated and clunky. Scalar OpenAPI Studio provides an ultra-modern, high-contrast developer reference experience with an integrated API client, dark mode, and sub-second load times.
Integration in Astro v7
---
import BaseLayout from '../layouts/BaseLayout.astro';
---
<BaseLayout title="Developer API Reference">
<script
id="api-reference"
data-url="/openapi.json"
data-configuration='{"theme": "kepler", "showSidebar": true}'
src="https://cdn.jsdelivr.net/npm/@scalar/api-reference"
></script>
</BaseLayout>
Why Developers Switch
Scalar generates instant multi-language code examples, integrates seamlessly into modern static site generators, and lets engineers execute actual API requests directly inside their documentation with instant response body inspection.