HubDocs
Swagger for SignalR hubs in ASP.NET Core.
Details
- Role
- Author
- Started
- June 2025
- Language
- C#
- Platform
- Cross-platform
- Licence
- MIT
Overview
REST endpoints in ASP.NET Core get Swagger: a generated, browsable, invokable description of the API. SignalR hubs get nothing. Their methods are as much a public contract as any controller action, but the only way to learn one is to read the hub class.
HubDocs closes that gap. It discovers every SignalR hub in the application automatically and renders them in a Swagger-inspired UI, showing method signatures, parameters and return types — and letting you invoke methods directly from the browser.
The piece that turned out to matter most is live client logging: because SignalR is bidirectional, seeing what the server pushes to clients through strongly-typed interfaces is often the thing you actually need while debugging. It installs as a NuGet package with a few lines of setup.
Highlights
- Automatic discovery of every SignalR hub in an ASP.NET Core app
- Documents method signatures, parameters and return types
- Invoke hub methods directly from the browser
- Live logging of server-to-client messages sent via typed interfaces
- Swagger-inspired dark-theme UI
- Ships as a NuGet package; setup is a few lines
Built with
- .NET 8
- SignalR