{"id":45090745,"url":"https://github.com/mewyk/twitchsharp","last_synced_at":"2026-02-23T21:01:05.109Z","repository":{"id":339289256,"uuid":"1159903321","full_name":"Mewyk/TwitchSharp","owner":"Mewyk","description":"A modern C# .NET 10 library for the Twitch Helix API and EventSub WebSocket, designed for Native AOT.","archived":false,"fork":false,"pushed_at":"2026-02-19T15:43:04.000Z","size":633,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-19T18:46:14.767Z","etag":null,"topics":["aot-compatible","csharp","dotnet","helix-api","native-aot","twitch","twitch-api"],"latest_commit_sha":null,"homepage":"https://github.com/Mewyk/TwitchSharp","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mewyk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-17T09:59:12.000Z","updated_at":"2026-02-19T15:56:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"3025b664-3e85-4207-8717-f170ff5fd38c","html_url":"https://github.com/Mewyk/TwitchSharp","commit_stats":null,"previous_names":["mewyk/twitchsharp"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Mewyk/TwitchSharp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mewyk%2FTwitchSharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mewyk%2FTwitchSharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mewyk%2FTwitchSharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mewyk%2FTwitchSharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mewyk","download_url":"https://codeload.github.com/Mewyk/TwitchSharp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mewyk%2FTwitchSharp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29659752,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T16:33:43.953Z","status":"ssl_error","status_checked_at":"2026-02-20T16:33:43.598Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aot-compatible","csharp","dotnet","helix-api","native-aot","twitch","twitch-api"],"created_at":"2026-02-19T17:02:57.414Z","updated_at":"2026-02-20T18:01:00.258Z","avatar_url":"https://github.com/Mewyk.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TwitchSharp\n\nA .NET 10 library for the Twitch Helix API and EventSub WebSocket, designed for Native AOT from the ground up.\n\nWARNING: I am currently handling getting the root namespace released back into the pool, so currently all package except the root namespace is on Nuget. Also, pleae be advised that this is an *alpha* release. Release 0.2.0 will have the full documentation once I get Nuget resolved.\n\n## Features\n\n- **Full Helix API coverage** -- 30 endpoint categories with typed request/response models\n- **EventSub WebSocket client** -- real-time events with automatic reconnection and keepalive monitoring\n- **Native AOT compatible** -- trimming-safe with source-generated JSON serialization (zero reflection)\n- **Built-in resilience** -- automatic retries with exponential backoff, rate limiting, and token management\n- **Dependency injection ready** -- first-class integration with `Microsoft.Extensions.Hosting`\n- **Modern C# 14** -- sealed records, file-scoped namespaces, collection expressions, and `field` keyword\n\n## Packages\n\n| Package | Description |\n|---------|-------------|\n| `TwitchSharp` | Core primitives, exceptions, and pagination helpers |\n| `TwitchSharp.Api` | Helix API client with authentication and rate limiting |\n| `TwitchSharp.EventSub` | EventSub WebSocket client for real-time events |\n| `TwitchSharp.Hosting` | Dependency injection and hosted service integration |\n| `TwitchSharp.Extensions.Authentication` | Interactive OAuth PKCE flow for desktop/CLI apps |\n\n## Quick Start\n\n### Standalone usage\n\n```csharp\nawait using var client = TwitchApiClient.Create(new TwitchApiClientOptions\n{\n    ClientId = \"your_client_id\",\n    ClientSecret = \"your_client_secret\"\n});\n\nvar users = await client.Users.GetUsersAsync(logins: [\"twitchdev\"]);\n```\n\n### With dependency injection\n\n```csharp\nvar builder = Host.CreateApplicationBuilder(args);\n\nbuilder.AddTwitchApi();\nbuilder.AddTwitchEventSub();\n\nvar app = builder.Build();\napp.Run();\n```\n\nConfigure via `appsettings.json`:\n\n```json\n{\n  \"Twitch\": {\n    \"ClientId\": \"your_client_id\",\n    \"ClientSecret\": \"your_client_secret\"\n  }\n}\n```\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for development setup and coding guidelines.\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmewyk%2Ftwitchsharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmewyk%2Ftwitchsharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmewyk%2Ftwitchsharp/lists"}