Skip to main content

Yard

Yard runs each app in its own container. You push a repo. Yard builds the Containerfile and starts the container. Caddy sends public traffic to that container.

Slot

A slot is one app. The container name is the slot name.

A slot points at one repo and one branch. The repo must already contain one of these files:

  • Containerfile
  • Dockerfile
  • ops/Containerfile
  • ops/Dockerfile

A push to that branch builds the image and starts the container. Yard removes the slot when that branch is merged or deleted.

--every 5m makes a job. Yard keeps one run at a time. The next run uses the same container name.

Host

Yard keeps its files under /srv/yard. Each slot keeps its files under /srv/yard/data/<name>.

Caddy listens on port 8443. The host forwards port 443 to that port. Yard posts the Caddy config to a Unix socket.

CLI

The command is yard. The package name is staryard. PyPI already has a package named yard.

uv tool install staryard
yard --version

Python 3.14 is required. yard login stores the host and the token on this computer.

staryard[server] installs the server libraries. The host still runs the container image.

Install

Run the script on the VM as root. A second run repairs a partial install. A healthy Yard container stays in place.

./install.sh --domain yard.example.com

The script installs ghcr.io/bobowski/yard:latest. A finished run has checked the health page, the container route, and the path to Let's Encrypt. With --domain it also checks the certificate and https://<domain>/health.

The script prints an admin token. Log in from your computer:

yard login --url https://yard.example.com --token <token>

The package must be public. A private package needs podman login ghcr.io on the VM before the script.

GitHub Actions builds the image when this directory is the root of the repo. The workflow publishes ghcr.io/bobowski/yard:latest for linux/amd64.

Update Yard

yard update pulls ghcr.io/bobowski/yard:latest and swaps the Yard container. yard rollback starts the previous image.

A repo on this host replaces that image:

yard settings --self-repo yard
yard update

Clear the repo to return to the image:

yard settings --self-image
yard update

Add an app

Run this in the app directory. The directory name is the repo name and the slot name.

yard init --domain heldso.example.com
git push -u yard main

yard init makes a git repo when the directory has none. It makes the Yard repo and the slot. It adds a git remote named yard. It does not push.

Pass --domain for a public host. Pass --every 5m for a job. One of them is required. --name sets the repo name and the slot name. --repo and --slot set one each.

yard repo new, yard repo link, and yard slot new do those steps one at a time.

Commands

Run yard to see every command. These are the common ones:

  • yard slot list shows each slot, its data size, and how long the last build took. The last row is the host total.
  • yard slot edit <name> changes the slot file.
  • yard slot logs <name> reads the container log.
  • yard settings sets the public host, the Caddy email, and the Yard image.

A terminal prints text. Any other stdout prints JSON.

Develop

The server command is python -m app.main.

uv run pytest
STARIO_LOOP=uvloop uv run python -m app.main

Metadata

Release files for staryard 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for staryard 0.1.1
File Size Uploaded
staryard-0.1.1.tar.gz 42.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for staryard 0.1.1
File Interpreter ABI Platform
staryard-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 91.0 kB

Release files / staryard-0.1.1.tar.gz

Download URL staryard-0.1.1.tar.gz
Size 42.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ba57624d715b00675636cd72b1f8be73f9a6befb9cc68be0fa7c3891b2377dc2
BLAKE2b-256 checksum
How to use checksums
c633948a6f2e4e5262879f84228257d62c84292490177f78f3e43b1944617235
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

Release files / staryard-0.1.1-py3-none-any.whl

Download URL staryard-0.1.1-py3-none-any.whl
Size 48.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
88690fedec6b706ae43affd785608154e64958a95a0badf5497f2bcf07871c5b
BLAKE2b-256 checksum
How to use checksums
304684312964f3e967e1b43ae665e192cef7478d4b06203b4300999b307772e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.1

2 release files

0.3.0

2 release files

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page