Reusable Cloudflare-only baseline for single-owner websites — launch directories (Product Hunt–style), newsletters, portfolios, landing pages — built as an Orun component-native desired-state repo. The visitor is the user; the owner ships from git and a CLI. There is no console.
Virga is a variation of Cirrus, the Cloudflare-only multi-tenant SaaS baseline. It keeps Cirrus's data plane (Workers, D1, KV, Email Service), its Orun CI, its deploy-time wiring and its phased bootstrap, and replaces the 12-worker tenancy fleet plus the console with three deployables:
| Deployable | Role |
|---|---|
apps/site-api |
The public edge Worker: subscribers (double opt-in), form submissions, reactions/upvotes, view counters, launch rankings, and bearer-token owner routes. |
apps/mail-worker |
Internal Worker behind a service binding: transactional mail and newsletter broadcasts through Cloudflare Email Service (or a local-debug provider). |
apps/web-site |
Next.js on Workers + Static Assets. Content lives in content/ as Markdown with frontmatter; the site renders whichever sections have content, so one baseline yields a portfolio, a newsletter or a directory by content alone. |
Not yet recorded — run the 08-docs phase after 06-site to fill this
section from verified live state.
- The workspace is complete and verified locally: three deployables, five
packages, the four Terraform/migration components, and per-component test
suites.
pnpm typecheck && pnpm lint && pnpm test && pnpm buildis green, and both Workers render a deployable config from their committed fixture. - Nothing is deployed yet. No Virga product has been bootstrapped, so this
repo claims no live environment:
ci.ymlstays gated behind theORUN_CIrepository variable andverify.ymlis the merge gate until then. - Milestone-by-milestone status:
specs/epics/virga-baseline/.
This baseline births new sites through the phased bootstrap (BOOTSTRAP.md → docs/phases/): eight idempotent workflows — scaffold, foundation, infrastructure, mail, api, site, optional domain, docs — each landing a verified slice. Sites receive product-only content (source, infra, CI, their own docs); none of this baseline's machinery ships.
- Node.js >= 22.5 (
node:sqlitebacks the test suites; CI and components run on Node 22) - pnpm >= 10 (
npm install -g pnpm) - (Optional, for local Orun validation) the
kioxCLI on yourPATH.
pnpm install
pnpm run wire:fixture # render wrangler configs from the committed fixtures
pnpm typecheck
pnpm lint
pnpm test
pnpm buildapps/site-api Public HTTP entry point (Cloudflare Worker)
apps/mail-worker Transactional mail + newsletter broadcasts (internal Worker)
apps/web-site Next.js site (Cloudflare Workers + Static Assets)
packages/contracts Shared API types and validators
packages/db D1 executor, migrations, manifest, runner, repositories
packages/cli `virga` owner CLI
packages/shared Generic helpers (ids, errors) — no domain logic
packages/testing Test fixtures + a real-SQLite D1 binding
infra/terraform/cloudflare-d1 D1 database provisioning (stage/prod)
infra/terraform/cloudflare-kv site-api rate-limiter KV namespace
infra/terraform/cloudflare-domain Zone adoption + site custom domain
infra/db-migrate Database migration runner component
tooling/tsconfig Shared TypeScript configurations
tooling/eslint Shared ESLint configuration
tooling/wire Deploy-time wrangler config renderer
tooling/migrations Manifest checksum tool
tests/* Per-component test suites
Virga was born from sourceplane/cirrus at 8f41d16 — see
ai/context/provenance.md for what was kept,
what was dropped and why.