Skip to main content

deck

What it is​

deck registers any web app you run on your machine as a supervised service with a stable HTTPS address, an always-on dashboard and a one-toggle dev-port override. When you are ready, it can also give an app a public URL on your own domain with access control. The command is deck, not local, because local is a reserved word in zsh and bash. deck serves horsey's own apps, and deck needs none of them.

Open it​

Use the deck command, or open the dashboard at https://deck.localhost. deck v1 is macOS only. Where the horsey app is installed, the app supervises deck itself, and deck setup refuses and changes nothing.

What you do in it​

Give an app a name. Run deck add myapp --cmd "bun src/server.ts" --dir ~/code/myapp. The app is live at https://myapp.localhost, starts at login and restarts if it crashes. If you already run your own dev server, run deck add otherapp --port 4200 to track the name without deck touching the process.

Check on everything. deck status lists every app. The dashboard shows each app's health and lets you restart it. The gear on an app's row opens its settings: its code, name and port, its recent errors, who can reach it and who gets in. deck logs <name> tails an app's stderr.

Pick up new code in dev mode. In the horsey dev app, the dashboard adds a version column. For each of horsey's own apps it shows the deployed commit and the newest one, or current. When any of them has new code since its last deploy, a strip at the top of the horsey section counts them, and its button deploys each one. The button names the app when only one is behind, reads Redeploy all when every app is, and counts the apps otherwise.

Run an app live while you edit. In the horsey dev app, horsey's own apps can run live. A live app runs from source at its normal address and reloads as you change files. deck itself never goes live. Press go live in the app's LIVE column, pick the code to run and press Go Live. The code is main, the shared checkout, or one of your worktrees. A worktree that is not set up installs its packages first, and the app keeps running its normal code until that finishes. A worktree uses your real app data. From a terminal, deck live chat on runs chat live from main and deck live chat on --worktree my-branch runs it from a worktree. deck live chat off puts it back, and deck live lists what is live. While an app is live, its dev-port override is off.

Debug against a dev server. deck override myapp 5173 makes myapp.localhost serve port 5173. deck override myapp off clears it.

Share an app on your terms. Nothing is public until you say so: an app you never switched on stays private, and publishing needs a connected domain. The apps that come with horsey (board, console, chat and the rest) are never public. Options are a casual public URL with portless --funnel, a password gate (deck password <name>), or your own domain with deck domain yourdomain.dev, plus a Google sign-in allowlist of people or domains with deck access. Publish or unpublish with deck publish <name> on|off. Do not share through --ngrok, because it defeats deck's local-only controls.

Serve while your laptop is off. deck remote <name> on redeploys the app to Railway and points its public hostname there. deck push <name> redeploys after a local change, and deck remote <name> off moves it back.

Bring in what already runs. deck migrate adopts your existing LaunchAgents and routes so they show up on the dashboard, without rewriting them.

Settings that matter​

KeyMeaning
deck.appsPer-app publish state, such as the published flag.
deck.accessdeck's access-control roster.
deck.platformdeck's platform-level machine config: public domain and legacy URL prefixes.
  • rt services covers the services rt runs on your Mac.
  • rt apps turns the horsey apps deck serves on or off.
  • The menu bar app describes the mattstack window that shows those apps.
  • rt secrets holds the Cloudflare secrets deck domain needs.