API documentation for your framework

Pick your framework and add an interactive Scalar API reference in minutes, from the OpenAPI document your code already produces.

Most web frameworks can describe their routes as an OpenAPI document, either built in (FastAPI, ASP.NET Core on .NET 9 and later) or through a well-known library (@nestjs/swagger, Zod OpenAPI Hono, swagger-jsdoc, springdoc-openapi). What they rarely ship is a good way to read it. Scalar fills that gap with a small package per framework that serves an open-source, MIT-licensed API reference next to your API, usually in one line of code.

Framework guides

Each guide covers a three-step setup, a live demo, what you get beyond the reference, and how to migrate from Swagger UI or Redoc.

Framework Language Guide
ASP.NET Core C# .NET API documentation
FastAPI Python FastAPI API documentation
NestJS TypeScript NestJS API documentation
Hono TypeScript Hono API documentation
Express JavaScript, TypeScript Express API documentation
Fastify JavaScript, TypeScript Fastify API documentation
Laravel PHP Laravel API documentation
Django REST Framework Python Django API documentation
Spring Boot Java, Kotlin Spring Boot API documentation
Ruby on Rails Ruby Rails API documentation

More integrations

These frameworks have a Scalar integration guide with setup instructions and configuration options:

Framework Language Integration guide
Next.js TypeScript Next.js integration
Nuxt TypeScript Nuxt integration
ElysiaJS TypeScript ElysiaJS integration
Go Go Go integration
Axum Rust Axum integration
Flask Python Flask integration
Symfony PHP Symfony integration
Phoenix Elixir Elixir integration

Not listed? The HTML/JS integration renders a reference from any OpenAPI URL with a single script tag, so it works with any stack that can serve a static page.

Why start from your framework

Generating the OpenAPI document from code keeps the documentation honest. When a route, parameter or response model changes, the document changes with it, and so does the reference. There is no second copy to update by hand.

The same document then feeds everything else Scalar builds:

  • An interactive API reference with a built-in request client, search, themes and code samples.
  • The API client as a desktop and web app for your team.
  • SDKs for TypeScript, Python, Go and CLI (generally available), plus experimental targets such as Java, C#, Ruby and PHP.
  • A hosted MCP server so AI agents can call your API, with OAuth.

Serving the reference from your framework is free. Publish the document to the Scalar Registry when you want hosted docs, SDKs or MCP; see pricing for plans.

Frequently asked questions

Do I need to change how my framework generates OpenAPI?

No. Scalar reads the OpenAPI document you already produce. Each guide shows how to point Scalar at it, whether it comes from a built-in generator or a library.

Which OpenAPI versions does Scalar support?

Scalar renders OpenAPI 3.0 and 3.1. Swagger 2.0 documents are upgraded on load, so older generators work without a conversion step.

Is the API reference open source?

Yes. The API reference and the API client are MIT licensed and developed in the open at github.com/scalar/scalar.

Can I host the documentation outside my app?

Yes. Publish the document to the Scalar Registry and Scalar hosts the reference for you, with your own domain on paid plans. See Scalar Docs.