CrudeServer 0.14.0-Alpha

This is a prerelease version of CrudeServer.
dotnet add package CrudeServer --version 0.14.0-Alpha
                    
NuGet\Install-Package CrudeServer -Version 0.14.0-Alpha
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CrudeServer" Version="0.14.0-Alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CrudeServer" Version="0.14.0-Alpha" />
                    
Directory.Packages.props
<PackageReference Include="CrudeServer" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CrudeServer --version 0.14.0-Alpha
                    
#r "nuget: CrudeServer, 0.14.0-Alpha"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CrudeServer@0.14.0-Alpha
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CrudeServer&version=0.14.0-Alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=CrudeServer&version=0.14.0-Alpha&prerelease
                    
Install as a Cake Tool

Codacy Badge

CrudeServer

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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