frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Cygnus – A fast, lightweight self-hostable serverless runtime and PaaS

https://cygnus.run
3•ccheshirecat•2h ago
I built Cygnus because of a long standing frustration with the compromises needed to be made when choosing a deployment option for web applications.

The ecosystem is fragmented into a few distinct camps, each sacrificing user experience or runtime compatibility to balance isolation, startup latency, and their own profit margins.

Docker: Heavier and slower because it has to supervise more than web apps. Paying overhead you don't need. MicroVM's: Good isolation, but huge maintenance surface area and substantial overhead. Great for untrusted code, overkill for your own apps. Workerd: Tries to dance around hardware isolation by enforcing an in-process V8 isolate model. Neutered runtime to prevent arbitrary syscall execution. Personally I still find the tradeoff worthwhile for their edge footprint, but I still find myself complaining about it from time to time. Vercel/Managed serverless: Delivers a great developer experience, uses microVM's which is good for compatibility but has a business model that eventually hands you a six-figure bill with a straight face ($0.15/GB bandwidth when budget providers charge cents per TB) and makes you sacrifice statefulness.

These constraints make sense for hyperscalers or enterprises, but I don't have those kinds of needs.

I just wanted something as light and fast as workerd(not exactly but closest i guess), but more rigid than just running them as bare userspace processes. Containers are just standard Linux processes wrapped in namespaces, cgroups, seccomp, and netns. You can do the same with systemd. And with Bun mature enough for production, combining an all-in-one JavaScript runtime directly with native Linux kernel primitives becomes a no-brainer.

So I combined them into Cygnus, a single Rust daemon that turns raw kernel primitives and Bun into a self-hosted, scale-to-zero application platform.

[ CLIENT: HTTP/1.1 · HTTP/2 · HTTP/3 (QUIC) ] | v [ Cygnus Daemon ] ├─ TLS termination (rustls) + ACME manager ├─ H1/H2/H3 front, normalized to H1 upstream ├─ Routing: SNI/Host → ArcSwap<HashMap> ├─ io_uring proxy loop (splice UDS↔TCP) ├─ Cage supervisor (spawn, health, drain, reap, crash backoff) └─ Admin API (root-only UDS) + Tenant-0 bridge (typed commands) | | HTTP/1.1 over per-app UDS (pooled, keep-alive) v ========== CAGE — per app, warm, reused ========== userns · mntns · pidns · ipcns · utsns · netns cgroup v2 (mem/cpu/pids) · seccomp allowlist

  bun (text shared via page cache, per version)  
   ├─ preload shim: listen()/Bun.serve → UDS      
   └─ artifact: bundle.js + bundle.jsc (RO mount) 
                                                  
  egress: veth ─ nftables policy ─ host NAT       
  DNS: host-side forwarder at gateway IP          
What you get:

