What problem does it solve?
Setting up a new .NET application often involves extensive manual configuration, dependency injection setup, and middleware registration. This Skill streamlines the entire bootstrap process, allowing you to get a fully functional application with a single line of code.
Core Features & Use Cases
- One-Line Setup:
builder.Services.AddKoan() automatically discovers and registers all framework modules, data adapters, AI providers, and more.
- "Reference = Intent": Simply add a NuGet package reference (e.g., for MongoDB or AI) and the functionality is automatically enabled, no manual
Program.cs changes needed.
- Auto-Registration for App Services: Use
IKoanAutoRegistrar to register your application-specific services, ensuring they are discovered and initialized by the framework.
- Boot Report Diagnostics: Get a detailed snapshot of all loaded modules, configurations, and potential warnings for easy debugging.
- Use Case: Start a new web project, add
Koan.Core, Koan.Web, and Koan.Data.Connector.Sqlite packages, and your Program.cs remains minimal while providing a full web API with data persistence.
Quick Start
To bootstrap your Koan application with all framework features, your Program.cs needs only these lines:
using Koan.Core;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddKoan();
var app = builder.Build();
app.Run();