Scalar API Reference

Interactive, embeddable API reference documentation generated from your OpenAPI or Swagger specs.

Library
npm
v1.72.1
16,198 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
90 /100 Excellent
Development Activity 100
Maintenance 100
Community 68
Maturity 52
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
87 /100 Excellent
Architecture 86
Code Quality 85
Innovation 88
Learning Curve 90

Scalar API Reference turns an OpenAPI or Swagger document into a beautiful, interactive API reference that you can embed in any web page. It renders operations, schemas, and authentication details from your spec, generates ready-to-copy code samples across many languages and frameworks, and ships with a built-in request tester so consumers can try endpoints without leaving the docs.

Built as a Vue component with a framework-agnostic standalone bundle and a React wrapper, it drops in via a single CDN script tag or as an imported component. It is fully themeable, works offline-first, and is trusted at scale with more than 20 million monthly npm installs.

What You Get

  • A drop-in interactive API reference rendered directly from an OpenAPI or Swagger document
  • A built-in API request tester so readers can call endpoints from within the docs
  • Automatic code-sample generation across many languages and HTTP client libraries
  • Full theming and customization plus first-class integrations for popular frameworks
  • Multiple delivery formats: a CDN standalone script, a Vue component, and a React wrapper

Common Use Cases

  • Publishing public-facing API documentation for a REST service
  • Embedding live, testable API references inside an existing docs site or dashboard
  • Replacing an aging Swagger UI setup with a modern, themeable reference
  • Giving internal teams an interactive way to explore and try microservice endpoints

Under The Hood

Architecture - The package (packages/api-reference) is a Vue 3 application layered from a public entry (src/index.ts, src/standalone.ts, src/esm.ts) down through feature modules, components, hooks, and plugins. The standalone build exposes a global Scalar.createApiReference(‘#app’, options) API that mounts the reference into a target element, while the ESM/component builds let you import it directly; a workspace store synchronizes the parsed OpenAPI document into the reactive UI, sidebar navigation, and search.

Tech Stack - Written in TypeScript on Vue 3, it composes a large set of internal workspace packages (@scalar/api-client, @scalar/components, @scalar/oas-utils, @scalar/themes, @scalar/snippetz for code generation, @scalar/workspace-store) plus third-party libraries such as @vueuse/core, fuse.js for fuzzy search, yaml, nanoid, and microdiff. Builds are produced with Vite across default, standalone, and ESM targets in a pnpm/Turbo monorepo.

Code Quality - The package is thoroughly tested, with roughly 120 Vitest unit/integration test files alongside dedicated end-to-end and benchmark suites (test:e2e, test:benchmark) and a strict types:check script. Linting/formatting is enforced via Biome and ESLint with lefthook git hooks, reflecting a mature, well-governed codebase.

API Design - The developer experience is a headline strength: a single HTML file with one script tag and a small configuration object is enough to render a full reference, so time-to-first-result is minimal. Options are consolidated into one clearly-named configuration object, framework integrations (React wrapper, dozens of server-framework adapters) reduce boilerplate, and extensive hosted documentation covers each path.

Used by 25 apps in this directory

TypeScript
56%
Other

agenta

AI Development · Developer Tools · Devops

4,788

The open-source LLMOps platform unifying prompt engineering, evaluation, and observability for teams building reliable LLM applications.

View details
91
Repo Health
77
Technical
67
Dependency
Built with
TypeScript 56%
Python 39%
Updated 5 days ago
TypeScript
56%
Other

agenta

AI Development · Developer Tools · Devops

4,788

The open-source LLMOps platform unifying prompt engineering, evaluation, and observability for teams building reliable LLM applications.

View details
91
Repo Health
77
Technical
67
Dependency
Built with
TypeScript 56%
Python 39%
Updated 5 days ago
TypeScript
90%
Other

FastGPT

AI Agents · AI Development

29,758

Build, debug, and deploy knowledge-based AI agents with a visual workflow editor, RAG retrieval, and support for any OpenAI-compatible LLM.

View details
93
Repo Health
84
Technical
66
Dependency
Built with
TypeScript 90%
Updated 4 days ago
Rust
37%
Other

Hook0

Devops

1,491

Open-source Webhooks-as-a-Service: deliver events to your users with auto-retry, signed payloads, and a real-time subscriber dashboard — all without building the infrastructure yourself.

View details
82
Repo Health
82
Technical
69
Dependency
Built with
Rust 37%
TypeScript 12%
Updated 1 weeks ago
Rust
52%
Other

Jan

AI Assistants

44,680

Run LLMs 100% locally with full privacy, or connect to cloud AI — your machine, your data, your control.

View details
90
Repo Health
81
Technical
65
Dependency
Built with
Rust 52%
TypeScript 44%
Updated 4 days ago
TypeScript
62%
MIT

Jitsu

Data Engineering

5,094

Open-source, fully-scriptable data ingestion engine that streams events from web, apps, and APIs to any data warehouse in real time.

View details
88
Repo Health
79
Technical
66
Dependency
Built with
TypeScript 62%
Go 36%
Updated 1 weeks ago
TypeScript
50%

Kener

Devops · Monitoring

5,181

Stunning, self-hosted status pages with real-time uptime monitoring, incident management, and multi-channel notifications in a single Docker container.

View details
86
Repo Health
76
Technical
67
Dependency
Built with
TypeScript 50%
Svelte 47%
Updated 2 weeks ago
TypeScript
50%

Kener

Devops · Monitoring

5,181

Stunning, self-hosted status pages with real-time uptime monitoring, incident management, and multi-channel notifications in a single Docker container.

View details
86
Repo Health
76
Technical
67
Dependency
Built with
TypeScript 50%
Svelte 47%
Updated 2 weeks ago
TypeScript
96%
AGPL 3.0

Libra AI

AI Development · No Code Platforms

1,684

Open-source AI-powered platform that generates and deploys full-stack web applications from natural language prompts, built natively for Cloudflare Workers.

View details
31
Repo Health
71
Technical
68
Dependency
Built with
TypeScript 96%
Updated 1 years ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers