$ show aurae-runtime/aurae
This repository implements Aurae, a memory-safe distributed systems runtime that replaces systemd as the PID 1 init process on Linux nodes. It manages workloads (processes, containers, VMs) with cgroups v2 isolation, eBPF-based observability, and a gRPC API defined via protobuf. The system consists of three main binaries: auraed (daemon), auraescript (TypeScript scripting runtime), and aer (CLI). It also provides a partial Kubernetes CRI implementation and supports nested cells for multi-tenant isolation. The codebase is in early active development with many incomplete features and ignored tests, but demonstrates strong architectural patterns such as proc-macro-driven code generation, a reusable validation framework, and an eBPF abstraction layer. It is not production-ready.
The LLM identified 2 files worth highlighting for reuse:
Provides a trait-based validation framework for newtype wrappers, with functions like required, maximum_value, allow_regex, etc. This is a self-contained, reusable pattern for enforcing constraints at the type level in Rust, applicable to any project needing input validation.
Contains BpfFile, TracepointProgram, KProbeProgram, PerfBufferReader, and PerfEventBroadcast. This is a clean abstraction for loading and interacting with eBPF programs, handling perf buffers and event broadcasting. It can be extracted and reused in other Rust projects that need eBPF-based observability.