CODESEEDSign in
Explore projects
C#advancedbackend

Minimal API Framework in C#

Minimal HTTP routing framework in C# (without ASP.NET) for a deep understanding of HTTP, middleware, and dependency injection.

5 steps

Project steps

  1. 01

    HTTP Listener

    HttpListener that accepts connections and processes them asynchronously.

  2. 02

    Router

    Radix tree for pattern matching: GET /users/:id, wildcard, query params.

  3. 03

    Middleware pipeline

    Chain of responsibility: logging → auth → rate limit → handler.

  4. 04

    DI Container

    Simple dependency injection container with Singleton, Scoped, Transient.

  5. 05

    Body parsing

    JSON, form-urlencoded with model binding and attribute validation.

Recommended resources

Ready to build this?

Fork the repo on GitHub and start building. A mentor will review your code when you open a PR.

5 steps

Tech stack

C#.NET 8System.Net.HttpListenerSystem.Text.Json