scalar/scalar

TypeScriptscalar.com

alternative to Swagger UI、Postman

Scalar is an open-source API platform:                                       🌐 Modern REST API Client                                        📖 Beautiful API References                                        ✨ 1st-Class OpenAPI/Swagger Support

apidocsopenapireferenceswaggervueopenapi3api-clienthttp-clientrest-api
Star Growth
Stars
16.3k
Forks
959
Weekly Growth
+43
Issues
5
5k10k15k
Oct 2023Oct 2024Oct 2025Oct 2026
Artifactsnpm
README

CI Contributors GitHub License Twitter Discord

Scalar

Scalar API Reference Scalar API client

Interactive API Reference from OpenAPI/Swagger

└ Renders OpenAPI/Swagger documents
└ Comes with an API testing tool
└ Doesn't look like 2011
└ Generates code examples for many languages & frameworks
└ Integrates with your favorite framework
└ Try Demo

An offline-first API Client built for OpenAPI

└ Free and open-source
└ First-class OpenAPI/Swagger support
└ Integrates with dozens of API Frameworks (Elysia, Hono, FastAPI, etc)
└ Syncs with your favorite server framework (Watch Mode)
└ Has environment variables, dynamic parameters and everything
└ Try It in the Browser └ Download (Windows, MacOS, Linux)

Trusted by:


Scalar API client Scalar API client

Quickstart

Set up with your coding agent

Install the scalar-api-reference skill to give your coding agent guidance for framework integration, configuration, and troubleshooting:

npx skills add scalar/scalar --skill scalar-api-reference

Copy this prompt into your coding agent from your project:

Set up Scalar API Reference in this project.

Inspect the project’s framework, package manager, routing, and existing
OpenAPI setup. Choose the appropriate framework integration from
https://scalar.com/products/api-references and install it using this
project’s conventions.

If no framework integration exists, render a route using the HTML/JS guide:
https://scalar.com/products/api-references/integrations/html-js
Also ask whether I want to request a framework integration here:
https://github.com/scalar/scalar/discussions/new?category=ideas

Serve the API reference at /scalar, or use an existing documentation route,
and connect it to the project’s OpenAPI document or generated endpoint.
If no OpenAPI document exists, ask me which source to use or whether
we need to add OpenAPI generation.

Use these guides for configuration and theming:
https://scalar.com/products/api-references/configuration
https://scalar.com/products/api-references/themes

Implement the setup, verify that the page loads and displays the API
documentation, and tell me how to run it locally and where to find it.

Set up with HTML

All you need is a single HTML file. Load the ESM build from our CDN, with no build step required:

<!doctype html>
<html>
  <head>
    <title>Scalar API Reference</title>
    <meta charset="utf-8" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1" />
  </head>

  <body>
    <div id="app"></div>

    <script type="module">
      import { createApiReference } from 'https://cdn.jsdelivr.net/npm/@scalar/api-reference/esm.js'

      createApiReference('#app', {
        // The URL of the OpenAPI document
        url: 'https://registry.scalar.com/@scalar/apis/galaxy?format=json',
        // Avoid CORS issues
        proxyUrl: 'https://proxy.scalar.com',
      })
    </script>
  </body>
</html>

Need a Custom Header? Check out this example: https://codepen.io/scalarorg/pen/VwOXqam

And there's an ever-growing list of plugins and integrations:

Integrations

Built-in Support

The following frameworks have chosen Scalar API Reference as their default OpenAPI documentation UI, recognizing its developer-friendly features and modern design:


Managed Hosting

We're offering a free and paid managed hosting on the edge, too:

  • Write your API documentation and publish API references (free)
  • YOUR_NAME_HERE.apidocumentation.com subdomain and SSL (free)
  • GitHub Sync
  • Write free-form documentation
  • Collaborate with your team
  • Use any domain

Ready? Create your Scalar Account


Documentation

Topic Description
Configuration The universal configuration object
Themes Predefined themes, layouts & styling
OpenAPI OpenAPI specification extensions
Markdown Supported Markdown syntax
Plugins Extend the functionality

Projects

