workerd-os Unofficial · Not affiliated with Cloudflare

You wrote a Worker. Don't adopt a computer.

You do not SSH into a lightbulb, patch it, or back up its drive. When one goes dark, you screw in another.

workerd-os is a diskless Linux ISO with only systemd and workerd, built from StageX. Boot it in a VM or flash it to a USB stick or drive. It runs from RAM, reads keys from systemd credentials, and loads its config, Workers, and Durable Objects from Object Storage (S3).

Object Storage (S3) code · state Box A RAM DO 1 DO 2 Box B RAM DO 3 DO 4
Boot in QEMU
$ git clone https://github.com/yawnt/workerd-os && cd workerd-os
$ curl -LO https://github.com/yawnt/workerd-os/releases/latest/download/workerd-os-x86_64.iso
$ docker run -d --rm --name versitygw -p 127.0.0.1:7070:7070 -v "$PWD/examples:/examples:ro" versity/versitygw:v1.11.0 \
    --access demo --secret demo-secret posix --object-lock-mode local /examples
$ qemu-system-x86_64 -machine q35 -cpu max -m 1024 -nographic -cdrom workerd-os-x86_64.iso \
    -nic user,model=virtio-net-pci,hostfwd=tcp:127.0.0.1:8080-:80 \
    -smbios type=11,value=io.systemd.credential:workerd.env=$'WORKERD_OS_BUCKET=s3://hello\nAWS_ENDPOINT_URL=http://10.0.2.2:7070' \
    -smbios type=11,value=io.systemd.credential:workerd.aws-credentials=$'AWS_ACCESS_KEY_ID=demo\nAWS_SECRET_ACCESS_KEY=demo-secret' \
    -smbios type=11,value=io.systemd.credential:workerd.greeting=Hello