{"id":25830369,"url":"https://github.com/d6stiny/twitchkit","last_synced_at":"2025-02-28T19:14:36.192Z","repository":{"id":278646057,"uuid":"936294103","full_name":"d6stiny/TwitchKit","owner":"d6stiny","description":"Swift library for connecting to Twitch chat and receiving messages in real-time","archived":false,"fork":false,"pushed_at":"2025-02-20T21:57:49.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-20T22:32:09.429Z","etag":null,"topics":["ios","macos","swift","twitch"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/d6stiny.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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}},"created_at":"2025-02-20T21:06:03.000Z","updated_at":"2025-02-20T21:57:52.000Z","dependencies_parsed_at":"2025-02-20T22:32:12.619Z","dependency_job_id":"73163241-b460-4674-89b2-456c926ddde9","html_url":"https://github.com/d6stiny/TwitchKit","commit_stats":null,"previous_names":["d6stiny/twitchkit"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d6stiny%2FTwitchKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d6stiny%2FTwitchKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d6stiny%2FTwitchKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d6stiny%2FTwitchKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d6stiny","download_url":"https://codeload.github.com/d6stiny/TwitchKit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241209528,"owners_count":19927734,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["ios","macos","swift","twitch"],"created_at":"2025-02-28T19:14:35.343Z","updated_at":"2025-02-28T19:14:36.187Z","avatar_url":"https://github.com/d6stiny.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TwitchKit\n\n**TwitchKit** is a Swift framework designed to seamlessly integrate Twitch chat functionality into your applications. With TwitchKit, you can easily connect to Twitch chat, receive messages in real-time, and enhance interactivity for your users.\n\n## Key Features\n\n- **Simple Configuration**: Get started quickly with straightforward setup.\n- **Real-Time Message Reception**: Listen for messages as they come in.\n- **Twitch-Specific Message Parsing**: Handle badges, emotes, and more with ease.\n- **Event-Based Architecture**: Easily integrate chat functionality into your app's workflow.\n\n## Getting Started\n\nTo begin using TwitchKit in your project, follow these simple steps:\n\n### Installation\n\nAdd TwitchKit as a package dependency in Xcode:\n\n1. From the **File** menu, select **Add Package Dependencies**\n2. Enter the following URL: `https://github.com/d6stiny/TwitchKit.git`\n3. Click **Add Package** to include it in your project.\n\n### Usage\n\nHere's how to connect to Twitch chat and listen for messages:\n\n```swift\nimport TwitchKit\n\nlet twitch = TwitchKit()\n\n// Configure with your Twitch credentials\ntwitch.configure(username: \"your_username\", token: \"oauth:your_oauth_token\", channel: \"channel_to_join\")\n\n// Set up event handlers\ntwitch.onConnect = {\n    print(\"Connected to Twitch chat!\")\n}\n\ntwitch.onMessage = { message in\n    print(\"\\(message.author.displayName): \\(message.content)\")\n}\n\ntwitch.onError = { error in\n    print(\"Error: \\(error.localizedDescription)\")\n}\n\n// Connect to Twitch chat\ntwitch.connect()\n\n// To disconnect when you're done\n// twitch.disconnect()\n\n```\n\nMake sure to replace `\"your_username\"`, `\"oauth:your_oauth_token\"`, and `\"channel_to_join\"` with your actual Twitch credentials and the channel you want to join.\n\n## License\n\nTwitchKit is released under the MIT License. See [LICENSE](LICENSE) for details.\n\n---\n\nWith TwitchKit, you can create engaging experiences by bringing Twitch chat directly into your applications. Enjoy building!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd6stiny%2Ftwitchkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd6stiny%2Ftwitchkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd6stiny%2Ftwitchkit/lists"}