Incursa.OpenAI.ChatKit.AspNetCore 1.0.16

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

Incursa.OpenAI.ChatKit.AspNetCore

Incursa.OpenAI.ChatKit.AspNetCore is the ASP.NET Core integration package for Incursa.OpenAI.ChatKit.

It adds:

  • MapChatKit<TServer, TContext>(...) for HTTP and SSE endpoint handling
  • Razor tag helpers for mounting the ChatKit frontend from MVC or Razor views
  • packaged CSS and JavaScript assets under _content/Incursa.OpenAI.ChatKit.AspNetCore/chatkit
  • options for shared UI defaults across a site or application

Install

Use this package together with the core runtime package:

dotnet add package Incursa.OpenAI.ChatKit
dotnet add package Incursa.OpenAI.ChatKit.AspNetCore

What this package is for

  • exposing a ChatKit-compatible endpoint from ASP.NET Core
  • rendering the ChatKit frontend from Razor layouts, pages, or views
  • shipping a repo-managed browser runtime without hand-written page bootstrapping

What this package is not for

  • replacing the core Incursa.OpenAI.ChatKit runtime
  • generating ChatKit UI assets during normal dotnet build
  • forcing a specific MVC or Razor Pages structure on your app

Endpoint mapping

Register your server and map the ChatKit endpoint:

using Incursa.OpenAI.ChatKit;
using Incursa.OpenAI.ChatKit.AspNetCore;

WebApplicationBuilder builder = WebApplication.CreateBuilder(args);
builder.Services.AddSingleton<DemoChatKitServer>();

WebApplication app = builder.Build();
app.MapChatKit<DemoChatKitServer, Dictionary<string, object?>>(
    "/chatkit",
    _ => new Dictionary<string, object?>());

app.Run();

Razor UI wrapper

Register shared UI defaults:

builder.Services.AddIncursaOpenAIChatKitAspNetCore(options =>
{
    options.DefaultHeight = "760px";
    options.StartScreen.Greeting = "How can I help today?";
    options.Theme.ColorScheme = "dark";
});

Then use the tag helpers from a layout or view:

@addTagHelper *, Incursa.OpenAI.ChatKit.AspNetCore

<incursa-chatkit-assets />

<incursa-chatkit
    id="workspace-assistant"
    class="chatkit-page"
    session-endpoint="/api/chatkit/session"
    action-endpoint="/api/chatkit/action">
</incursa-chatkit>

If your application uses the conventional local endpoints, the host tag helper can infer them automatically:

<incursa-chatkit-assets />
<incursa-chatkit />

Hosted API mode

If the frontend should connect directly to a hosted ChatKit API instead of local session and action endpoints:

<incursa-chatkit-assets />
<incursa-chatkit
    api-url="https://example.contoso.com/chatkit"
    domain-key="your-domain-key">
</incursa-chatkit>

Updating packaged UI assets

This package intentionally carries both:

  • editable frontend source in ClientApp/chatkit-runtime
  • generated package assets in wwwroot/chatkit

When @openai/chatkit-react or related npm dependencies need to move forward:

cd src/Incursa.OpenAI.ChatKit.AspNetCore/ClientApp/chatkit-runtime
npm install
npm run build

Commit both the dependency file changes and the regenerated files under wwwroot/chatkit.

  • Incursa.OpenAI.ChatKit: core ChatKit models, routing, stores, and server runtime
Product Compatible and additional computed target framework versions.
.NET 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.

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
3.0.5 113 3/24/2026
3.0.3 84 3/20/2026
3.0.2 88 3/20/2026
3.0.1 87 3/19/2026
3.0.0 95 3/19/2026
2.0.1 87 3/19/2026
2.0.0 85 3/19/2026
1.0.16 87 3/19/2026
1.0.15 93 3/18/2026
1.0.14 81 3/18/2026
1.0.13 86 3/18/2026