browser-preview
Browser preview panel for rendering and managing iframe-based service previews in the right sidebar.
- Automatically opens a Browser tab when
preview_servereturns a URL; each service gets one tab accessible via the ⋮ menu showing running services - Preview URLs use reverse proxy format
/preview/{id}/— users cannot accesslocalhostor127.0.0.1directly; always direct them to the preview URL or Browser panel - Static assets must use relative paths (
./static/app.js,./api/data) instead of absolute paths (/static/app.js), which break under the/preview/{id}/proxy prefix - Diagnose issues by checking the registry (
/data/previews.json), verifying port responses server-side, and consulting history (/data/preview_history.json) when services aren't running
Browser Preview
You already know preview_serve and preview_stop. This skill fills the gap: what happens after preview_serve returns a URL — how the user actually sees it.
What is the Preview Panel
The frontend has a right-side panel with three tabs: Files, Preview, and Jobs. The Preview tab renders preview URLs inside an iframe. When you call preview_serve, the frontend automatically opens a Preview tab loading that URL.
Key facts:
- Each
preview_servecall creates one Preview tab - URL format:
https://<host>/preview/{id}/ - Preview panel has a ⋮ menu (top-right) showing "RUNNING SERVICES" list
- Preview tab can be closed by the user without stopping the backend service
- Backend service stopping → Preview tab shows an error page
⚠️ CRITICAL: Never Tell Users to Access localhost
The user's browser CANNOT access localhost or 127.0.0.1. These addresses point to the server container, not the user's machine. The preview architecture uses a reverse proxy:
More from starchild-ai-agent/official-skills
coinglass
Comprehensive crypto derivatives data - funding rates, open interest,
9.3Kwallet
Multi-chain wallet — balances, transfers, signing, policy (EVM multi-chain + Solana)
6.0Khyperliquid
Trade perpetual futures and spot on Hyperliquid DEX
6.0Kcoingecko
CoinGecko crypto price data, charts, market discovery, and global stats
5.8Ktwitter
Twitter/X (x.com) data lookup — fetch tweets by URL or ID, search tweets, user profiles, followers, replies. Use for ANY x.com or twitter.com URL.
5.7Kskill-creator
Create and scaffold new skills with proper frontmatter, directory structure,
5.6K