SsrCore 1.0.0

dotnet add package SsrCore --version 1.0.0
                    
NuGet\Install-Package SsrCore -Version 1.0.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="SsrCore" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SsrCore" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="SsrCore" />
                    
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 SsrCore --version 1.0.0
                    
#r "nuget: SsrCore, 1.0.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 SsrCore@1.0.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=SsrCore&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=SsrCore&version=1.0.0
                    
Install as a Cake Tool

SsrCore

High-performance Server-Side Rendering (SSR) library for ASP.NET Core and Node.js.

SsrCore bridges the gap between ASP.NET Core and Node.js, allowing you to run your JavaScript frontend (React, Vue, Svelte, etc.) within your .NET application while leveraging full streaming capabilities. It is designed to work with any Vite SSR bundle.

Features

  • Streaming First: Built from the ground up for streaming. Supports standard Web API ReadableStream piping directly to the ASP.NET Core Response.Body.
  • Web Standards: Native support for standard Request and Response objects, making it compatible with modern frameworks and edge-ready logic.
  • Service Injection: Expose .NET services directly to your JavaScript SSR environment. Call backend services during rendering without HTTP overhead, with full type safety.
  • Vite Compatible: Designed to work seamlessly with any Vite SSR bundle. Simply point SsrCore to your server entry point.
  • HMR Support: During development SsrCore integrates with vite dev server, enabling features like Hot Module Replacement (HMR) and on-demand compilation of server-side code.
  • High Performance: Optimized interop using shared memory and pinned buffers to minimize overhead between .NET and Node.js.
  • Framework Agnostic: Works with any JavaScript framework (React, Vue, Svelte, Solid, etc.) that can run on Node.js and adheres to standard request/response patterns.

Quick Start

1. Configure Services

In your ASP.NET Core Program.cs:

using SsrCore;

var builder = WebApplication.CreateBuilder(args);

builder.AddSsrCore(options =>
{
    // Choose your rendering mode
    options.RenderMode = RenderMode.WebReadableStream;
});

2. Configure Middleware

Add the middleware to your pipeline:

var app = builder.Build();

// ... other middleware

app.UseSsrCore(); // Serves static files from /client AND handles SSR routes

app.Run();

Documentation

For detailed instructions and API reference, please visit the Documentation.

License

This project is licensed under the MIT License. See the LICENSE file for details.

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 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
1.0.0 0 1/17/2026