KitchenPC.Imp 0.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package KitchenPC.Imp --version 0.2.0
                    
NuGet\Install-Package KitchenPC.Imp -Version 0.2.0
                    
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="KitchenPC.Imp" Version="0.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KitchenPC.Imp" Version="0.2.0" />
                    
Directory.Packages.props
<PackageReference Include="KitchenPC.Imp" />
                    
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 KitchenPC.Imp --version 0.2.0
                    
#r "nuget: KitchenPC.Imp, 0.2.0"
                    
#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 KitchenPC.Imp@0.2.0
                    
#: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=KitchenPC.Imp&version=0.2.0
                    
Install as a Cake Addin
#tool nuget:?package=KitchenPC.Imp&version=0.2.0
                    
Install as a Cake Tool

Imp

Build NuGet

Imp (In Memory Pages) is a lightweight page framework built on ASP.NET Core middleware. It maps request paths to .NET classes, creates pages through dependency injection, binds query-string values to page properties, and renders responses directly or through embedded XML templates.

Imp supports the actively maintained .NET 8 and .NET 10 LTS releases.

The idea in one example

Given this page class:

using System.Text.Encodings.Web;
using System.Threading.Tasks;
using Imp;
using Microsoft.AspNetCore.Http;

namespace MySite.Pages;

public sealed class Hello : BasePage
{
   public string Name { get; set; } = "World";

   public override Task Render(HttpResponse response)
   {
      string name = HtmlEncoder.Default.Encode(Name);
      return response.WriteAsync($"<h1>Hello, {name}!</h1>");
   }
}

Imp maps the request:

/hello?Name=Mike

to MySite.Pages.Hello, binds Mike to its Name property, and renders:

<h1>Hello, Mike!</h1>

That is Imp's central model: URL paths map to page classes, and query-string parameters map to public writable properties. Query-property names are case-sensitive, so this example uses Name, not name.

Get started

Install the package:

dotnet add package KitchenPC.Imp

Then follow the Wiki's Getting Started guide to configure the middleware and create your first page.

For a complete working application, see the Todo sample or read its guided tour.

Documentation

The Imp Wiki contains the complete developer guide:

Build and test

From the repository root:

dotnet test

To create local NuGet and symbol packages:

dotnet pack src/Imp/Imp.csproj --configuration Release --output artifacts

See Build, Package, and Contribute for repository structure, release details, and contribution guidance.

License

Imp is available under the MIT License.

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 was computed.  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 is compatible.  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.
  • net10.0

    • No dependencies.
  • net8.0

    • No dependencies.

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.3.0 136 11/11/2026
0.2.0 239 8/28/2026
0.1.1 116 8/28/2026
0.1.0 179 8/19/2026