CrudeServer 0.14.0-Alpha
dotnet add package CrudeServer --version 0.14.0-Alpha
NuGet\Install-Package CrudeServer -Version 0.14.0-Alpha
<PackageReference Include="CrudeServer" Version="0.14.0-Alpha" />
<PackageVersion Include="CrudeServer" Version="0.14.0-Alpha" />
<PackageReference Include="CrudeServer" />
paket add CrudeServer --version 0.14.0-Alpha
#r "nuget: CrudeServer, 0.14.0-Alpha"
#:package CrudeServer@0.14.0-Alpha
#addin nuget:?package=CrudeServer&version=0.14.0-Alpha&prerelease
#tool nuget:?package=CrudeServer&version=0.14.0-Alpha&prerelease
Crude Server - A rough and simple webserver in .NET
Crude Server, is a simple server written in .NET and using a HttpListener to answer requests in an async fashion.
It uses something similar to a command pattern, where each request is its own class, which makes it quite easy to unit test and all functionality and find out what happens.
THIS PROJECT IS STILL IN A VERY ALPHA PHASE SO USE AT YOUR OWN RISK
Why is this necessary
It's not. I built this just because I could and was curious if it would work, and while doing it, I actually enjoyed workin on it.
It is not meant to replace the default .NET Web Apps, just give an alternative for fun and a break from the usual day to day operations.
What can I do with this server
Currently you can build any crude application you want with it, since it supports almost anything you need. Unlike the standard .NET Web Apps, you still need to wire things up manually, such as most of your Database Dependencies, and etc.
However, since it uses the standard IServiceProvider Interface, it should not bring up any major issues.
It uses a simple middleware mechanism to process, execute and handle all responses.
To see examples, look into the Integration Tests or the project website Crude Server
TO DO's
- Build Nuget Packages
- Antiforgery Tokens
- Request Size Limiting
- Common UI Helpers for HandleBards
- Commands as functions
- Dependency Injection on commands
- Websocket support
- Non embedded file support
- Non view file support
- Crude Server Documentation and Demo app
- Add cookie based auth
- Allow Replacing default status responses (ie: 401, 404, etc)
- Allow support for sections (using inline partials)
- Add Automated scans for code
- Improve support for Error Handling
- Command Registration via attributes
| 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. |
-
net8.0
- Handlebars.Net (>= 2.1.6)
- Handlebars.Net.Helpers (>= 2.4.7)
- Microsoft.Extensions.DependencyInjection (>= 9.0.0)
- Microsoft.IdentityModel.Tokens (>= 8.2.1)
- Newtonsoft.Json (>= 13.0.3)
- System.IdentityModel.Tokens.Jwt (>= 8.2.1)
- System.Runtime (>= 4.3.1)
-
net9.0
- Handlebars.Net (>= 2.1.6)
- Handlebars.Net.Helpers (>= 2.4.7)
- Microsoft.Extensions.DependencyInjection (>= 9.0.0)
- Microsoft.IdentityModel.Tokens (>= 8.2.1)
- Newtonsoft.Json (>= 13.0.3)
- System.IdentityModel.Tokens.Jwt (>= 8.2.1)
- System.Runtime (>= 4.3.1)
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 |
|---|---|---|
| 0.14.0-Alpha | 152 | 3/28/2025 |
| 0.13.0-Alpha | 95 | 12/11/2024 |
| 0.12.0-Alpha | 101 | 9/24/2024 |
| 0.11.0-Alpha | 110 | 7/24/2024 |
| 0.10.0-Alpha | 91 | 7/9/2024 |
| 0.9.0-Alpha | 87 | 7/8/2024 |
| 0.8.0-Alpha | 94 | 7/4/2024 |
| 0.7.0-Alpha | 101 | 7/2/2024 |
| 0.6.0-Alpha | 104 | 6/28/2024 |
| 0.5.0-Alpha | 107 | 5/29/2024 |
| 0.3.0-Alpha | 116 | 5/9/2024 |
| 0.2.0-Alpha | 119 | 5/4/2024 |
| 0.1.0-Alpha | 73 | 5/3/2024 |