Project Description
Scalar API Reference Self-hosted API Reference
Scalar API Client Postman alternative
Agent Scalar Chat with your API
Scalar Registry Manage OpenAPI documents
Scalar Docs Hosted documentation
Scalar Docs Starter Starter template for Scalar Docs
Scalar SDKs SDK generation
Scalar CLI Command-line interface
Scalar Mock Server Mock APIs from OpenAPI documents
Scalar Galaxy Our OpenAPI Example
Scalar Editor OpenAPI Online Editor
Scalar OpenAPI Parser Parse OpenAPI documents
Scalar OpenAPI to Markdown OpenAPI > Markdown/HTML
Scalar OpenAPI Upgrader Upgrade OpenAPI documents
Scalar Void Server HTTP Request Mirror

Community

We are API nerds. You too? Let's chat on Discord: https://discord.gg/scalar


Contributions

Contributions are welcome! Read the CONTRIBUTING guide.

Top Contributors (Last Month)

Top contributors in September 2026 Top contributors in September 2026



Top Contributors (All Time)

hanspagel
hanspagel
amritk
amritk
hwkr
hwkr
marclave
marclave
DemonHa
DemonHa
cameronrohani
cameronrohani
xC0dex
xC0dex
geoffgscott
geoffgscott
marcalexiei
marcalexiei
tmastrom
tmastrom
antlio
antlio
inyourtime
inyourtime
liamdscalar
liamdscalar
bgrcs
bgrcs
lazerg
lazerg
bielu
bielu
AbdelhamidKhald
AbdelhamidKhald
gevann
gevann
charan-rathore
charan-rathore
alonfaraj
alonfaraj
AshishKumarPathak
AshishKumarPathak
federicobond
federicobond
ahmedrangel
ahmedrangel
matthyk
matthyk
Amorim33
Amorim33
wilhelmer
wilhelmer
baywet
baywet
YagUber
YagUber
Mason-Little
Mason-Little
ivanagas
ivanagas
Edgaraszs
Edgaraszs
guillaume-flambard
guillaume-flambard
adjsky
adjsky
RemcoGoy
RemcoGoy
mcollina
mcollina
mpminardi
mpminardi
TheVaan
TheVaan
cobyfrombrooklyn-bot
cobyfrombrooklyn-bot
si-net
si-net
paulomorgado
paulomorgado
ATREAY
ATREAY
fuma-nama
fuma-nama
AdzerKI
AdzerKI
lc-soft
lc-soft
Mohib834
Mohib834
nsychev
nsychev
yshrsmz
yshrsmz
hex0id
hex0id
soulchild
soulchild
trusta
trusta
jpjpjp
jpjpjp
horpto
horpto
x-delfino
x-delfino
ykdojo
ykdojo
wilcoschoneveld
wilcoschoneveld
timheuer
timheuer
ledgersteve
ledgersteve
SimonVadier
SimonVadier
SebastianBienert
SebastianBienert
WDaan
WDaan
Duncanma
Duncanma
aqeelat
aqeelat
silkfire
silkfire
gsmcdonald
gsmcdonald
handrews
handrews
cyphercodes
cyphercodes
PrinceManfred
PrinceManfred
mouhannad-sh
mouhannad-sh
mason-at-pieces
mason-at-pieces
luc122c
luc122c
luke-hagar-sp
luke-hagar-sp
kou029w
kou029w
robert-dean
robert-dean
bobheadxi
bobheadxi
rcollas
rcollas
rbange
rbange
hrynevychroman
hrynevychroman
rpmccarter
rpmccarter
roryschadler
roryschadler
rmp135
rmp135
ryux1
ryux1
mirismaili
mirismaili
STP5940
STP5940
captainsafia
captainsafia
realsama
realsama
ventocis
ventocis
SamyPesse
SamyPesse
scottamain
scottamain
SergioChan
SergioChan
medz
medz
dotfortun
dotfortun
smoores-dev
smoores-dev
soGit
soGit
MarioGK
MarioGK
not-my-profile
not-my-profile
tinchoz49
tinchoz49
MatteoH2O1999
MatteoH2O1999
maxehmookau
maxehmookau
MaxBreida
MaxBreida
mvt147
mvt147
theluckystrike
theluckystrike
michielbdejong
michielbdejong
1571min
1571min
fitchmultz
fitchmultz
malinbranduse
malinbranduse
Lazialize
Lazialize
Olexandr88
Olexandr88
pat-s
pat-s
pkucmus
pkucmus
petercinibulk
petercinibulk
petvas
petvas
philsturgeon
philsturgeon
pdjohntony
pdjohntony
Fjandin
Fjandin
rhuanbarreto
rhuanbarreto
rickihastings
rickihastings
Chinlinlee
Chinlinlee
bsdayo
bsdayo
WilliamBonvini
WilliamBonvini
danwithabox
danwithabox
demingongo
demingongo
eightdeekay
eightdeekay
FotieMConstant
FotieMConstant
ga1az
ga1az
g-airey
g-airey
gary5
gary5
kwaichanz
kwaichanz
lavagri
lavagri
milksense
milksense
o-az
o-az
omerp-explorium
omerp-explorium
stefanprobst
stefanprobst
dunklesToast
dunklesToast
tsiwek-piwik
tsiwek-piwik
dinwwwh
dinwwwh
zgcalebp
zgcalebp
Huliiiiii
Huliiiiii
sidsri14
sidsri14
sinh117801
sinh117801
smrtfl
smrtfl
stratosblue
stratosblue
taljeon
taljeon
yokeTH
yokeTH
Thiago-Mausbach
Thiago-Mausbach
thibaultleouay
thibaultleouay
thijskok
thijskok
TomzBench
TomzBench
rektdeckard
rektdeckard
Courtcircuits
Courtcircuits
ubay1
ubay1
mveselov-stack-wizard
mveselov-stack-wizard
Mai0313
Mai0313
Ma-ve
Ma-ve
WesleySkeen
WesleySkeen
rotciw
rotciw
Wolf-Syndrome
Wolf-Syndrome
rolldeep-stepmerrily
rolldeep-stepmerrily
zakaria-shahen
zakaria-shahen
bingbeann
bingbeann
cactyx
cactyx
foxfriends
foxfriends
carstenlebek
carstenlebek
chadwhitacre
chadwhitacre
chrislearn
chrislearn
jensenbox
jensenbox
ClanEver
ClanEver
damiansan239
damiansan239
danjohnson95
danjohnson95
danp
danp
benedekdaniel
benedekdaniel
darekaze
darekaze
DavidNiessen
DavidNiessen
delputnam
delputnam
lundibundi
lundibundi
untiny
untiny
diegolopes
diegolopes
DmitriiKhudiakov
DmitriiKhudiakov
Garfielk
Garfielk
elliotnash
elliotnash
elliott-with-the-longest-name-on-github
elliott-with-the-longest-name-on-github
emmanuel-ferdman
emmanuel-ferdman
IsaacJenkinsTPZ
IsaacJenkinsTPZ
abdulamite
abdulamite
MathurAditya724
MathurAditya724
ahmadi-akbar
ahmadi-akbar
slash686
slash686
alewin
alewin
Anandb71
Anandb71
gizero
gizero
sigpwned
sigpwned
vixalien
vixalien
AniketR10
AniketR10
arashsheyda
arashsheyda
thisisarko
thisisarko
arthurfiorette
arthurfiorette
zsilbi
zsilbi
saithis
saithis
BenJeau
BenJeau
bdpiprava
bdpiprava
Borisich
Borisich
xmrfate
xmrfate
bmanth60
bmanth60
brianheineman
brianheineman
brunogrcsada
brunogrcsada
Smyrcu
Smyrcu
andthexi
andthexi
JacobCoffee
JacobCoffee
jan-krueger
jan-krueger
Tholdrim
Tholdrim
Jefwillems
Jefwillems
jqwn
jqwn
Jannchie
Jannchie
Joab0
Joab0
jonataw
jonataw
IHIutch
IHIutch
JosiahParry
JosiahParry
Gulum
Gulum
jlnslv
jlnslv
kaigritun
kaigritun
KevSlashNull
KevSlashNull
krcm0209
krcm0209
kyllian
kyllian
sanscontext
sanscontext
ShadiestGoat
ShadiestGoat
momomuchu
momomuchu
da411d
da411d
marikaner
marikaner
froggy1014
froggy1014
facus26
facus26
filiabel
filiabel
flovouin
flovouin
Fdawgs
Fdawgs
fredrik-aschehoug
fredrik-aschehoug
galah92
galah92
GavinPizza
GavinPizza
ff-gerard
ff-gerard
GreyXor
GreyXor
255kb
255kb
gurkanceylan41
gurkanceylan41
haidargit
haidargit
Hamidrzash
Hamidrzash
haydenbleasel
haydenbleasel
HelgeSverre
HelgeSverre
CJHwong
CJHwong
hpmouton
hpmouton
iagobalmeida
iagobalmeida
IceyWu
IceyWu
Poliklot
Poliklot
eltociear
eltociear
tltsutltsu
tltsutltsu