SsrCore 1.0.0
dotnet add package SsrCore --version 1.0.0
NuGet\Install-Package SsrCore -Version 1.0.0
<PackageReference Include="SsrCore" Version="1.0.0" />
<PackageVersion Include="SsrCore" Version="1.0.0" />
<PackageReference Include="SsrCore" />
paket add SsrCore --version 1.0.0
#r "nuget: SsrCore, 1.0.0"
#:package SsrCore@1.0.0
#addin nuget:?package=SsrCore&version=1.0.0
#tool nuget:?package=SsrCore&version=1.0.0
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
ReadableStreampiping directly to the ASP.NET CoreResponse.Body. - Web Standards: Native support for standard
RequestandResponseobjects, 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 | 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 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. |
-
net8.0
- Microsoft.JavaScript.LibNode (>= 20.1800.215)
- Microsoft.JavaScript.NodeApi (>= 0.9.18)
- Microsoft.JavaScript.NodeApi.DotNetHost (>= 0.9.18)
- Microsoft.JavaScript.NodeApi.Generator (>= 0.9.18)
- Yarp.ReverseProxy (>= 2.3.0)
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 |