AiDocs 1.0.3
The owner has unlisted this package.
This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package AiDocs --version 1.0.3
NuGet\Install-Package AiDocs -Version 1.0.3
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="AiDocs" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AiDocs" Version="1.0.3" />
<PackageReference Include="AiDocs" />
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 AiDocs --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AiDocs, 1.0.3"
#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 AiDocs@1.0.3
#: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=AiDocs&version=1.0.3
#tool nuget:?package=AiDocs&version=1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
AiDocs
AI-powered API documentation for ASP.NET Core. Drop it into any project with Swagger/OpenAPI and get a full documentation UI with Claude-assisted endpoint analysis, interactive testing, and more.
Features
- Endpoint Explorer — Browse all API endpoints grouped by controller/tag with search and filtering
- AI-Powered Analysis — Claude reads your Swagger spec, XML comments, and source code to generate deep endpoint explanations
- Interactive Try It Panel — Test endpoints directly from the UI with parameter inputs, request body editor, and syntax-highlighted responses
- AI Payload Generation — One-click AI-generated realistic request payloads based on your endpoint schema
- Documentation Editor — Write and edit per-endpoint and overview documentation with Markdown support
- Changelog & Versioning — Track every documentation edit with diffs and one-click restore to any previous version
- AI Chat — Ask questions about your API in a chat panel with full Markdown rendering
- Dark / Light Theme — Toggle between themes, preference saved to localStorage
- Resizable Sidebar — Drag to resize, collapse for full-width view
- Copy Response — One-click copy of API responses to clipboard
- Multi-Tenant — Documentation is scoped per application name, so multiple projects can share one database
- Zero Config UI — Single embedded HTML page, no static files to serve
Installation
dotnet add package AiDocs
Quick Start
1. Register services in Program.cs
using AiDocs.Extensions;
var builder = WebApplication.CreateBuilder(args);
// Add Swagger (required)
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
// Add AiDocs
builder.Services.AddAiDocs(builder.Configuration);
var app = builder.Build();
app.UseSwagger();
app.UseSwaggerUI();
// Map AiDocs endpoints
app.MapAiDocs();
app.Run();
2. Configure in appsettings.json
{
"AiDocs": {
"RoutePrefix": "aidocs",
"SwaggerJsonPath": "/swagger/v1/swagger.json",
"ClaudeBaseUrl": "https://api.anthropic.com",
"ClaudeApiKey": "your-claude-api-key",
"ClaudeModel": "claude-sonnet-4-6",
"ConnectionString": "your-sql-server-connection-string",
"ApplicationName": "MyApi"
}
}
3. Navigate to /aidocs
Open your browser and go to https://localhost:5001/aidocs (or whatever port your app runs on).
Configuration Options
| Option | Default | Description |
|---|---|---|
RoutePrefix |
"aidocs" |
URL prefix for the AiDocs UI |
SwaggerJsonPath |
"/swagger/v1/swagger.json" |
Path to your Swagger JSON endpoint |
ClaudeBaseUrl |
"https://api.anthropic.com" |
Anthropic API base URL |
ClaudeApiKey |
— | Your Anthropic API key (required for AI features) |
ClaudeModel |
"claude-sonnet-4-6" |
Claude model to use |
ClaudeSystemPrompt |
(built-in) | Custom system prompt for AI analysis |
ClaudeMaxTokens |
1500 |
Max tokens for AI responses |
ConnectionString |
— | SQL Server connection string (required for documentation persistence) |
ApplicationName |
(entry assembly name) | Scopes documentation per project |
SourceCodeBasePath |
(auto-detected) | Path to source code for deep AI analysis |
MaxSourceCodeCharacters |
8000 |
Max source code chars sent to AI per endpoint |
MaxOpenApiCharacters |
12000 |
Max OpenAPI spec chars sent to AI |
MaxXmlCharacters |
6000 |
Max XML comment chars sent to AI |
Database
AiDocs uses SQL Server to persist documentation. Tables are auto-created on startup:
AiDocsOverview— API overview documentationAiDocsEndpointDocumentation— Per-endpoint documentationAiDocsChangeLog— Version history with full content snapshots
If you prefer to create them manually:
CREATE TABLE AiDocsOverview (
Id UNIQUEIDENTIFIER NOT NULL DEFAULT NEWID() PRIMARY KEY,
ApplicationName NVARCHAR(500) NOT NULL DEFAULT 'Default',
Content NVARCHAR(MAX) NOT NULL,
LastUpdated DATETIMEOFFSET NOT NULL DEFAULT SYSDATETIMEOFFSET()
);
CREATE TABLE AiDocsEndpointDocumentation (
Id UNIQUEIDENTIFIER NOT NULL DEFAULT NEWID() PRIMARY KEY,
ApplicationName NVARCHAR(500) NOT NULL DEFAULT 'Default',
EndpointId NVARCHAR(500) NOT NULL,
HttpMethod NVARCHAR(10) NOT NULL,
Route NVARCHAR(1000) NOT NULL,
Documentation NVARCHAR(MAX) NOT NULL,
LastUpdated DATETIMEOFFSET NOT NULL DEFAULT SYSDATETIMEOFFSET(),
CONSTRAINT UQ_AiDocsEndpointDoc_App_Endpoint UNIQUE (ApplicationName, EndpointId)
);
CREATE TABLE AiDocsChangeLog (
Id UNIQUEIDENTIFIER NOT NULL DEFAULT NEWID() PRIMARY KEY,
ApplicationName NVARCHAR(500) NOT NULL DEFAULT 'Default',
DocumentationType NVARCHAR(50) NOT NULL,
EndpointId NVARCHAR(500) NULL,
Version INT NOT NULL,
Content NVARCHAR(MAX) NOT NULL,
CreatedAt DATETIMEOFFSET NOT NULL DEFAULT SYSDATETIMEOFFSET()
);
CREATE INDEX IX_AiDocsChangeLog_Lookup
ON AiDocsChangeLog (ApplicationName, DocumentationType, EndpointId, Version DESC);
Frameworks
- .NET 8.0
- .NET 9.0
Dependencies
- Dapper — Lightweight ORM for SQL Server
- Microsoft.Data.SqlClient — SQL Server data provider
License
MIT
| Product | Versions 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 was computed. 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.
-
net8.0
- Dapper (>= 2.1.35)
- Microsoft.Data.SqlClient (>= 5.2.2)
-
net9.0
- Dapper (>= 2.1.35)
- Microsoft.Data.SqlClient (>= 5.2.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|