BASE

Scalar

Scalar

Backend / API library · Free

OpenAPI tools with API Reference, a client, and SDK tooling: they display the API contract and help test server requests.

Also known as: scalar/scalar

Resource illustration: Scalar

Open resource ↗

What you can use for free

Code and local use under MIT.

Paid features and costs

Computing resources, self-hosting, and external services are paid for separately if used.

Access and limitations

Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.

Use cases

  • Display an OpenAPI contract and test a request
  • Open API Reference/the client and check a request against the contract

Example workflow

A possible workflow; this is not a report of hands-on testing.

Display an OpenAPI contract and test a request.

Before you start

  • A data contract or HTTP workflow.
  • A project with a supported runtime.

Steps

  1. Prepare your backend's current OpenAPI document.
  2. Open API Reference/the client and check a request against the contract.
  3. Add error handling and an integration check of the result.

Check your result

  • Invalid and missing data are handled predictably.
  • Types and the actual response agree; errors are not hidden.

Choosing Scalar

Display an OpenAPI contract and test a request

Choose this when

  • Display an OpenAPI contract and test a request
  • Open API Reference/the client and check a request against the contract

Requirements

  • API Reference requires an OpenAPI/Swagger contract; API Client can be used independently for requests.

Things to consider

  • Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
  • Terms of use: MIT for the code; dependencies have separate licenses.
  • The README describes Watch Mode for synchronizing API Client with a server framework. For browser requests, configure CORS or an appropriate proxy separately; the API Reference example uses proxyUrl.

Frequently asked questions

What can you use for free in Scalar?

Code and local use under MIT.

What additional costs might arise with Scalar?

Computing resources, self-hosting, and external services are paid for separately if used.

What terms of use matter for Scalar?

MIT for the code; dependencies have separate licenses.

How do you get started with Scalar?

Prepare your backend's current OpenAPI document. Open API Reference/the client and check a request against the contract. Add error handling and an integration check of the result.

How does API Reference differ from API Client?

Reference displays the specification with examples and built-in testing. Client is designed for sending requests, environments, and dynamic parameters; desktop and browser versions are offered.

Can documentation be updated alongside the backend?

The README lists API Reference integrations with server frameworks. Watch Mode is documented for synchronizing API Client with a server framework; for Reference, choose an integration and connect your OpenAPI document or its endpoint.

License

MIT for the code; dependencies have separate licenses.

MIT — permissive license

You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.

License terms

Technologies and topics

  • Scalar
  • API
  • Development

Sources

Other resources