Returning to a project often means remembering which command starts the website, where the API runs, and whether the worker is alive. Save each as a project command once. This demo gives you three small processes and a visible count to check each one.

Set up the demo once
Unzip the demo and install Node.js 18 or later; there's no package install, account, secret, or external service. Open `local-stack-demo` as one Canopy project and save three component commands with that folder as the working directory. The API and website listen on 127.0.0.1 at ports 4175 and 4173. If a port is taken, stop the other process rather than changing the URL.
| Component | Run command | Expected signal |
|---|---|---|
| API | node api.mjs | API ready at http://127.0.0.1:4175 |
| Worker | node worker.mjs | Worker sent tick 1, then another about every five seconds |
| Website | node website.mjs | Website ready at http://127.0.0.1:4173 |
Start, stop, and watch the count
In the Servers panel, start the API, then the worker and website. Open http://127.0.0.1:4173 in Preview. The page polls the API every two seconds and shows a rising count with 'API connected.' Stop the worker: the number holds. Restart it: the count climbs. Stop the API: the page reports it unavailable, and restarting it resets the in-memory count. Separate logs show which process failed.
What the demo run confirmed
On 28 September 2026 we ran the demo with Node.js 23.7.0. The website returned HTTP 200. The count rose from 1 to 2 while the worker ran and stayed at 2 for over one interval after it stopped. The ZIP matched all five source files. This confirms the demo's behavior, not Canopy's UI in every release.
Give an agent a change you can see
Ask an agent to add a Pause display button. Acceptance: while paused, the count holds though the API and worker keep running; after Resume, the page fetches the latest count. Test both states in Preview, then inspect the diff. The running behavior, not a screenshot, decides whether it's done.
Pick up where you left off
Canopy keeps components, run commands, and restorable agent sessions together. Reopen the project, check what's running, restart what you need, and resume the CLI conversation where supported. Saved commands don't mean a process ran while the app or machine was off.
Apply the pattern to a real project
Swap in your own frontend, API, and worker commands. A Trigger.dev development worker can be a saved command; this demo isn't a Trigger.dev integration. A real app may also need dependencies, environment variables, a database, and ports per worktree. Check its URL, logs, tests, and diff before accepting a change; a running indicator doesn't prove the feature works.
Frequently asked questions
Can Canopy start my existing npm or pnpm commands?
Yes. Save the command your project already uses as a component run command.
Does Canopy host my app?
Not for production. The Servers panel runs your development commands on your computer, or in a managed cloud workspace (preview) if you use one.
Why did the tick count return to zero?
The API keeps the count in memory. Restarting the API starts fresh; stopping only the worker leaves the count in the running API.
Do I need Trigger.dev to run this demo?
No. The demo worker is a local Node.js process. A real Trigger.dev development worker can be saved as a separate project command.