Public: anyone can read this; the crew can change it.

Build infrastructure on your own cloud, from the UI: describe → plan → build… #16696

open held opened this has it

Stalled: nothing picked it up in 10 minutes

opened this

Build infrastructure on your own cloud, from the UI: describe → plan → build → it ends

The owner wants to build infrastructure from his connected cloud accounts and have it feel great. Today the forge can make exactly one shape (a pinned forge: machine + 10 GiB disk + an A record), with live list prices and the ceiling refusing before anything is made. This issue is the direction for everything after that.

Principles

  1. Plan before money. No change runs without a plan the person has seen: each step, its monthly delta, the account's ceiling after it, and the time to ready. The plan is the product's signature: a tray that stays at the bottom of the page and grows as you compose ("+ 1 machine, + 1 disk · +$7.20 a month · $7.20 of $50 · ready in about 2 min · Build").
  2. Nothing runs without a reason and an end. Every resource carries what it's for (an app, or an experiment's question) and an end date. By default, a machine for an experiment ends in 7 days. A day before, the forge says so once; at the end it retires the resource unless someone pressed Keep. Idle spend stops being possible to forget.
  3. Live, not polled by a person. Build streams its steps where you pressed it (disk ✓, machine starting…, address, DNS, healthy). Every step is an event, and the page, terminal and Talk all read the same ones.
  4. One truth, every door. Web page, terminal screen and MCP/Talk call the same actions. Talk gets it by replacing the experiments tool with infra (same slot, since the Talk catalog is ~30 bytes under its ceiling), not by adding a tool.
  5. Reality is checked. The hourly watch's orphan detection covers every kind it can make, and drift shows on the page as a row ("at DigitalOcean, not in your infrastructure").
  6. Teardown is calm. Retire is one action through the existing confirm. Deleting data stays a typed-name confirm. Where a provider snapshots cheaply, a snapshot is offered first.

Phases

  • 1a Lifetimes: pinned rows get endsAt, a once-only notice a day before, auto-retire (machine; data kept unless chosen), and Keep (+7 days). Shown on /pinned rows and in experiments.
  • 1b Plan engine: src/cloud/plan.ts. A desired set of resources (today: machine-with-disk at a place, from an app and a source) compared with what exists gives {steps, deltaCents, ceiling verdict, etaSeconds, refusals} from the existing places, ceiling and drivers. Apply runs the steps as a durable job with an event per step. Pure, fully tested.
  • 1c /infra: the page. Running (grouped by app or question, a live cost meter against each account's ceiling), Compose (kind → place picker sorted by monthly price, with what each size gives), and the Plan tray with live Build. Terminal screen, the infra tool replacing experiments, and docs. /pinned stays as the forge-specific view until 1c covers it, then folds in.
  • 2 Edges: firewalls (DigitalOcean and Hetzner APIs), DNS records as their own kind (Cloudflare), snapshots, and covering OVH.
  • 3 Data: buckets (DO Spaces, Hetzner Object Storage, B2) and managed Postgres (DO). Price reads for each. Binding to an app injects the URL as an app secret.
  • 4 As code: infra.json in a repo. The UI writes commits, and a merge to main reconciles. The page is the editor for the file.

Owner's words (2026-11-30): "i want to be able to leverage my cloud accounts now to build infrastructure... make building in the cloud feel great."

2 earlier comments
commented

Phase G: game servers (owner, 2026-11-30: "minecraft servers, steam servers, etc. are a product angle that the forge should deliver on wonderfully")

A game server is a ready-made design in /infra: a machine, a world disk, the game's ports open, a clean address. It gets the same plan tray, lifetime and teardown.

  • First: Minecraft Java. Run itzg/docker-minecraft-server (Apache-2.0: Paper, Fabric, Forge, modpacks) on an x86 place. Compose asks for the game, rough players (sizes the RAM: about 2 GB vanilla for 5 players, 4-8 GB modded or 20+), and where (the place picker sorted by price; nearest to the players first). The address is play.<domain> via a Cloudflare SRV record _minecraft._tcp plus a DNS-only A record, with no port to type.
  • Sleep when nobody plays. DigitalOcean (and, per reports, Hetzner) bill a powered-off machine, so sleep is snapshot → destroy → recreate on wake. One shared, tiny, always-on wake proxy (mc-router or lazymc pattern) answers the Minecraft status ping with "starting, back in about 2 min" and boots the world. The tray prices it honestly: "about $X a month if played 3 hours a day".
  • Backups: nightly world snapshots (phase 2 snapshots), restore from the row.
  • Then: Steam catalog. Valheim, Factorio, Terraria, CS2, Palworld from curated SteamCMD images. They need x86 and UDP. There's no wake-on-connect (no handshake to intercept), so they use a schedule plus a "Wake now" button, and a GSLT token field where the game needs one (CS2, Rust).
  • Crossplay later: Geyser/Floodgate so Bedrock players join the Java server.
  • Cloudflare: the 2026-08-03 inbound TCP for Workers/Containers is a private beta, TCP only (UDP is future work), with ephemeral container disk and at most 4 vCPU/12 GiB. It's not a host for worlds. We use Cloudflare for DNS (SRV) only; revisit if it ships UDP with persistent disks.
commented

The whole loop (owner, 2026-11-30): "go grab a key from any cloud then have the forge as a great place to configure, get deployed then manage and develop"

The arc is connect → compose → plan → build → manage → develop, and each phase serves one step:

  • Connect, phase 1d: /cloud/connect. Per provider: what the forge can do with it, a deep link to the provider's token page, the exact scopes (read-only first, then what building needs), paste, and an instant verify that says what the key sees. Then "Switch on building" → "Build something" (/infra). A token never goes through chat.
  • Compose / plan / build: 1b + 1c (/infra, the plan tray).
  • Manage: lifetimes (1a), drift, Keep/End, and per-resource logs and console later (games need a console).
  • Develop: phase 4. infra.json in a repo, where the UI writes commits and a merge reconciles, so infrastructure gets pulls, review and history like code.
commented

Covered by an open pull: Direction issue; its pieces are open: #16706 (infrastructure page), #16702 (connect a cloud), #16699 (pinned forges end on a date).

(Issue triage 2026-11-30, checked against main. Reopen if this is wrong.)

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs