better/compute v0.3.0·GPUs, CPUs and sandboxes
Every GPU and coreaccounted for.Nothing booked twice.
A TypeScript control plane you embed. It knows what exists, what is free and who holds it, and Postgres referees every booking, from a whole NVLink set to a few vCPUs.
- Adopts running servers
- Deploys bare metal
- Runs sandbox VMs
- Better IAM decides
Simulated, not live data: whole NVLink sets for 4-GPU jobs, sandbox VMs claiming vCPUs, and a request that fits nowhere stays pending. Point at the board to hold it.
- Runtime
- Node.js 22.12+
- Database
- PostgreSQL 16+ / PGlite
- Identity
- Better IAM
- Agent
- bcd · Go · Linux
U01Capacity
One ledger for GPUs, CPUs and sandboxes
Every kind of capacity comes out of the same pools, the same quotas and the same Postgres tables, so a GPU reservation and a sandbox can never take what the other holds.
U02Signal path
From one API call to a machine that converged
A request is decided once and written once. Everything after that is workers moving rows and daemons converging toward them, so a lost message is repaired by the next pass instead of lost with it.
U03Deep dives
Eight channels into the machine room
Each channel is a working model of one part of the system: race two placements, edit an audit row and watch its proof fail, cut a node’s session mid-command. Pick a channel; only that one runs.
U04Guarantees
The datasheet
What holds under load, crashes and partitions, the mechanism behind each guarantee, and the test or tool in the repository that checks it.
U05Modules
Rack only what you run
One betterCompute() instance, and the modules you pass it. Each module brings its own API groups, tables and reconcilers, and the typed client only grows the groups you registered.
- Modules
- 18
- API groups
- 50
- Jobs
- 54
- Packages
- 35
U06Quickstart
From npm install to a booked GPU
PGlite in memory, an embedded Better IAM, and simulated machines that join through a real gateway: the whole control plane on your laptop. Add --sim-variant cpu for machines without GPUs.
Run your own GPU, CPU and sandbox capacity, with the guarantees of a database
Version 0.2.0 is on npm: install better-compute and better-iam, and the control plane runs on PGlite or PostgreSQL. bcd’s node agent is built and tested but not released yet, and nothing has run on real GPU hardware, so machines join as simulated daemons for now.
Built and maintained by Sean Filimon
- GuidesConcepts, nodes, capacity, bare metal, VPS and sandboxes.
- API referenceEvery method, generated from the live registry.
- ExtendingModules, methods, drivers, attestors and providers.
- OperationsDeploy, secure, observe and scale.
- Daemon and protocolbcd, sessions, delivery and the gateway.
- RoadmapWhat is built, and what comes next.