Scalar generates beautiful interactive API docs from OpenAPI specs. Replaces Swagger UI.
Express
import { apiReference } from "@scalar/express-api-reference";
app.use("/docs", apiReference({ spec: { url: "/openapi.json" }, theme: "purple" }));
Next.js
import { ApiReference } from "@scalar/nextjs-api-reference";
export default function Docs() {
return <ApiReference spec={{ url: "/api/openapi" }} />;
}
Key Features
- Interactive API docs
- Built-in API client
- Multiple themes
- Framework integrations
Need to scrape or monitor web data at scale? Check out my web scraping actors on Apify or email spinov001@gmail.com for custom solutions.
Top comments (0)