Skip to content

A barn swallow in flat poster colours

Your cloud environment, locally in a box

Slipfork turns one Forkfile into your whole stack — images, PostgreSQL, Redis, S3 buckets and workers — and serves it from one .localhost URL. It runs natively on Btrfs with crun, so there is no Docker daemon to install and no shared staging box to fight over.

Very experimental release

0.1.0 is a very experimental release with breaking changes ahead. Report what breaks in the issue tracker.

$ curl -fsSL https://offworldnexus.github.io/slipfork/install.sh | sh
$ slipfork up
✓ Ready -> http://acme-shop.localhost

Get started The Forkfile

One URL, cloud-identical routes

http://acme-shop.localhost is the front door. route /api keeps its prefix on the primary world domain (the first declared domain), an extra declared domain mail answers on mail.acme-shop.localhost, and each s3 bucket on <bucket>.acme-shop.localhost.

Worlds and forks

A world is the running stack declared by one Forkfile. A fork is an atomic copy-on-write snapshot of that world and your checkout, with its own dependencies, data pages and URL.

flowchart LR
  F["Forkfile"] -->|"slipfork up"| W["World acme-shop\nhttp://acme-shop.localhost"]
  W -->|"slipfork fork billing-api"| K["Fork billing-api\nhttp://billing-api--acme-shop.localhost"]
  K -->|"slipfork drop billing-api"| R["snapshots deleted"]
  W --- DB[("PostgreSQL 18")]
  K --- DBF[("CoW snapshot")]

Forking reports two tiers: the CoW clone as snapshot_ms (~150–365ms on the 4-vCPU droplet, asserted < 500ms) and the full boot as the elapsed (~5.5s median, asserted < 8.0s for the real 8-component FastAPI + SvelteKit stack). The boot, not the clone, takes the seconds — .venv, node_modules, database pages and bucket objects are already on disk, so the wait is uvicorn --reload and vite dev warming their first requests. Test a risky migration on the fork; the parent world keeps serving.

A Forkfile is the whole topology

# forkfile: 0.1

domain main
postgres pg { database app_db }
redis cache
s3 uploads

env common {
  DATABASE_URL = app_db.url
  REDIS_URL    = cache.url
}

image api . {
  use env common
  service web {
    port 8000
    route /api
    run: @uv run uvicorn app.main:app --host 0.0.0.0 --port $port
  }
}

Services live inside the image that runs them. Build-time args stay separate from runtime env, and @uv / @pnpm wire lockfile-watched installs automatically.

Verb What it does
slipfork up Boot the world and print ✓ Ready -> <url>
slipfork fork feat-auth Snapshot code and data, boot a fork on its own URL
slipfork drop feat-auth Stop the fork and delete its snapshots
slipfork status One tree of every world and domain, forks included
slipfork logs -f api Stream merged logs with per-service gutters
slipfork down Stop the world, keep the data subvolumes

Linux, Btrfs and crun

slipfork needs a Linux host with a Btrfs filesystem, crun, and slirp4netns on PATH; slipfork doctor checks exactly those three things. The editor language server slipfork-lsp runs on Linux, macOS and Windows.

Where next

  • Getting started — install, a Forkfile, up, fork, drop, down.
  • Install — every distro, the daemon unit and the :80 ingress.
  • The Forkfile — the complete # forkfile: 0.1 language.
  • CLI — daily verbs, trees, progress and NO_COLOR.