ApiDeck.AspNetCore 5.0.2

dotnet add package ApiDeck.AspNetCore --version 5.0.2
                    
NuGet\Install-Package ApiDeck.AspNetCore -Version 5.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ApiDeck.AspNetCore" Version="5.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ApiDeck.AspNetCore" Version="5.0.2" />
                    
Directory.Packages.props
<PackageReference Include="ApiDeck.AspNetCore" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ApiDeck.AspNetCore --version 5.0.2
                    
#r "nuget: ApiDeck.AspNetCore, 5.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ApiDeck.AspNetCore@5.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ApiDeck.AspNetCore&version=5.0.2
                    
Install as a Cake Addin
#tool nuget:?package=ApiDeck.AspNetCore&version=5.0.2
                    
Install as a Cake Tool

⚑ ApiDeck.AspNetCore v5.0.0

The high-performance, framework-agnostic API explorer and documentation generator for ASP.NET Core.

Zero external dependencies. Zero bloat. Blazing fast.

NuGet License: MIT .NET


πŸ’‘ Why ApiDeck?

ApiDeck fundamentally reimagines how API documentation is generated and served. Instead of relying on heavy OpenAPI pipelines, ApiDeck builds its own optimized API metadata directly from ASP.NET Core's IApiDescriptionGroupCollectionProvider β€” no Microsoft.AspNetCore.OpenApi dependency, no Swashbuckle, no NSwag.

The result is a dramatically faster spec generation pipeline, a dramatically smaller footprint, and a premium developer experience natively built for the modern web.

Feature Swagger UI ApiDeck.AspNetCore v5.0
External Dependencies Swashbuckle / NSwag None
Spec Generation OpenAPI pipeline Direct metadata reflection
Cold Start Overhead ~200ms+ <10ms
Code Snippets Limited JS (fetch, axios), PHP (Guzzle, cURL), C# (HttpClient)
History Log None Persistent execution audit log & replay
Stress Testing None Built-in load benchmarker (P95/P99 chart)
Route Visualizer None Interactive SVG node graph map
UI Framework React-based Vanilla JS (zero framework)
Bundle Size ~1.5MB <80KB
.NET Compatibility Varies .NET 8, 9, 10 native support

πŸš€ Quick Start

1. Install

Install the package via the .NET CLI:

dotnet add package ApiDeck.AspNetCore

2. Register Services and Middleware

Add ApiDeck to your application builder.

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddControllers();

// Add ApiDeck (No AddOpenApi() needed)
builder.Services.AddApiDeck(); 

var app = builder.Build();

// Enable the middleware to serve the UI and Spec
app.UseApiDeck(); 
app.MapControllers();

app.Run();

3. Open Documentation

Fire up your application and navigate to the default documentation route:

https://localhost:<port>/apideck

Done. Two lines of code. No complex configuration required. Both the API specification and the rich HTML interface are ready to go.


✨ What's New in v5.0.0

πŸ’» Multi-Language Code Snippet Generator

  • Generate ready-to-copy code snippets for any endpoint:
    • JavaScript: fetch, axios
    • PHP: Guzzle, cURL
    • C#: HttpClient
  • 1-click clipboard copy with URL, parameters, headers, and JSON body.

πŸ“œ Request History & Replay Log

  • Full execution audit log (History button in topbar).
  • View past requests with status code badges (200 OK, 404, 500), latency metrics (ms), and timestamps.
  • 1-Click Replay & Restore: Click any past request card to restore parameters, body text, custom headers, and server response.

⚑ Performance Load Tester & Stress Benchmarking

  • Built-in load testing tool (Stress Test button in execute bar).
  • Run 10, 50, or 100 requests sequentially or in parallel.
  • Displays Average Latency (ms), P95/P99 Percentile Latency, Success Rate %, and an interactive visual latency chart.

πŸ“¦ Postman Collection & OpenAPI Export / Import

  • Postman v2.1 Export: Export your API schema as a native Postman v2.1 JSON Collection for instant import into Postman.
  • OpenAPI / Postman Importer: Import external OpenAPI 3.0 or Postman JSON specifications directly into browser memory.

πŸ—ΊοΈ Interactive API Route & Schema Node Visualizer

  • Interactive SVG canvas map (Visualizer button in topbar).
  • Visualizes API Root, Feature Groups, Endpoints, and Schemas with animated bezier curve edges.
  • Click any endpoint node in the visualizer to navigate directly to its playground details.

πŸ”€ Dual Collection & Endpoint Alphabetical Sorting

  • Sort toggle button in sidebar now sorts both Collections/Groups AND Endpoints inside each group (A-Z or Z-A).

πŸ’Ύ Complete Per-Endpoint State Retention

  • Inputs, JSON body text, custom headers, and server response results stay saved when navigating between different endpoints.

βš™οΈ Configuration Options

Tailor ApiDeck exactly to your organizational needs.

app.UseApiDeck(options =>
{
    // Change the base URL fragment
    options.RoutePrefix = "api-docs";     // Default: "apideck"
    
    // Customize the documentation title
    options.Title = "Internal Microservices"; // Default: "ApiDeck"
    
    // Toggle the UI Dark Mode baseline preference
    options.DarkMode = true;             // Default: false
});

πŸ“Œ Diagnostic Toolkit

Gain insight into your API ecosystem at a glance. Navigate to /apideck/diagnostic (using your defined RoutePrefix) to access:

  • Rapid enumeration of discovered endpoints, defined groups, and extracted schemas
  • Verification of background service and provider registrations
  • Easy fallback diagnostic validation to guarantee DI health

πŸ“‹ Compatibility

.NET Target Status Support Level
.NET 8 βœ… Supported Native STS Reflection
.NET 9 βœ… Supported Full Feature Parity
.NET 10 βœ… Supported Future Proofed

πŸ“„ License & Contribution

MIT Β© Muammar Siddiqui.

Feel absolutely free to fork, clone, and deploy ApiDeck in your private, commercial, and open-source stacks.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.