document pip web coprocessor
Most in-page assistants and inspector sidebars die the moment a user clicks a link to another page, which pushes builders into packaging Chrome extensions just to keep a companion panel open. Combining the Document Picture-in-Picture API with BroadcastChannel and the Navigation API lets a standard website host an always-on floating companion window across route changes with no browser extension required.
Hypothesis
Combining the Document Picture-in-Picture API,
BroadcastChannel, Navigation API, and CSS Container Queries sustains a persistent cross-page companion workbench on a normal web origin without packaging a browser extension.
What confirms it: Navigating across /, /workspace/specs, /workspace/audit, and /workspace/notes updates the floating Document PiP companion instantaneously without tearing down window state or duplicating listeners.
What falsifies or bounds it: User-activation requirements on PiP open, browser popup restrictions, or unsupported mobile viewports force heavy reliance on the docked fallback panel.
What this lab tests
Document PiP Web Coprocessor (GitHub) keeps a persistent companion workbench synchronized across multiple origin routes (/, /workspace/specs, /workspace/audit, /workspace/notes) via Document Picture-in-Picture, BroadcastChannel, the Navigation API, and CSS Container Queries.
Open questions
- What navigation patterns (full document loads vs. Navigation API intercepts) keep the Document PiP window bound smoothly across multi-page websites?
- How well do CSS Container Queries adapt tool UIs cleanly between a wide main pane and a narrow 340px PiP window?
Iteration log
- — Built multi-route workspace (
/workspace/specs,/workspace/audit,/workspace/notes), Document PiP host + dockedBroadcastChannelfallback, and top code blueprint. - — Moved multi-route workspace above setup docs, fixed narrow-viewport container-query width toggling, added CSP-safe DOM syntax highlighting, hardened 700px embed layout, and enforced no-cache headers on static assets.
Primitives tested: Document Picture-in-Picture API, BroadcastChannel, Navigation API, CSS Container Queries.
This is an active lab under /labs/ and stays off the main RSS feed until graduated into a full essay.