- ~50ms cold starts with 0 guest kernel overhead - Page-cache shared runtime(low resource usage) - 100% native compatibility(it's literally running bun) - Zero-config setup(injects a listener shim to serve the app, no manual changes needed) - Dogfooded control plane with a great UX and dashboard running as tenant 0

Cygnus uses cages, a shared-kernel process isolation model. The way it currently is, it's designed for trusted code(your apps or apps you trust). It provides defense-in-depth against buggy code, supply-chain attacks, and SSRF. However, it is not designed for untrusted, anonymous multi-tenancy (yet).

I'd love to hear your thoughts on the architecture, kernel primitive choices, and seccomp filtering strategy!

Trying it out is a 1 liner, it works on macOS too but without any of the Linux isolation benefits, for testing it out or running locally.

curl -fsSL https://cygnus.run/install.sh | bash

Github repo has a demo gif if you want to see what it looks like!

https://cygnus.run https://github.com/0xchasercat/cygnus

Show HN: I simulated closing the Strait of Hormuz on real oil trade data

https://globaloilnetwork.staffinganalytics.io/
224•eliotho•2d ago•104 comments

Show HN: Jargo, a Go port of Pipecat for building realtime voice agents

https://github.com/gojargo/jargo
2•fallais•1h ago•0 comments

Show HN: Cygnus – A fast, lightweight self-hostable serverless runtime and PaaS

https://cygnus.run
3•ccheshirecat•2h ago•0 comments

Show HN: Echo – Fable-level results at 1/3 the cost using open-weight models

461•adam_rida•1d ago•218 comments

Show HN: Max Studio Tools – C++ DSP Modules for Max and Ableton Live

https://github.com/apresta/max-studio-tools
32•apresta•17h ago•0 comments

Show HN: Palmier Pro – Open-source macOS video editor built for AI

https://github.com/palmier-io/palmier-pro
187•harrisontin•1d ago•35 comments

Show HN: How well do you use Claude Code?

15•Paarthmj•15h ago•13 comments

Show HN: Nostalgia – A shareable Windows 98 desktop builder

https://nostalgia-stilloo.zocomputer.io/
2•tsachin•5h ago•1 comments

Show HN: Lucen a Python compiler that parallelizes for-loops via comment pragmas

https://github.com/fcmv/lucen
9•soumik15630m•3d ago•5 comments

Show HN: OneCLI – OSS credential gateway that keeps secrets out of AI agents

https://github.com/onecli/onecli
103•Jonathanfishner•1d ago•31 comments

Show HN: Claude-thermos keeps your Claude session warm for you

https://github.com/izeigerman/claude-thermos
109•s0ck_r4w•1d ago•84 comments

Show HN: Open-weight OCR got so cheap I had to share it

https://www.openparser.dev/cheapest-ocr
11•TimurKramar•18h ago•5 comments

Show HN: Remux – an open-source tmux workspace designed for iPhone

https://github.com/h3nock/remux
99•bitwise42•2d ago•35 comments

Show HN: Bento - An entire PowerPoint in one HTML file (edit+view+data+collab)

https://bento.page/slides/
1013•starfallg•2d ago•236 comments

Show HN: AI Anime Finder – Natural language semantic search for AniList

https://zlvox.com/tools/anime-finder
3•mrdisloyal•8h ago•2 comments

Show HN: Rivers – a Rust/Python orchestrator with native OIDC and forward auth

https://github.com/ion-elgreco/rivers
3•ion-elgreco•9h ago•0 comments

Show HN: Trifle – Open-source analytics that stores answers, not events

https://trifle.io/
49•iluzone•3d ago•16 comments

Show HN: Jixp, a Lisp DSL for describing Jax neural nets

https://github.com/baileywickham/jixp
6•baileywickham•22h ago•0 comments

Show HN: Whetuu – a zero-config cross-shell prompt written in Zig

https://yamafaktory.github.io/whetuu/
49•yamafaktory•2d ago•38 comments

Show HN: Audio Player with "Binaural Beats" tuned to the same key as your music

https://github.com/henrygabriels/binaural-studio
19•gabriel666smith•1d ago•5 comments

Show HN: WhipDesk – Control your full dev machine from your phone

https://github.com/BinaryBananaLLC/WhipDesk
3•FreeGuessr•12h ago•0 comments

Show HN: Mboxreader – easily view your Gmail Takeouts

https://mboxreader.com
6•scottilee•17h ago•0 comments

Show HN: Uploads.sh – the missing upload command for coding agents (open-source)

https://uploads.sh/
10•zachdunn•1d ago•0 comments

Show HN: A factory simulator game built on Spreadsheets

https://www.logisheets.com/?craft=factory-simulator
18•JeremyHe•1d ago•4 comments

Show HN: Cactus Hybrid: We taught Gemma 4 to know when it's wrong

https://github.com/cactus-compute/cactus-hybrid
185•HenryNdubuaku•2d ago•44 comments

Show HN: DeepSQL – A self-hostable DBA agent for Postgres and MySQL

https://deepsql.ai/
52•venkat971•4d ago•33 comments

Show HN: HN Hall of Fame – browse 3,100 legendary Hacker News links

https://www.orangecrumbs.com/hall/
216•oyster143•2d ago•38 comments

Show HN: macOS menu-bar manager for SSH port forwards

https://github.com/lx2026/RelayBar
45•linxy97•2d ago•15 comments

Show HN: Crisp – Open-source display manager for macOS (DDC, HiDPI, presets)

https://github.com/didriksg/Crisp
4•didriksg•22h ago•0 comments

Show HN: I built a zero-latency developer tool suite in pure Vanilla JavaScript

https://omnideck.cc/
24•AAPD_Studio•2d ago•11 comments