Canvas Webapp

Render a React/Vite (or any bundled) web app on the pi-dashboard canvas, which loads loopback URLs in a sandboxed opaque-origin iframe. Use when a canvas(target:{kind:"url"|"server"}) target shows up blank white, an empty surface, or a /live/<id> 500 ECONNREFUSED. Covers why Vite dev servers and non-CORS static servers fail there, and the static-build + CORS-server recipe that works.

BlackBeltTechnology 924e674 2 files · 6.0 KB Updated

File contents

BlackBeltTechnology/pi-agent-dashboard/tree/main/packages/extension/.pi/skills/canvas-webapp commit 924e674a1a

Frequently asked questions

npx skillmds@latest add blackbelttechnology/canvas-webapp