IRL Shield covers readable text on street signs, storefronts, house numbers and plates before an IRL stream reaches Twitch. It runs as a relay between the streamer's phone and Twitch. Viewers can vote in chat on how masks look, and moderators can hold the stream on a privacy slate.
Demo video: https://youtu.be/DIRiN-hniaI
3rd place of 501 projects (2,217 participants), Codex x TwitchCon Hackathon, Nov 2026. The judged version is the git tag submission.
No longer maintained. MIT-licensed; forks and reuse welcome.
The image shows a generated scene with fictional names, before (left) and shielded with Patch (right).
- Moblin on the phone sends RTMP over Tailscale to the Linux relay.
- On GPU, the relay holds video in a 1-second processing buffer by default. Total delay to viewers has not been measured.
- PP-OCRv5-mobile detectors find text to mask. They miss some text, mainly small or distant text.
- Masks cover detected text. Frames the detectors have not checked go out protected.
- NVENC encodes the video on GPU (libx264 with
--cpu). A TLS forwarder sends it to Twitch and verifies Twitch's certificate. - In chat, moderators and the broadcaster can put the stream on a privacy slate with
!shield hold, and viewers vote on the mask style with!skin baror!skin patch. A phone dashboard has the same Hold control. See dashboard details and skin controls.
To install and run it, follow docs/RUN.md. It needs Linux x86-64 and Python 3.11, and an NVIDIA GPU is recommended. A local mode runs without Twitch credentials and publishes nothing.
- The detectors miss some text, so a sign can still reach viewers. Use Hold before a known location clue enters the frame.
- It covers text only. Landmarks and other visual location clues stay visible.
- Hold stops further exposure. It cannot take back frames already sent.
- Live Twitch publishing is restricted to the original broadcaster account,
naie. Bandwidth-test mode works with your own Twitch app; see Twitch authorization and controls. - This is an experimental relay, not a production service. The architecture notes and held-out evaluation record what was and was not measured.
Some historical docs use path placeholders such as REPO_ROOT and OWNER_HOME. Replace them with local paths before running a command from them.
One OpenAI Codex thread and its Codex subagents wrote the code during the hackathon. Claude Opus planned and reviewed the work.
The code is under the MIT License. Bundled third-party files keep their own licenses:
- DejaVu fonts in
fixtures/fonts, under the Bitstream Vera license (notice). - Atkinson Hyperlegible Next in
shield/presentation/assets, under the SIL Open Font License 1.1 (notice). - The qrcode library notice in
shield/dashboard/licenses. - Model and dependency notices in
models/licenses. Model files download at setup; models/manifest.json lists their sources, hashes and licenses.
Fixture footage and images are listed with their sources and licenses in fixtures/ATTRIBUTION.md.
