Infinitesimal is a Source Generator that turns up the ASP.NET minimal APIs to 11. Let's see how terse we can make this without losing too much functionality. This was made in a span of a couple of hours so there are bound to be bugs and PR's are welcomed.
-
Create a new ASP.NET 6 Project
dotnet new web
-
Add the Infinitesimal NuGet Package
dotnet add package Infinitesimal --version 0.0.2
-
Update the
Program.cs
withInfinitesimalWebApp.Run(args); [HttpGet("/")] static string Greet() => "This app is Infinitesimal!";
-
Run the project
dotnet run