canvas
What it does
This skill displays web content on a connected screen, such as a Mac app or a phone. It is for people who want to show a visual or interactive page on a device without opening a browser.
When to use it
- βWhen you want a dashboard or visualization shown on a connected device.
- βWhen you want to present a generated interactive demo or game on a screen.
- βWhen you want to display HTML content on a phone or Mac paired with Brigade.
Skill link
https://github.com/spinabot/brigade/blob/main/skills/canvas/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βShow a simple chart of my weekly sales on my connected Mac as a full-screen page.β
5 new skills a week. 1 minute to read.
How it works
The AI makes the content available through a local web server, then tells the connected device to show it in a web view. The device must be connected and able to display canvas content.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Canvas Skill
Display HTML content on connected Brigade nodes (Mac app, iOS, Android).
Overview
The canvas tool lets you present web content on any connected node's canvas view. Great for:
- Displaying games, visualizations, dashboards
- Showing generated HTML content
- Interactive demos
How It Works
Architecture
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββ
β Canvas Host ββββββΆβ Node Bridge ββββββΆβ Node App β
β (HTTP Server) β β (TCP Server) β β (Mac/iOS/ β
β Port 18793 β β Port 18790 β β Android) β
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββ
- Canvas Host Server: Serves static HTML/CSS/JS files from
canvasHost.rootdirectory - Node Bridge: Communicates canvas URLs to connected nodes
- Node Apps: Render the content in a WebView
Tailscale Integration
The canvas host server binds based on gateway.bind setting:
| Bind Mode | Server Binds To | Canvas URL Uses |
|---|---|---|
loopback |
127.0.0.1 | localhost (local only) |
lan |
LAN interface | LAN IP address |
tailnet |
Tailscale interface | Tailscale hostname |
auto |
Best available | Tailscale > LAN > loopback |
Key insight: The canvasHostHostForBridge is derived from bridgeHost. When bound to Tailscale, nodes receive URLs like:
http://<tailscale-hostname>:18793/__brigade__/canvas/<file>.html
This is why localhost URLs don't work - the node receives the Tailscale hostname from the bridge!
Actions
| Action | Description |
|---|---|
present |
Show canvas with optional target URL |
hide |
Hide the canvas |
navigate |
Navigate to a new URL |
eval |
Execute JavaScript in the canvas |
snapshot |
Capture screenshot of canvas |
Configuration
In the active Brigade config file ($BRIGADE_CONFIG_PATH, default ~/.brigade/brigade.json):
{
"canvasHost": {
"enabled": true,
"port": 18793,
"root": "/Users/you/brigade/canvas",
"liveReload": true
},
"gateway": {
"bind": "auto"
}
}
Live Reload
When liveReload: true (default), the canvas host:
- Watches the root directory for changes (via chokidar)
- Injects a WebSocket client into HTML files
- Automatically reloads connected canvases when files change
Great for development!
Workflow
1. Create HTML content
Place files in the canvas root directory (default ~/brigade/canvas/):
cat > ~/brigade/canvas/my-game.html << 'HTML'
<!DOCTYPE html>
<html>
<head><title>My Game</title></head>
<body>
<h1>Hello Canvas!</h1>
</body>
</html>
HTML
2. Find your canvas host URL
Check how your gateway is bound:
CONFIG_PATH="${BRIGADE_CONFIG_PATH:-${BRIGADE_STATE_DIR:-$HOME/.brigade}/brigade.json}"
cat "$CONFIG_PATH" | jq '.gateway.bind'
Then construct the URL:
- loopback:
http://127.0.0.1:18793/__brigade__/canvas/<file>.html - lan/tailnet/auto:
http://<hostname>:18793/__brigade__/canvas/<file>.html
Find your Tailscale hostname:
tailscale status --json | jq -r '.Self.DNSName' | sed 's/\.$//'
3. Find connected nodes
brigade nodes list
Look for Mac/iOS/Android nodes with canvas capability.
4. Present content
canvas action:present node:<node-id> target:<full-url>
Example:
canvas action:present node:mac-63599bc4-b54d-4392-9048-b97abd58343a target:http://peters-mac-studio-1.sheep-coho.ts.net:18793/__brigade__/canvas/snake.html
5. Navigate, snapshot, or hide
canvas action:navigate node:<node-id> url:<new-url>
canvas action:snapshot node:<node-id>
canvas action:hide node:<node-id>
Debugging
White screen / content not loading
Cause: URL mismatch between server bind and node expectation.
Debug steps:
- Check server bind:
CONFIG_PATH="${BRIGADE_CONFIG_PATH:-${BRIGADE_STATE_DIR:-$HOME/.brigade}/brigade.json}"; cat "$CONFIG_PATH" | jq '.gateway.bind' - Check what port canvas is on:
lsof -i :18793 - Test URL directly:
curl http://<hostname>:18793/__brigade__/canvas/<file>.html
Solution: Use the full hostname matching your bind mode, not localhost.
"node required" error
Always specify `node:<node-id
FAQ
Which devices can show the content?
The skill works with connected Brigade devices, such as the Mac app, iOS and Android.
Does the network setup matter?
Yes. The address the device uses depends on how the gateway is set up, such as local network or Tailscale.
Can it show a game?
Yes. It can display games, visualizations and interactive demos written in HTML.
Details
Original description by the author
Display HTML content β games, visualizations, dashboards, generated HTML, interactive demos β on a connected canvas-capable display surface. Use when you need to present visual or interactive web content on a screen.
repo: spinabot/brigade
Popularity
- GitHub stars
- 11k
- Ranking position
- #11714
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
1password
11kTeaches your agent to set up the 1Password command line tool and sign in safely, then read or inject stored secrets when they are needed.
apple-reminders
11kLets your agent view, add, edit, complete and delete Apple Reminders from the terminal, including lists and date filters.
bluebubbles
11kLets your agent send and manage iMessages through BlueBubbles, including texts, attachments, tapback reactions, edits and group settings.
camsnap
11kLets your agent take snapshots, short clips or watch for motion from network security cameras that you have already set up.
Similar skills
angular-developer
280kHelps your agent create Angular code and give project structure advice. Useful for starting new projects, creating code parts, or improving performance and accessibility.
frontend-a11y
280kHelps your agent make web interfaces accessible to everyone. It ensures websites and apps work well with screen readers and keyboard navigation.
frontend-patterns
280kHas your agent apply modern patterns in frontend development. It optimizes performance, manages state, and follows best practices in React and Next.js.