r/coolgithubprojects • u/citizenjc • 11h ago
Couchdogs: a Shield / Fire TV replacement that runs in Docker on your home server, and streams it all to every other screen
couchdogs.com
I used my Fire TV for two things: game and media streaming (Plex, YouTube, etc.). It's (very!) slow, locked down, more glitchy every day and full of ads masked as content. It's always been bad, but it has been getting worse...
Then I thought: My home server already sits below my TV with a GPU in it, so I plugged in the HDMI and made it "THE box".
After some iterations that became Couchdogs. I turn on the TV, grab a controller or a Bluetooth TV remote (one of those you can map some IR keys to), and I'm on a home screen with only the apps I want to use: EmulationStation, Steam (Big Picture), Plex, Jellyfin, Spotify, YouTube, and more (in its "store" anyone can contribute to).
It's not a distro like Batocera or Lakka: nothing to flash, no machine to give up. It's a set of containers on the server you already run, next to Plex or Home Assistant or whatever. And it's not only retro: Steam, Plex, Jellyfin, Spotify and YouTube sit next to EmulationStation.

Every phone, laptop and handheld also gets its own "screen" (I have my own client based on Moonlight but you can use pure Moonlight as well to connect to it), and any screen can join another (keep watching the YT video that was playing on another device, move a heavier game running on the server from the TV to the handheld, etc.).

How it works:
- On the TV, apps run under a native Gamescope from their container, straight out the server's HDMI (no encoding); the same sessions are streamed to phones, laptops and handhelds over Moonlight
- The home screen is a web app in Servo (Firefox wanted ~500 MB for a simple page, no thanks)
- I started on top of Wolf, hit its limits (its own UI, sway, session crashes), so I kept its MIT streaming protocol code and inputtino, its virtual controller library, and wrote my own server around them. In the first test Gamescope on the TV used 12% of a core, Wolf used 53%
- Every app is a container with a memory limit, from a signed store (recipes based on an existing set of open-source app images)
- No keyboard needed: a BT TV remote control with a number pad types old-phone style (press 2 twice for B), if you have a mic on that remote you can have Whisper do speech-to-text, and a web UI exists that, among other things, can be used to send text to any screen. On a phone you can use touch controls and the standard Moonlight on-screen keyboard.
- As mentioned, there's a Couchdogs app for Android, Windows, macOS and Linux: it's just Moonlight plus a few patches for a more seamless experience, but stock Moonlight connects just fine too.
- A store repo is available and accepting contributions or requests for new apps you may need.
How it was built: Spec-driven development with multi-agent orchestration. I wrote the specs, those are turned into ADRs, plans, etc, review the code and test everything on my own TV. Every decision was kept in the repo if you want to judge it.
Still early: 0.1.0, only AMD tested, only Linux server possible for now. GPL-3.0. If you have an Intel or NVIDIA GPU, I'd love a test report.
https://github.com/citizenjc/couchdogs
https://github.com/citizenjc/couchdogs-store
https://couchdogs.com/docs
