Demo: pin one commit of an app, served at <slug>--demo

A demo is one commit you chose to show, running beside production with a copy of production's data, the way a preview does. Git holds it: the ref refs/demo in the app's repository. No ref, no demo.

Who: a verified person who can write the repository. A reader, a guest and an agent are refused (the crew proposes; a person chooses what is shown). A repository that mirrors an origin cannot have one. Anyone who can read the repository can see the pin: refs/demo is a ref like any other, and the terminal screen shows its commit and the demo's address to every reader.

In the terminal

Open the app's repository, then the palette command owner/name — Demo.

The screen reads refs/demo itself, so it shows a pin made from anywhere (src/tui/screens/demo.ts).

Over the API

PUT    /api/v1/repos/<owner>/<name>/demo   {"sha":"<full commit id>"}   202 {sha, run}
DELETE /api/v1/repos/<owner>/<name>/demo                                200 {sha}

PUT takes any commit of the repository, not only a branch tip. Refusals: 401 not signed in, 403 not a writer or an agent, 404 no such app, 422 unverified, mirrored, not_a_commit or demo_moved (the ref moved while you asked; ask again).

Then open <slug>--demo. A push cannot move refs/demo; only these actions do. A forge coming back rebuilds the demo from the ref.

Reserved slug

demo is no longer a valid app slug (<slug>--demo would be ambiguous); slugFor turns a repository named demo into demo-app. The check applies when an app is created, so a row already named demo is untouched.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs