{"id":36798934,"url":"https://github.com/dnsge/twitch-mobile-emotes","last_synced_at":"2026-01-12T13:32:34.515Z","repository":{"id":57656941,"uuid":"319505390","full_name":"dnsge/twitch-mobile-emotes","owner":"dnsge","description":"HTTP MITM to bring 3rd party Twitch emotes to mobile","archived":false,"fork":false,"pushed_at":"2022-07-17T17:01:44.000Z","size":457,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T07:56:09.985Z","etag":null,"topics":["7tv","bttv","ffz","go","twitch","twitch-chat"],"latest_commit_sha":null,"homepage":"","language":"Go","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/dnsge.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}},"created_at":"2020-12-08T02:41:58.000Z","updated_at":"2024-05-11T10:16:39.000Z","dependencies_parsed_at":"2022-08-25T15:20:47.489Z","dependency_job_id":null,"html_url":"https://github.com/dnsge/twitch-mobile-emotes","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/dnsge/twitch-mobile-emotes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnsge%2Ftwitch-mobile-emotes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnsge%2Ftwitch-mobile-emotes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnsge%2Ftwitch-mobile-emotes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnsge%2Ftwitch-mobile-emotes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnsge","download_url":"https://codeload.github.com/dnsge/twitch-mobile-emotes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnsge%2Ftwitch-mobile-emotes/sbom","scorecard":{"id":348816,"data":{"date":"2025-08-11","repo":{"name":"github.com/dnsge/twitch-mobile-emotes","commit":"ad758ae088208661fbff09bc58c466ef84124f90"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/docker-publish.yml:1","Warn: no topLevel permission defined: .github/workflows/go.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":1,"reason":"dependency not pinned by hash detected -- score normalized to 1","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docker-publish.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/dnsge/twitch-mobile-emotes/docker-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/dnsge/twitch-mobile-emotes/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/dnsge/twitch-mobile-emotes/go.yml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:2","Warn: containerImage not pinned by hash: Dockerfile:14: pin your Docker image by updating alpine to alpine@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1","Warn: downloadThenRun not pinned by hash: .github/workflows/go.yml:28","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 goCommand dependencies pinned","Info:   0 out of   1 downloadThenRun dependencies pinned","Info:   0 out of   2 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-q7pp-wcgr-pffx","Warn: Project is vulnerable to: GO-2023-1572 / GHSA-qgc7-mgm3-q253","Warn: Project is vulnerable to: GO-2023-1990 / GHSA-j3p8-6mrq-6g7h","Warn: Project is vulnerable to: GO-2023-1989 / GHSA-x92r-3vfx-4cv3","Warn: Project is vulnerable to: GO-2024-2937 / GHSA-9phm-fm57-rhg8"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T07:48:23.020Z","repository_id":57656941,"created_at":"2025-08-18T07:48:23.020Z","updated_at":"2025-08-18T07:48:23.020Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28339166,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["7tv","bttv","ffz","go","twitch","twitch-chat"],"created_at":"2026-01-12T13:32:29.526Z","updated_at":"2026-01-12T13:32:34.447Z","avatar_url":"https://github.com/dnsge.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# twitch-mobile-emotes\n\nAn HTTP server that intercepts and modifies Twitch's IRC-over-WebSockets chat and its emoticon CDN to introduce\nBetterTTV, FrankerFaceZ, and SevenTV custom emotes to native chats, specifically on mobile.\n\n![GIF of different emotes](.github/mobile_emotes.gif)\n\nYou must run this program behind some reverse proxy that can apply SSL certificates for the\ndomains `static-cdn.jtvnw.net` and `irc-ws.chat.twitch.tv`. I choose to use a self-signed certificate that is trusted on\nmy devices. See the `nginx` folder for an example.\n\nBy using a tool like PiHole (which is just dnsmasq with a GUI), you can create custom A/CNAME records that will point \nboth `static-cdn.jtvnw.net` and `irc-ws.chat.twitch.tv` to the IP of the emote server on your local network or behind \na VPN.\n\n## How it works\n\nThis program intercepts every chat message between you and Twitch and checks the text for a custom emote. If a custom\nemote is found, it modifies the message's `@emotes` tag to include the custom emote with a unique ID.\n\nFor instance, say the server detects the FrankerFaceZ `OMEGALUL` emote with ID `128054` at index `0-7`.`\n\nThe server modifies the emotes tag to include an emote that starts with the letter `f` (or the letter `b` in the case of\nBTTV emotes), as such:\n\n`... @emotes=f128054:0-7 ... :OMEGALUL`\n\nNormally, the mobile app makes a request in the form of\n\n`https://static-cdn.jtvnw.net/emoticons/v1/\u003cemote id\u003e/\u003csize\u003e`\n\nto load the image.\n\nHowever, when the unknowing client makes a request to\n\n`https://static-cdn.jtvnw.net/emoticons/v1/f128054/4.0`\n\nnginx detects the custom emote from the first character of the ID and forwards the request to the emote server, which then returns\na `302 Found` code to the emote image.\n\nReal Twitch emotes that start with a digit instead of a `f` or `b` are passed on to the real `static-cdn.jtvnw.net` by\nnginx.\n\nWith Twitch's v2 emote CDN, the process is identical but with slightly different URLs. Requests with emote IDs that don't start with `emotesv2` are forwarded to the emote server. Additionally, GIF support allows for GIF 3rd party emotes.\n\n## Building\n\nBuild from source\n\n```bash\n$ go build ./cmd/emote-server\n```\n\n...or use the [docker container](https://github.com/dnsge/twitch-mobile-emotes/packages/531933):\n\n```bash\n$ docker pull ghcr.io/dnsge/twitch-mobile-emotes/twitch-mobile-emotes:latest\n```\n\n## Usage\n\n```\nUsage of emote-server:\n  -address string\n        Bind address (default \"0.0.0.0:8080\")\n  -cache string\n        Path to cache files (leave empty to disable)\n  -emoticon-host string\n        Host header to expect from Emoticon requests (default \"static-cdn.jtvnw.net\")\n  -ideal-gifs string\n        Path to ideal gif frames file (leave empty to disable, only works with file cache)\n  -no-gifs\n        Disable showing gif emotes\n  -purge\n        Purge cache on startup\n  -ws-host string\n        Host header to expect from Websocket IRC requests (default \"irc-ws.chat.twitch.tv\")\n```\n\n`emote-server` checks `Host` headers to determine which handler HTTP requests should be sent to (either emote CDN or IRC\nWS).\n\nUse the `--emoticon-host` and `--ws-host` flags to tell the server what to expect.\n\nIf you want to disable gif emotes, pass the `--no-gifs` flag.\n\n### ideal-gifs\n\n**NOTE: This feature is no longer needed as Twitch has updated its mobile app to natively support GIF emotes**\n\nBy default, Twitch displays the first frame of a GIF emote, which sometimes is empty/incomplete. The ideal-gifs file\nallows for the specification of which frame to use for a GIF emote.\n\n_Note: frames are indexed starting at 0._\n\nFile format:\n\n```text\n# Comment\n\u003cletter code\u003e:\u003cid\u003e:\u003cframe index\u003e\n\n\u003cletter code\u003e:\u003cid\u003e:\u003cframe index\u003e # End of line comment\n```\n\nFor example,\n\n```text\nb:5fa179c2710f8302f0c9e09e:5 # monkaX Christmas Emote\n```\n\nwill render the `monkaX` BTTV GIF emote (christmas version) on the 5th frame.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnsge%2Ftwitch-mobile-emotes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnsge%2Ftwitch-mobile-emotes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnsge%2Ftwitch-mobile-emotes/lists"}