Self-host scalar
release-2026-11-05-1fa4255OpenAPI reference docs and API client
docker run -p 8080:8080 -e API_REFERENCE_CONFIG='{"sources":[{"url": "https://registry.scalar.com/@scalar/apis/galaxy?format=json"}],"theme": "purple"}' scalarapi/api-reference:latest- Stars
- 16 384
- Port
- 8080 (HTTP UI of the self-hosted API Reference container (mapped 8080:8080))
scalarapi/api-referenceWhat is scalar?
Scalar is an open-source toolkit for publishing and trying out HTTP APIs. The heart of it is the API Reference, a JavaScript widget that takes an OpenAPI or Swagger file and turns it into browsable documentation where every operation can be executed and where request snippets are produced for numerous languages. That widget can be embedded with a CDN script tag, wired into dozens of web frameworks through dedicated plugins, or run standalone as the scalarapi/api-reference container, which listens on 8080, picks up OpenAPI and AsyncAPI files you mount at /docs, reads a JSON config from an environment variable, honours a subpath prefix for reverse proxies and answers on a health endpoint. The monorepo also holds the API Client, a desktop and browser tool that treats an OpenAPI document as its collection, adds environments, dynamic variables, pre-request scripts and assertion tests, and can ingest Swagger 2.0, Postman and cURL inputs. Rounding it out are a CLI, a mock server, an OpenAPI parser with upgrade and Markdown-export helpers, and an HTTP echo server. Team collaboration, Git sync, hosted documentation sites, SDK builds and MCP servers belong to Scalar's managed platform with free and paid tiers rather than to the container you run yourself.
scalar alternatives
HoppscotchOpen-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, InsomniaCompareHoppscotch with scalar
Hoppscotch Community EditionSelf-hosted, open-source API development ecosystem for testing REST, GraphQL, WebSocket, and MQTT APIs — a lightweight Postman alternative with PWA and desktop apps.CompareHoppscotch Community Edition with scalar
Open ResponsesA self-hosted, open-source server implementing the OpenAI Responses API specification with support for multiple LLM providers and the Agents SDK.CompareOpen Responses with scalar
homarr-iframesSelf-hosted Go API generating embeddable iFrames for 17+ services like Linkwarden, Vikunja, Overseerr, Sonarr, Radarr, Uptime Kuma — works in any dashboard.Comparehomarr-iframes with scalar
DocusealOpen-source, self-hosted DocuSign alternative for creating fillable PDF forms and collecting digital signatures via a mobile-friendly web tool.CompareDocuseal with scalar
AppwriteThe open-source cloud for agents & devs. Including Auth, Databases, Storage, Functions, Messaging, Hosting, Realtime, WAF and moreCompareAppwrite with scalar
YaadeOpen-source, self-hosted Postman alternative for teams: shared API collections, environments, scripts, OAuth2/OIDC login, and code export, run via Docker.CompareYaade with scalar
swiftwaveSwiftWave: self-hosted open source PaaS for deploying apps on any server. Alternative to Heroku/Netlify/Render with 1GB RAM min and integrated app store.Compareswiftwave with scalar
Should you self-host scalar?
scalar scores 76/100 on selfhost.directory (how scoring works) and ranks #3 of 13 in API. It has 16 384 GitHub stars, +165 in the last 30 days.
It shipped 49 stable releases in the past year. The latest, release-2026-11-05-1fa4255, came out on 5 November 2026. New versions land roughly every 3 days.
Setup is easy: most people get it running in one sitting. An official Docker image is available. It is MIT-licensed and written mostly in Typescript.
Its closest alternative on selfhost.directory is Hoppscotch Community Edition (83/100, 80 764 stars). It scores higher overall, so compare the two before you pick. See scalar vs Hoppscotch Community Edition side by side.
Features
- AsyncAPI support
- Built-in API testing tool
- Container health check
- Environments and variables
- Generated code examples
- Import from OpenAPI, Postman or cURL
- Live spec sync (watch mode)
- Offline-first API client
- OpenAPI/Swagger documentation rendering
- Pre-request Scripts
- Response tests
- Theming
- Two layouts
scalar README
FAQ
Can I write tests for API responses?
Yes, post-response scripts can assert on status codes, headers and bodies with the Postman-compatible pm API.
Does the API Client work offline?
Yes, it is offline-first: requests and collections live on your machine, and the desktop app only needs a network for the requests you send.
Can I import an OpenAPI or Swagger file?
OpenAPI 3.x in JSON or YAML is the native format; Swagger 2.0 is upgraded to OpenAPI 3.1, and URL, Postman collection or cURL imports also work.
Which platforms does the API Client run on?
The browser, plus desktop apps for macOS, Windows and Linux.
Is Scalar a Postman alternative?
For many teams it is: requests, collections, environments, scripts and response tests are covered, and Postman v2.0/v2.1 collections can be imported, but collections are built from your OpenAPI document.
Is Scalar API Client free?
Yes, it is MIT-licensed open source and free in the browser at client.scalar.com or as a desktop app.
More in API
SeekStormOpen-source Rust search engine with BM25 lexical and vector search fused in one hybrid query, multi-tenant REST server, web UI and MCP support. Self-hosted, free forever.
Signal-APISelf-hosted, open-source Docker container that wraps signal-cli as a REST API, so scripts can register a Signal number and send, receive and manage messages.
storStor is a self-hosted, open-source JSON database that exposes a REST-like HTTP API for CRUD operations, using MongoDB as its storage backend and Node.js for the server.
SupabaseMetaOpen-source, self-hosted REST API that manages Postgres over HTTP: list and alter tables, columns, roles, functions and triggers, run SQL, generate types.
tabbyAPITabbyAPI is a self-hosted, open-source FastAPI server providing an OpenAI-compatible REST API for running ExllamaV3-quantized LLMs on your own GPU hardware.
tempmail-serverSelf-hosted disposable email backend with SMTP server and REST API. Features auto-expiring addresses, multi-domain support, and PostgreSQL storage.
teslamateapiTeslaMateApi is a self-hosted, open-source REST API exposing TeslaMate vehicle data as JSON with endpoints for status, drives, charges, and remote commands.
TrailBaseOpen-source, self-hosted Firebase alternative: one Rust executable with SQLite, type-safe REST and realtime APIs, auth, file storage, WASM endpoints and an admin UI.
TurtlOpen-source, self-hosted backend server for Turtl clients: account management, data storage, syncing, sharing permissions and a plugin architecture, on Node and Postgres.
unbagrndUnbagrnd - Free, Fast & Open-source AI-powered background remover for Windows, macOS, Linux and Android.
UniFi-API-BrowserSelf-hosted, open-source PHP tool to browse UniFi Controller API data: multiple classic or API-key controllers, site switching, JSON/PHP output.
unstructuredSelf-hosted open-source REST API for document partitioning into structured elements as JSON/CSV. Supports PDF, images, OCR, table extraction, chunking.
0 comments