Scalar.AspNetCore 1.2.55

Scalar .NET API Reference Integration

Version Downloads Discord

This .NET package Scalar.AspNetCore provides an easy way to render beautiful API references based on OpenAPI/Swagger documents.

Made possible by the wonderful work of @captainsafia on building the integration and docs written for the Scalar & .NET integration. Thanks to @xC0dex for making it awesome.

dotnet

Usage

  1. Install the package
dotnet add package Scalar.AspNetCore --version 1.2.*

[!NOTE] We release new versions frequently to bring you the latest features and bug fixes. To reduce the noise in your project file, we recommend using a wildcard for the patch version, e.g., 1.2.*.

  1. Add the using directive
using Scalar.AspNetCore;
  1. Configure your application

Add the following to Program.cs based on your OpenAPI generator:

For .NET 9 using Microsoft.AspNetCore.OpenApi:

builder.Services.AddOpenApi();

if (app.Environment.IsDevelopment())
{
    app.MapOpenApi();
    app.MapScalarApiReference();
}

For .NET 8 using Swashbuckle:

builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();

if (app.Environment.IsDevelopment())
{
    app.UseSwagger(options =>
    {
        options.RouteTemplate = "/openapi/{documentName}.json";
    });
    app.MapScalarApiReference();
}

For .NET 8 using NSwag:

builder.Services.AddEndpointsApiExplorer();
builder.Services.AddOpenApiDocument();

if (app.Environment.IsDevelopment())
{
    app.UseOpenApi(options =>
    {
        options.Path = "/openapi/{documentName}.json";
    });
    app.MapScalarApiReference();
}

That’s it! 🎉 With the default settings, you can now access the Scalar API reference at /scalar/v1 in your browser, where v1 is the default document name.

Configuration

For a full configuration guide, including OAuth integration and custom settings, refer to the dotnet integration documentation.

Development

  1. Download .NET 9.0
  2. Jump to the package folder: cd packages/scalar.aspnetcore
  3. Do a fresh build: dotnet build
  4. Run the tests: dotnet test

And see it in action here:

  1. Switch to the playground: cd playground/Scalar.AspNetCore.Playground
  2. Start the playground: dotnet run
  3. Open this URL in the browser: http://localhost:5056/scalar/v1

Community

We are API nerds. You too? Let’s chat on Discord: https://discord.gg/scalar

License

The source code in this repository is licensed under MIT.

No packages depend on Scalar.AspNetCore.

.NET 8.0

  • No dependencies.

.NET 9.0

  • No dependencies.

