Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

scalar-api-reference

Skill by scalar

Installs, configures, and troubleshoots the Scalar API Reference inside an existing application. It is for developers who embed or self-host interactive API docs, including migrations from Swagger UI or Redoc.

  • Score 89
  • 16k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install scalar-api-reference

Built from the published package, never by AI.

git clone --depth 1 https://github.com/scalar/scalar /tmp/scalar && mkdir -p ~/.claude/skills && cp -r /tmp/scalar/.agents/skills/scalar-api-reference ~/.claude/skills/scalar-api-reference

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install scalar-api-reference in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill guides an AI assistant through adding Scalar API Reference to an application. It helps pick the integration that matches the app's framework, such as HTML, Vue, React, Next.js, Express, FastAPI, or ASP.NET Core. It explains how to load an API description from a URL or content, and how to set authentication, themes, and code sample options.

The skill keeps the application's existing description generator and API routes in place. It covers migrating from Swagger UI or Redoc and gives a checklist for verifying the docs route, the description endpoint, and common failures such as CSP blocks or CORS errors. It is for developers who want an embedded or self-hosted reference, not the hosted Scalar Docs site or the standalone API Client.

Written from the project's SKILL.md and checked against it.

What it can do

  • Choose an integrationMatches the app's framework to the right Scalar package and entry point.
  • Load API descriptionsConfigures a single URL, inline content, or multiple API sources.
  • Configure authenticationSets security scheme options for test requests without protecting the docs page.
  • Customize appearanceApplies theme, layout, sidebar, dark mode, and custom CSS settings.
  • Set code samplesChooses the default HTTP client sample and which clients are shown.
  • Migrate from Swagger UI or RedocReplaces the old renderer at the same route while keeping the existing description.
  • Troubleshoot issuesChecks blank pages, failed description loads, wrong hosts, CSP blocks, and CDN version mismatches.

What you need

  • An existing application using a framework covered by the integration guides
  • An OpenAPI description served at a browser-accessible URL or available as content
  • The project's package manager

Try asking

  • Add Scalar API Reference to my Express app using my existing OpenAPI route
  • Migrate our Swagger UI docs page to Scalar without changing the API description
  • Scalar docs page is blank in production. Help me troubleshoot it

Good to know

  • Not for the hosted Scalar Docs site configuration or standalone API Client development
  • Enabling persistAuth stores credentials in browser local storage
  • Requests and credentials pass through a configured proxyUrl, so a proxy should not be added silently
  • Compilation alone does not prove browser behavior was tested

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/scalar-api-reference/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md11 KB

Alternatives to scalar-api-reference

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

scalar-api-reference: common questions

Can this replace Swagger UI or Redoc in an existing app?

Yes. The skill covers replacing the documentation renderer at the same route while reusing the existing API description. Option names are not interchangeable, so customizations must be translated.

Does configuring auth in Scalar protect my docs page?

No. The source says that configuring the request client's authentication does not protect the page or the description endpoint. Access control must be handled separately.

Which frameworks does this skill support?

The source lists HTML/vanilla JavaScript, Vue, React, Next.js, Nuxt, Express, Fastify, Hono, NestJS, FastAPI, and ASP.NET Core. Other frameworks require checking the integration catalog.

How do I install scalar-api-reference?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is scalar-api-reference free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is scalar-api-reference safe to use?

It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to scalar-api-reference?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

scalar-api-reference Install

Add to stack

Loading.