Tombatron.Turbo.SourceGenerator
1.0.0
dotnet add package Tombatron.Turbo.SourceGenerator --version 1.0.0
NuGet\Install-Package Tombatron.Turbo.SourceGenerator -Version 1.0.0
<PackageReference Include="Tombatron.Turbo.SourceGenerator" Version="1.0.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="Tombatron.Turbo.SourceGenerator" Version="1.0.0" />
<PackageReference Include="Tombatron.Turbo.SourceGenerator"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add Tombatron.Turbo.SourceGenerator --version 1.0.0
#r "nuget: Tombatron.Turbo.SourceGenerator, 1.0.0"
#:package Tombatron.Turbo.SourceGenerator@1.0.0
#addin nuget:?package=Tombatron.Turbo.SourceGenerator&version=1.0.0
#tool nuget:?package=Tombatron.Turbo.SourceGenerator&version=1.0.0
Tombatron.Turbo
Hotwire Turbo for ASP.NET Core with SignalR-powered real-time streams.
Features
- Turbo Frames — Partial page updates with automatic
Turbo-Frameheader detection - Turbo Streams — Real-time updates via SignalR with targeted and broadcast support
- Stimulus — Convention-based controller discovery with import maps and hot reload
- Source Generator — Compile-time strongly-typed partial references
- Form Validation — HTTP 422 support for inline validation errors within Turbo Frames
- Minimal API Support — Return partials from Minimal API endpoints with
TurboResults - Import Maps — Pin JavaScript modules with
<turbo-scripts mode="Importmap" /> - Zero Configuration — Works out of the box with Turbo.js
Quick Start
dotnet add package Tombatron.Turbo
// Program.cs
builder.Services.AddTurbo();
app.UseTurbo();
app.MapTurboHub();
@* _ViewImports.cshtml *@
@addTagHelper *, Tombatron.Turbo
<turbo-scripts mode="Importmap" />
Then wrap a section in a Turbo Frame:
<turbo-frame id="cart" src="/cart" loading="lazy">
Loading...
</turbo-frame>
For the full walkthrough, see the Getting Started guide.
Sample Applications
Tombatron.Turbo.Sample — Turbo Frames, Turbo Streams, shopping cart, and form validation demo.
cd samples/Tombatron.Turbo.Sample
dotnet run
Requirements
- .NET 10.0 or later
- ASP.NET Core
- Turbo.js 8.x (included via tag helper)
- SignalR (for Turbo Streams)
Publishing / Releases
Both the NuGet and npm packages are published automatically when a version tag is pushed:
git tag v1.2.3
git push origin v1.2.3
This triggers the Release workflow which publishes Tombatron.Turbo to NuGet and @tombatron/turbo-signalr to npm.
License
MIT License - see LICENSE for details.
Learn more about Target Frameworks and .NET Standard.
This package has 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 |
|---|---|---|
| 1.0.0 | 83 | 3/7/2026 |
| 1.0.0-alpha.11 | 36 | 3/5/2026 |
| 1.0.0-alpha.10 | 43 | 2/25/2026 |
| 1.0.0-alpha.9 | 36 | 2/24/2026 |
| 1.0.0-alpha.8 | 48 | 2/22/2026 |
| 1.0.0-alpha.7 | 44 | 2/22/2026 |
| 1.0.0-alpha.6 | 45 | 2/21/2026 |
| 1.0.0-alpha.5 | 44 | 2/18/2026 |
| 1.0.0-alpha.4 | 38 | 2/17/2026 |
| 1.0.0-alpha.3 | 46 | 2/15/2026 |
| 1.0.0-alpha.2 | 43 | 2/15/2026 |
| 1.0.0-alpha.1 | 43 | 2/15/2026 |