frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Herd – A Go sidecar to stop stateful processes Puppeteer/LLMs from OOM

6•sankalpnarula•3h ago
Hey HN.

I'm an engineering student at Waterloo building stateful AI agents, and I kept hitting the same wall: whenever my Python scripts crashed or dropped a connection, the underlying Puppeteer or Ollama processes would just sit there orphaned, eating RAM until the node OOM-killed itself. Standard load balancers break sticky sessions, and passive HTTP timeouts are too slow for cleanup.

I couldn't find a good local process pool that actually cleaned up dead stateful sessions reliably, so I built Herd in Go.

It uses a persistent stream (gRPC/Unix sockets) strictly as a dead-man's switch. If your client script dies, the stream breaks. Herd registers the EOF and instantly fires a SIGKILL to the worker process (relying on Pdeathsig on Linux). For the actual heavy data, you just blast HTTP traffic through Herd's internal proxy, which routes it directly to the active process port.

My actual goal is to turn this into a multi-node distributed mesh with a Redis registry, where a client can drop off and an edge gateway routes them back to the exact pod holding their stateful memory.

But I know building a distributed mesh on top of a leaky local engine is a death sentence. The single-node cleanup has to be flawless first.

I'd love for you guys to roast the architecture. Specifically: is relying on Pdeathsig actually robust enough for a local dead-man's switch in production, or am I being naive and need to just bite the bullet and wrap everything in cgroups & microvms right now?

Repo link: https://github.com/herd-core/herd

Show HN: DuckDB community extension for prefiltered HNSW using ACORN-1

https://github.com/cigrainger/duckdb-hnsw-acorn
9•cigrainger•45m ago•0 comments

Show HN: I took back Video.js after 16 years and we rewrote it to be 88% smaller

https://videojs.org/blog/videojs-v10-beta-hello-world-again
267•Heff•10h ago•40 comments

Show HN: Email.md – Markdown to responsive, email-safe HTML

https://www.emailmd.dev/
238•dancablam•11h ago•57 comments

Show HN: Gemini can now natively embed video, so I built sub-second video search

https://github.com/ssrajadh/sentrysearch
280•sohamrj•13h ago•77 comments

Show HN: Gridland: make terminal apps that also run in the browser

https://www.gridland.io/
74•rothific•11h ago•11 comments

Show HN: ProofShot – Give AI coding agents eyes to verify the UI they build

https://github.com/AmElmo/proofshot
125•jberthom•20h ago•88 comments

Show HN: I ran a language model on a PS2

https://github.com/xaskasdf/ps2-llm
25•xaskasdf•3d ago•8 comments

Show HN: Antimatter – Match the opposites (Mahjong solitaire mechanic)

https://www.linguabase.org/antimatter/
9•michaeld123•8h ago•4 comments

Show HN: Cq – Stack Overflow for AI coding agents

https://blog.mozilla.ai/cq-stack-overflow-for-agents/
206•peteski22•1d ago•92 comments

Show HN: Herd – A Go sidecar to stop stateful processes Puppeteer/LLMs from OOM

6•sankalpnarula•3h ago•0 comments

Show HN: RemoteDevJobs – AI-curated remote developer positions with scoring

https://remotedvjobs.com
3•remotedvjons•3h ago•0 comments

Show HN: AI Roundtable – Let 200 models debate your question

https://opper.ai/ai-roundtable/
26•felix089•8h ago•28 comments

Show HN: Plasmite – a lightweight IPC system that's fun

https://github.com/sandover/plasmite
2•sandover•4h ago•0 comments

Show HN: Lexplain – AI-powered Linux kernel change explanations

https://lexplain.net
4•daisydevel•5h ago•0 comments

Show HN: RentDataNow – free rent data for 4k US cities and 8k ZIP codes

https://rentdatanow.com/
6•misterinfo•6h ago•1 comments

Show HN: Create a full language server in Go with 3.17 spec support

https://github.com/owenrumney/go-lsp
3•rumno0•6h ago•0 comments

Show HN: A/B test images with your eyes using ARKit face tracking

https://saccadeapp.com/
3•hoag•6h ago•0 comments

Show HN: Skub – a sliding puzzle browser game

https://skub.app
6•kasperstorgaard•9h ago•6 comments

Show HN: The King Wen Permutation: [52, 10, 2]

https://gzw1987-bit.github.io/iching-math/
62•gezhengwen•1d ago•27 comments

Show HN: Updated GiantJSON Viewer – Opening 100GB JSONs on Android (Rust+SIMD)

https://giantjson.com/
3•kotysoft•8h ago•4 comments

Show HN: Wordif.sh – word-by-word text comparison in color, output to HTML/PDF

https://github.com/jazzfan2/wordif
2•robtoscani•8h ago•1 comments

Show HN: Visualizing Apple Health workout data (stats, trends, insights)

https://apps.apple.com/us/app/streakout-workout-stats/id6758457318
5•toni88x•12h ago•0 comments

Show HN: Apfel - Apple Intelligence from the Command Line

https://github.com/Arthur-Ficial/apfel
3•franze•8h ago•1 comments

Show HN: Mapping the most convenient ways to meet someone with public transit

https://www.commutometer.com/meet-in-sanfrancisco
9•acavailhez•13h ago•1 comments

Show HN: I built a party game that makes fun of corporate culture

https://cubiclegame.com/
4•pianobrothers•9h ago•2 comments

Show HN: TopMail – LaunchFest Winner, $20/Mo Unlimited Email, Coding Agents API

https://www.topmail.so
11•njarecki•11h ago•19 comments

Show HN: Revise – An AI Editor for Documents

https://revise.io
83•artursapek•2d ago•75 comments

Show HN: Jelly – SSH Social Hangout

3•jellyshelly•12h ago•5 comments

Show HN: Craton HSM – A memory-safe PKCS#11 software HSM in Rust

https://github.com/craton-co/craton-hsm-core
3•victor-craton•14h ago•3 comments

Show HN: Littlebird – Screenreading is the missing link in AI

https://littlebird.ai/
45•delu•1d ago•23 comments