Design Live Preview¶
Design Live Preview opens local HTML artifacts in a sandboxed iframe at /design/preview.
Capabilities¶
- Open an
index.htmlfile or a project directory under the configured workspace root. - Click a rendered DOM node to capture selector, HTML snippet, tag, classes, and bounding box metadata.
- Copy selector/snippet or build an agent message for
claude-designplus the optionalimpeccableskill. - Watch the entry file and reload the iframe when it changes.
API¶
POST /api/design/preview/openGET /api/design/preview/{session_id}POST /api/design/preview/{session_id}/selectionGET /api/design/preview/{session_id}/urlGET /api/design/preview/{session_id}/renderGET /api/design/preview/{session_id}/events
Preview sessions are persisted under {KEPRIX_HOME}/design/preview/{session_id}.json.
Security¶
Local paths must resolve under the server working directory, a registered Builder project path, or KEPRIX_WORKSPACE_ROOT. Traversal outside those roots is rejected.
Remote URL preview is intentionally not supported.
Configuration¶
design:
preview:
enabled: true
Environment:
KEPRIX_DESIGN_PREVIEW_ENABLED=trueKEPRIX_WORKSPACE_ROOT=/path/to/workspace