Version Downloads Last updated
2.16.11 2 07/08/2026
2.16.10 7 07/04/2026
2.16.9 6 07/03/2026
2.16.8 8 07/02/2026
2.16.7 8 06/30/2026
2.16.6 10 06/26/2026
2.16.5 10 06/25/2026
2.16.4 10 06/18/2026
2.16.3 10 06/18/2026
2.16.2 11 06/18/2026
2.16.1 10 06/18/2026
2.14.14 9 06/18/2026
2.14.13 10 06/18/2026
2.14.11 9 06/18/2026
2.14.10 8 06/18/2026
2.14.9 8 06/18/2026
2.14.8 10 06/18/2026
2.14.7 9 06/18/2026
2.14.6 8 06/18/2026
2.14.5 9 06/18/2026
2.14.4 11 06/18/2026
2.14.3 10 06/18/2026
2.14.2 6 06/18/2026
2.14.1 10 06/18/2026
2.14.0 8 06/18/2026
2.13.22 9 06/18/2026
2.13.21 7 06/18/2026
2.13.20 8 06/18/2026
2.13.19 8 06/18/2026
2.13.18 7 06/18/2026
2.13.17 8 06/18/2026
2.13.16 10 06/18/2026
2.13.15 13 06/18/2026
2.13.14 9 06/18/2026
2.13.13 7 06/18/2026
2.13.12 9 06/18/2026
2.13.11 9 06/18/2026
2.13.10 9 06/18/2026
2.13.9 8 06/18/2026
2.13.8 9 06/18/2026
2.13.7 7 06/18/2026
2.13.6 9 06/18/2026
2.13.5 9 06/18/2026
2.13.3 8 06/18/2026
2.13.2 8 06/18/2026
2.13.1 8 06/18/2026
2.13.0 6 06/18/2026
2.12.54 9 06/18/2026
2.12.53 10 06/18/2026
2.12.52 8 06/18/2026
2.12.51 8 06/18/2026
2.12.50 9 06/18/2026
2.12.49 10 06/18/2026
2.12.48 7 06/18/2026
2.12.47 9 06/18/2026
2.12.46 9 06/18/2026
2.12.45 8 06/18/2026
2.12.44 10 06/18/2026
2.12.43 8 06/18/2026
2.12.42 9 06/18/2026
2.12.41 11 06/18/2026
2.12.40 8 06/18/2026
2.12.39 10 06/18/2026
2.12.38 10 06/18/2026
2.12.37 9 06/18/2026
2.12.36 9 06/18/2026
2.12.35 9 06/18/2026
2.12.34 10 06/18/2026
2.12.33 7 06/18/2026
2.12.32 9 06/18/2026
2.12.31 7 06/18/2026
2.12.30 8 06/18/2026
2.12.29 7 06/18/2026
2.12.28 9 06/18/2026
2.12.27 7 06/18/2026
2.12.26 8 06/18/2026
2.12.25 9 06/18/2026
2.12.24 9 06/18/2026
2.12.23 10 06/18/2026
2.12.22 10 06/18/2026
2.12.21 9 06/18/2026
2.12.20 7 06/18/2026
2.12.19 9 06/18/2026
2.12.18 11 06/18/2026
2.12.17 8 06/18/2026
2.12.16 10 06/18/2026
2.12.15 9 06/18/2026
2.12.14 7 06/18/2026
2.12.13 9 06/18/2026
2.12.12 7 06/18/2026
2.12.11 9 06/10/2026
2.12.10 8 06/18/2026
2.12.9 11 06/18/2026
2.12.8 9 06/18/2026
2.12.7 11 06/18/2026
2.12.6 10 06/18/2026
2.12.5 10 06/18/2026
2.12.4 9 06/18/2026
2.12.3 7 06/18/2026
2.12.2 9 06/18/2026
2.12.1 7 06/18/2026
2.12.0 8 06/18/2026
2.11.10 9 06/18/2026
2.11.9 9 06/18/2026
2.11.8 10 06/18/2026
2.11.7 8 06/18/2026
2.11.6 9 06/18/2026
2.11.5 8 06/18/2026
2.11.4 10 06/18/2026
2.11.3 7 06/18/2026
2.11.2 8 06/18/2026
2.11.1 9 06/18/2026
2.11.0 8 06/18/2026
2.10.3 11 06/18/2026
2.10.1 7 06/18/2026
2.10.0 9 06/18/2026
2.9.0 6 06/18/2026
2.8.11 10 06/18/2026
2.8.10 10 06/18/2026
2.8.9 5 06/18/2026
2.8.8 9 06/18/2026
2.8.7 7 06/18/2026
2.8.6 7 06/18/2026
2.8.5 8 06/18/2026
2.8.4 7 06/18/2026
2.8.3 7 06/18/2026
2.8.2 7 06/18/2026
2.8.1 7 06/18/2026
2.8.0 7 06/18/2026
2.7.4 7 06/18/2026
2.7.3 8 06/18/2026
2.7.2 8 06/18/2026
2.7.1 7 06/18/2026
2.7.0 6 06/18/2026
2.6.9 7 06/18/2026
2.6.8 7 06/18/2026
2.6.7 7 06/18/2026
2.6.6 7 06/18/2026
2.6.5 6 06/18/2026
2.6.4 7 06/18/2026
2.6.3 7 06/18/2026
2.6.2 6 06/18/2026
2.6.1 8 06/18/2026
2.6.0 6 06/18/2026
2.5.6 7 06/18/2026
2.5.5 5 06/18/2026
2.5.3 8 06/18/2026
2.5.1 7 06/18/2026
2.5.0 7 06/18/2026
2.4.22 9 06/18/2026
2.4.21 9 06/18/2026
2.4.20 10 06/18/2026
2.4.19 9 06/18/2026
2.4.18 9 06/18/2026
2.4.17 10 06/18/2026
2.4.16 7 06/18/2026
2.4.15 10 06/18/2026
2.4.14 12 06/18/2026
2.4.13 6 06/18/2026
2.4.12 9 06/18/2026
2.4.11 11 06/18/2026
2.4.9 7 06/18/2026
2.4.8 5 06/18/2026
2.4.7 7 06/18/2026
2.4.6 8 06/18/2026
2.4.5 8 06/18/2026
2.4.4 7 06/18/2026
2.4.3 5 06/18/2026
2.4.2 9 06/18/2026
2.4.1 8 06/18/2026
2.3.1 7 06/18/2026
2.3.0 8 06/18/2026
2.2.7 7 06/18/2026
2.2.5 6 06/18/2026
2.2.4 7 06/18/2026
2.2.3 7 06/18/2026
2.2.2 7 06/18/2026
2.2.1 9 06/18/2026
2.2.0 8 06/18/2026
2.1.18 8 06/18/2026
2.1.17 7 06/18/2026
2.1.16 10 06/18/2026
2.1.15 9 06/18/2026
2.1.14 9 06/18/2026
2.1.13 7 06/18/2026
2.1.12 7 06/18/2026
2.1.11 10 06/18/2026
2.1.10 9 06/18/2026
2.1.9 7 06/18/2026
2.1.8 7 06/18/2026
2.1.7 6 06/18/2026
2.1.6 7 06/18/2026
2.1.5 6 06/18/2026
2.1.4 5 06/18/2026
2.1.3 8 06/18/2026
2.1.2 7 06/18/2026
2.1.1 7 06/18/2026
2.1.0 10 06/18/2026
2.0.36 9 06/18/2026
2.0.34 7 06/18/2026
2.0.33 8 06/18/2026
2.0.30 8 06/18/2026
2.0.29 8 06/18/2026
2.0.28 9 06/18/2026
2.0.27 11 06/18/2026
2.0.26 9 06/18/2026
2.0.25 12 06/18/2026
2.0.24 11 06/18/2026
2.0.23 8 06/18/2026
2.0.22 11 06/18/2026
2.0.21 8 06/18/2026
2.0.20 8 06/18/2026
2.0.19 8 06/18/2026
2.0.18 9 06/18/2026
2.0.17 7 06/18/2026
2.0.16 8 06/18/2026
2.0.15 9 06/18/2026
2.0.14 9 06/18/2026
2.0.12 10 06/18/2026
2.0.11 8 06/18/2026
2.0.10 10 06/18/2026
2.0.9 6 06/18/2026
2.0.8 10 06/18/2026
2.0.7 7 06/18/2026
2.0.6 8 06/18/2026
2.0.5 6 06/18/2026
2.0.4 6 06/18/2026
2.0.2 8 06/18/2026
2.0.1 7 06/18/2026
2.0.0 7 06/18/2026
1.2.76 10 06/18/2026
1.2.75 12 06/18/2026
1.2.74 10 06/18/2026
1.2.73 7 06/18/2026
1.2.72 9 06/18/2026
1.2.71 9 06/18/2026
1.2.70 8 06/18/2026
1.2.69 7 06/18/2026
1.2.68 9 06/18/2026
1.2.67 7 06/18/2026
1.2.66 8 06/18/2026
1.2.65 7 06/18/2026
1.2.64 7 06/18/2026
1.2.63 11 06/18/2026
1.2.61 10 06/18/2026
1.2.60 8 06/18/2026
1.2.59 8 06/18/2026
1.2.58 9 06/18/2026
1.2.57 9 06/18/2026
1.2.56 6 06/18/2026
1.2.55 8 06/18/2026
1.2.54 9 06/18/2026
1.2.53 10 06/18/2026
1.2.52 9 06/18/2026
1.2.51 9 06/18/2026
1.2.50 9 06/18/2026
1.2.49 7 06/18/2026
1.2.48 9 06/18/2026
1.2.47 11 06/18/2026
1.2.46 10 06/18/2026
1.2.45 7 06/18/2026
1.2.44 10 06/18/2026
1.2.43 10 06/18/2026
1.2.42 7 06/18/2026
1.2.41 7 06/18/2026
1.2.40 8 06/18/2026
1.2.39 9 06/18/2026
1.2.38 8 06/18/2026
1.2.37 9 06/18/2026
1.2.36 9 06/18/2026
1.2.35 9 06/18/2026
1.2.34 6 06/18/2026
1.2.33 9 06/18/2026
1.2.32 9 06/18/2026
1.2.31 7 06/18/2026
1.2.30 7 06/18/2026
1.2.29 6 06/18/2026
1.2.28 10 06/18/2026
1.2.27 8 06/18/2026
1.2.26 8 06/18/2026
1.2.25 9 06/18/2026
1.2.24 8 06/18/2026
1.2.23 8 06/18/2026
1.2.22 9 06/18/2026
1.2.21 9 06/18/2026
1.2.20 7 06/18/2026
1.2.19 9 06/18/2026
1.2.18 11 06/18/2026
1.2.17 7 06/18/2026
1.2.16 9 06/18/2026
1.2.15 8 06/18/2026
1.2.14 8 06/18/2026
1.2.13 10 06/18/2026
1.2.12 8 06/18/2026
1.2.11 9 06/18/2026
1.2.10 9 06/18/2026
1.2.9 6 06/18/2026
1.2.8 5 06/18/2026
1.2.7 5 06/18/2026
1.2.6 7 06/18/2026
1.2.5 6 06/18/2026
1.2.4 6 06/18/2026
1.2.3 6 06/18/2026
1.1.2 7 06/18/2026
1.1.1 5 06/18/2026
1.0.1 8 06/18/2026