Skip to content

High performance sandbox http framework for performance critical and specialized solutions.

License

Notifications You must be signed in to change notification settings

MDA2AV/Wired.IO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

130 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wired.IO

NuGet

Full project documentation

Wired.IO is a lightweight, high-performance, MIT licensed HTTP server framework for .NET. Designed from the ground up for embedding, extensibility, and raw speed, it gives you full control over your request pipeline without the weight of traditional web frameworks.

Whether you're building APIs, embedded servers, developer tools, or hybrid applications, Wired.IO provides a focused, zero-friction foundation that runs anywhere your .NET code does - no external hosting required.

Existing Main Features

  • Http/1.1 Support out of the box
  • Native AoT support
  • Custom Http Handlers for custom Http/x protocols
  • Baked in Dependency Injection/IoC Container with IServiceCollecion/IServiceProvider
  • Full Secure/TLS
  • Full Custom Middleware
  • Native ILoggingFactory
  • Static Resource Hosting
  • SPA, MPA Hosting
  • Embeddable with exising Apps

Why Wired.IO?

Unlike other lightweight web servers such as NetCoreServer or EmbedIO, Wired.IO is built directly on top of .NET’s IServiceCollection and integrates seamlessly with the standard dependency injection system. This design enables Wired.IO to provide the same modularity, extensibility, and testability benefits as ASP.NET Core, while still being extremely lightweight and embeddable. In contrast, other alternatives often rely on custom service registration patterns or lack DI support entirely, making them harder to scale or integrate cleanly with modern application architectures. With Wired.IO, developers can reuse familiar patterns like constructor injection, scoped services, middleware, and configuration, gaining the flexibility of ASP.NET Core with the performance and simplicity of a microserver.

  • Fast by default – Built on System.IO.Pipelines and optimized for low allocations and high throughput.
  • 🧩 Fully embeddable – Add a production-ready HTTP server directly into your desktop, mobile, or console app.
  • 🧵 Lean and composable – Define only what you need: your context, your pipeline, your handlers.
  • 🔧 Customizable by design – TLS, routing, DI, and middleware are all open and easily replaceable.
  • 🪶 No runtime magic – Everything is explicit. No black boxes, no surprises.

Quick Start

using Wired.IO.App;
using Wired.IO.Http11Express.Response.Content;
using Wired.IO.Protocol.Response;

var builder = WiredApp
    .CreateExpressBuilder()
    .Port(8080);

builder
    .MapGroup("/")
    .MapGet("/my-endpoint", context =>
    {
        context
            .Respond()
            .Status(ResponseStatus.Ok)
            .Type("text/plain"u8)
            .Content(new ExpressStringContent("My endpoint!"));
    });
    
await builder
    .Build()
    .RunAsync();

Extending apps with functionality provided by GenHTTP

The GenHTTP adapter allows you to add modules provided by the GenHTTP framework to your Wired.IO app. After adding the corresponding nuget package, you can reference and map those handlers on your app:

using GenHTTP.Adapters.WiredIO;

using GenHTTP.Modules.ApiBrowsing;
using GenHTTP.Modules.Functional;
using GenHTTP.Modules.Layouting;
using GenHTTP.Modules.OpenApi;

using Wired.IO.App;

// GET http://localhost:5000/api/redoc/

var api = Inline.Create()
                .Get("hello", (string a) => $"Hello {a}!");

var layout = Layout.Create()
                   .Add(api)
                   .AddOpenApi()
                   .AddRedoc()
                   .Defaults(); // adds compression, eTag handling, ...

var builder = WiredApp.CreateExpressBuilder()
                      .Port(5000)
                      .MapGenHttp("/api/*", layout);

var app = builder.Build();

await app.RunAsync();

Thanks

  • This project includes code originating from GenHTTP: PooledDictionary.cs, PoolBufferedStream.cs, ContentType.cs

About

High performance sandbox http framework for performance critical and specialized solutions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 3

  •  
  •  
  •  

Languages