frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: I MitM'd Plex to make remote streaming suck less

https://github.com/inhumantsar/plex-proxy/
2•inhumantsar•2h ago
I've been hoarding media for a long time. Longer than I care to think about honestly. At this point the collection is large enough that several of the friends and family members I've shared my Plex server with have cancelled their streaming service subscriptions.

After getting laid off a while back, I started working on a degree online. It seemed like a good opportunity to spend some time traveling too, so I signed up for Starlink and got a friend to host my Plex server in his basement for the duration. Surely that would be good enough to watch whatever from where-ever.

Turns out that no, it's not. Plex really doesn't like streaming over Starlink. It would top out at 8-9mbps in good conditions, often dropping down to 2 or 3, while other streams and downloads would happily hum along at 100mbps+.

I spent a little time looking into the issue early on. None of the remote or server network changes I could think of made a noticable difference. Customizing Plex's internal MPV configuration to increase the chunk size and buffer limit helped a bit, but it was still too slow to watch anything in realtime.

My best guess was that the problem largely boiled down to a combination of Starlink's fairly frequent latency spikes and Plex's short timeouts. With things at school winding down, I decided to finally put that to the test by building some kind of caching proxy.

Initially the plan was to MITM the client/server connections so it could serve everything out of a cache and set it up to proactively cache things in the background. Once the client and server were talking reliably through the proxy, I realised those features wouldn't really be necessary. All it needed was a bit of parallelism and patience.

With my particular setup, 5 workers can reliably pull down segments at ~35-40mbps, adding another 5 pushes that up to about 60mbps. Either is more than enough to stream anything 1080p in realtime and 60mbps can handle almost anything 4K HDR. Ended up building the prefetching features despite that, because at that point why not?

Fast-forward a few days and I'm willing to call this a Good Enough first version. There are plenty of significant limitations and rough edges. It's almost entirely vibecoded and far from my best work ever. There's enough spaghetti under the hood that I have to actively avoid thinking about it. It works well enough that I don't have to start buffering a TV show 2 hours before I plan to watch it though, and that's what matters.

This is a niche tool for a niche problem. I don't really expect this to be of much use to anyone. It was a fun project though and a satisfying solution to an irritating problem, so thought I'd share it anyway.

Comments

toomuchtodo•2h ago
https://arxiv.org/html/2409.09846v1
inhumantsar•1h ago
looks like an interesting paper and the abstract seems to confirm my theory about latency spikes and packet loss. i'll have to give it a thorough read tonight. thanks!

Show HN: Sx 2.0 – Share AI skills with your team through a Dropbox folder

https://sleuth-io.github.io/sx/2026/07/10/your-dropbox-is-now-a-skill-server.html
19•detkin•3h ago•20 comments

Show HN: YouTube Guitar Tab Parser

https://github.com/marcelpanse/youtube-guitar-tab-parser
81•neogenix•6h ago•52 comments

Show HN: Hackney – Compare Uber, Lyft, Waymo, and Robotaxi Prices

https://hackney.app/
29•griffinli•12h ago•21 comments

Show HN: Jacquard, a programming language for AI-written, human-reviewed code

https://github.com/jbwinters/jacquard-lang
57•jbwinters•11h ago•27 comments

Show HN: I implemented a neural network in SQL

https://github.com/xqlsystems/xarray-sql/blob/claude/xarray-sql-mnist-demo/benchmarks/nn.py
65•alxmrs•7h ago•13 comments

Show HN: MemStitch – Zero-copy context bridging for vLLM (25x TTFT speedup)

https://github.com/DaqulaLin/MemStitch
6•daqulalin•2h ago•1 comments

Show HN: BillAI Bass, an AI-Powered Big Mouth Billy Bass Using Strands Agents

https://github.com/morganwilliscloud/billai-bass
61•mtw14•8h ago•27 comments

Show HN: DOM-docx – HTML to native, editable Word docs (MIT)

https://github.com/floodtide/dom-docx
139•fishbone•15h ago•32 comments

Show HN: Zenveil-Security scanning for AI-generated code

https://zenveil.dev
2•Rachel28•1h ago•0 comments

Show HN: Sigwire – a live TUI switchboard for every signal on your Linux box

https://github.com/yeet-src/sigwire
28•zasc•7h ago•11 comments

Show HN: ContextVault – Shared memory layer for your AI and your team

https://www.contextvault.dev/
8•Repeater22746•3h ago•2 comments

Show HN: OpenClawMachines – Extending OpenClaw to the Enterprise

https://github.com/mathaix/OpenClawMachines
26•mathaix•9h ago•26 comments

Show HN: Melodusk – AI Music Generator and music tools in the browser

https://melodusk.ai
2•akseli_ukkonen•1h ago•0 comments

Show HN: Microphone – Talk out your side-project ideas, then test them with ads

https://www.trie.dev/
4•Kriptering•2h ago•6 comments

Show HN: Clawk – Give coding agents a disposable Linux VM, not your laptop

https://github.com/clawkwork/clawk
176•celrenheit•13h ago•140 comments

Show HN: Free and open source browser extension for web automation

https://waffy.io
2•aravind-manoj•1h ago•0 comments

Show HN: I built a one-prompt hackathon platform, free entry, sponsored prizes

https://1shotchallenge.ai
9•lucasmartinic•4h ago•5 comments

Show HN: Taetype – a complete font engine for Rust and WASM

https://github.com/silly-tae/taetype
3•silly-tae•3h ago•1 comments

Show HN: I MitM'd Plex to make remote streaming suck less

https://github.com/inhumantsar/plex-proxy/
2•inhumantsar•2h ago•2 comments

Show HN: Made a Free LLM Router

https://www.flexinference.com
2•Aperswal•2h ago•0 comments

Show HN: The New Cyborgs Don't Have Implants

https://www.bulaev.net/p/the-new-cyborgs-dont-have-implants
4•sbulaev•3h ago•1 comments

Show HN: FixBugs – Reproduce production bugs and verify fixes

https://fixbugs.ai
15•kirtivr•3h ago•12 comments

Show HN: Context Warp Drive – deterministic, zero-LLM context compaction

https://github.com/dogtorjonah/context-warp-drive
2•Dr_Jonah•3h ago•0 comments

Show HN: Free API of 248M aggregated VEX statements: 45% of CVEs not affected

https://getreel.dev/vex
2•simoneree•4h ago•0 comments

Show HN: GLM-5.2 is now available via Canopy Wave

https://twitter.com/CanopyWave_AI/status/2076667973616779441
2•Rossmax•1h ago•0 comments

Show HN: Rekody, free on-device voice dictation for macOS

https://rekody.com/
3•Tonykip•7h ago•3 comments

Show HN: Nihonpost – I parsed Japan Post's KEN_ALL.CSV so you don't have to

https://github.com/Thiya11/nihonpost
4•kitsunechaos•4h ago•0 comments

Show HN: Sql4json – Query JSON with SQL, no database

https://github.com/mnesimiyilmaz/sql4json
3•mnesimiyilmaz•7h ago•0 comments

Show HN: A reproducible harness for catching agent-eval cheating

https://github.com/sebuzdugan/agent-eval-harness
2•sebuzdugan•4h ago•0 comments

Show HN: Raftig – Plant Breeding X Naval Combat Roguelike

https://raftig.seldoncortex.com/
3•EstanislaoStan•5h ago•0 comments