Tsonic.Express
1.1.1
dotnet add package Tsonic.Express --version 1.1.1
NuGet\Install-Package Tsonic.Express -Version 1.1.1
<PackageReference Include="Tsonic.Express" Version="1.1.1" />
<PackageVersion Include="Tsonic.Express" Version="1.1.1" />
<PackageReference Include="Tsonic.Express" />
paket add Tsonic.Express --version 1.1.1
#r "nuget: Tsonic.Express, 1.1.1"
#:package Tsonic.Express@1.1.1
#addin nuget:?package=Tsonic.Express&version=1.1.1
#tool nuget:?package=Tsonic.Express&version=1.1.1
express-clr
express-clr is the runtime implementation for Express-style APIs on ASP.NET Core.
It is the source of truth for behavior and parity decisions. The express repo publishes the generated TypeScript package that targets this runtime.
Scope
- Express 5.x-oriented API surface.
- ASP.NET Core primitives for server/request/response internals.
- Pragmatic parity: maximize behavioral compatibility while documenting remaining deviations.
Quick Start
using express;
var app = express.create();
app.get("/", (Request _, Response res) =>
{
res.send("hello");
});
app.listen(3000);
Build
dotnet build src/express/express.csproj -c Release
NativeAOT Validation
express-clr is designed for NativeAOT-first usage on ASP.NET Core primitives.
Validation command:
dotnet publish src/express/express.csproj -c Release -r linux-x64 -p:PublishAot=true -warnaserror
Current runtime avoids DynamicInvoke and reflection-based System.Text.Json serialization/deserialization paths.
Test
dotnet test tests/express.Tests/express.Tests.csproj -c Release
Coverage Gate
npm run test:coverage
The coverage gate enforces line, branch, and method coverage at 100% for the express assembly.
Documentation Map
- Runtime architecture:
docs/architecture.md - Known compatibility deviations:
docs/deviations.md - API test/coverage matrix:
docs/test-matrix.md
Naming Notes
Some HTTP verbs require C#-safe identifiers:
lock_()maps toLOCKm_search()maps toM-SEARCH
For exact-string verbs, use method("...").
License
MIT
| Product | Versions 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. |
-
net10.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.