@scalar/sveltekit
TypeScript icon, indicating that this package has built-in type declarations

0.1.6 • Public • Published

Scalar for SvelteKit

Version Downloads License Discord

A SvelteKit integration for the Scalar API Reference

Installation

npm install @scalar/sveltekit

Usage

// 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.

Package Sidebar

Install

npm i @scalar/sveltekit

Weekly Downloads

91

Version

0.1.6

License

MIT

Unpacked Size

19.4 kB

Total Files

19

Last publish

Collaborators

  • amritkahlon
  • cameronrohani
  • marclave
  • tommastro
  • scalar_geoff
  • hwkr
  • mason-little
  • hanspagel
  • bgrcs