What is Domscribe?
mainDomscribe is a pixel-to-code development tool designed to bridge the gap between a running web application and its source code. It allows developers to interact with a running app via an in-browser overlay to capture runtime context (like component props, state, and event bindings) and map those interactions directly to exact source locations (file path, line, column, and component name). This context can then be handed off to coding agents (like Claude) via the Model Context Protocol (MCP).
Key Characteristics:
- Dev-only: Operates exclusively in development mode. Production builds strip all Domscribe artifacts (data attributes, overlay scripts, relay connections) to ensure zero runtime cost.
- Stable IDs: Element IDs are designed to survive Hot Module Replacement (HMR) using content-hash caching.
- Isolated UI: The overlay UI uses Lit web components with Shadow DOM to prevent CSS or JS conflicts with the host application.