What it does
create-canvas-app turns a one-line prompt into a working Copilot App canvas —
an interactive side-panel surface the agent can open and drive. It ships a
no-build Preact + htm kit so there’s no bundler to fight, with the pieces a real
canvas needs already wired:
- Live state over SSE — the canvas and the agent stay in sync in real time.
- Durable per-user storage — state survives reloads and sessions.
- Primer theming — matches GitHub light/dark out of the box.
- Official GitHub Lucide icons — the same icon set the product uses.
- Host AI, no API keys — call the Copilot app’s own model from an action with
ctx.ai(…)(silent generation) or hand work to the main agent withctx.askAgent(…). - A generator that stamps a working canvas in one command, plus tests.
When to reach for it
Use it whenever the task is a canvas — dashboards, editors, trackers, boards, or document/preview surfaces. It is not for plain (non-canvas) agent tools or for shipping web apps unrelated to Copilot canvases.
Use it
Once installed, just describe the canvas you want from the Copilot composer:
/create-canvas-app a customized stock ticker