Arcade carts

A build pin can name a cart: a demo of its commit that plays offline as one HTML page. The cart's facts ride on the pin's tag as trailers (Demo:, Version:, Launch: file, Page:, Showcase: on, Cover:; git/builds.ts), so git holds them. The page is captured once from a build preview of the commit and kept under FORGE_APP_DATA/carts/<owner>/<repo>/<commit>/ with a picture of it (arcade/carts.ts). Ported from Jay Moran's arcade.

- GET /api/v1/repos/:owner/:name/builds/:label/cart answers { label, oid, demo, capture, play_url, art_url }; capture.state is none, capturing, done or failed (with its error). - POST …/cart with { name, version, page, showcase } names it and starts the capture: 202 while it runs. The capture starts the commit's build preview if it is not up, waits for it (15 minutes at most), keeps the page once (16 MB at most) and pictures it.

Left out: the Arcade itself (the shelf, the console page, covers drawn in the house style and the arcade host: #9207, #9208), a cover upload door, and capturing a page that is not the build's own HTML file.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs