TwitchSharp.EventSub 0.1.5

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

TwitchSharp

A .NET 10 library for the Twitch Helix API and EventSub WebSocket, designed for Native AOT from the ground up.

NOTE: Pleae be advised that this is an alpha release. Release 0.2.0 will have the full documentation.

Features

  • Full Helix API coverage -- 30 endpoint categories with typed request/response models
  • EventSub WebSocket client -- real-time events with automatic reconnection and keepalive monitoring
  • Native AOT compatible -- trimming-safe with source-generated JSON serialization (zero reflection)
  • Built-in resilience -- automatic retries with exponential backoff, rate limiting, and token management
  • Dependency injection ready -- first-class integration with Microsoft.Extensions.Hosting
  • Modern C# 14 -- sealed records, file-scoped namespaces, collection expressions, and field keyword

Packages

Package Description
TwitchSharp Core primitives, exceptions, and pagination helpers
TwitchSharp.Api Helix API client with authentication and rate limiting
TwitchSharp.EventSub EventSub WebSocket client for real-time events
TwitchSharp.Hosting Dependency injection and hosted service integration
TwitchSharp.Extensions.Authentication Interactive OAuth PKCE flow for desktop/CLI apps

Quick Start

Standalone usage

await using var client = TwitchApiClient.Create(new TwitchApiClientOptions
{
    ClientId = "your_client_id",
    ClientSecret = "your_client_secret"
});

var users = await client.Users.GetUsersAsync(logins: ["twitchdev"]);

With dependency injection

var builder = Host.CreateApplicationBuilder(args);

builder.AddTwitchApi();
builder.AddTwitchEventSub();

var app = builder.Build();
app.Run();

Configure via appsettings.json:

{
  "Twitch": {
    "ClientId": "your_client_id",
    "ClientSecret": "your_client_secret"
  }
}

Contributing

See CONTRIBUTING.md for development setup and coding guidelines.

License

MIT

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on TwitchSharp.EventSub:

Package Downloads
TwitchSharp.Hosting

Dependency injection and hosting integration for TwitchSharp.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.5 86 3/5/2026
0.1.4 86 3/5/2026
0.1.3 85 3/5/2026
0.1.2 101 2/19/2026
0.1.0 102 2/17/2026