0.1.7 • Published 6 months ago
@scalar/sveltekit v0.1.7
Scalar for SvelteKit
A SvelteKit integration for the Scalar API Reference
Installation
npm install @scalar/sveltekitUsage
// routes/+server.ts
import { ScalarApiReference } from '@scalar/sveltekit'
import type { RequestHandler } from './$types'
const render = ScalarApiReference({
url: 'https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.json',
})
export const GET: RequestHandler = () => {
return render()
}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.