TwitchSharp 0.1.4
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package TwitchSharp --version 0.1.4
NuGet\Install-Package TwitchSharp -Version 0.1.4
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" Version="0.1.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TwitchSharp" Version="0.1.4" />
<PackageReference Include="TwitchSharp" />
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 --version 0.1.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TwitchSharp, 0.1.4"
#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@0.1.4
#: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&version=0.1.4
#tool nuget:?package=TwitchSharp&version=0.1.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 once I get Nuget resolved.
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
fieldkeyword
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
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on TwitchSharp:
| Package | Downloads |
|---|---|
|
TwitchSharp.Api
Twitch Helix API client with AOT-first design. |
GitHub repositories
This package is not used by any popular GitHub repositories.