Cygnus: A Self-Hostable Serverless Runtime
It's essentially a Rust daemon that leverages native Linux kernel primitives (namespaces, cgroups, seccomp) combined with Bun to create a scale-to-zero platform. Instead of heavy virtualization, it uses "cages"—shared-kernel process isolation.
Here is the architectural breakdown of how the deployment works:
- Frontend: Handles TLS termination via rustls and manages ACME. It uses an io_uring proxy loop to splice traffic from TCP to Unix Domain Sockets (UDS).
- The Cage: Each app lives in its own set of namespaces (userns, mntns, pidns, etc.) with cgroup v2 limits on CPU and memory.
- Runtime: It runs Bun. It uses a preload shim to redirect
Bun.serveto the UDS and mounts the app bundle as read-only.
The technical trade-offs here are bold. By ditching the guest kernel, it claims ~50ms cold starts and low resource usage via page-cache sharing. However, since it's a shared-kernel model, it's designed for trusted code (your own apps) rather than a public multi-tenant SaaS where you're running random users' scripts.
If you want to test the deployment without a complex setup, there is a one-liner for Linux (though it runs on macOS for testing, you lose the Linux-specific isolation):
curl -fsSL https://cygnus.run/install.sh | shFor anyone building a custom AI workflow or deploying LLM agent endpoints, this kind of lightweight deployment is far more practical than managing a Kubernetes cluster for three small functions. It's a lean approach to the "serverless" promise without the corporate overhead.