@eyeglass/inspector
v0.2.3
Published
Browser inspector component for Eyeglass
Maintainers
Readme
@eyeglass/inspector
Browser-side Web Component for Eyeglass visual debugging.
Installation
Automatically configured by npx @eyeglass/cli init, or manually:
npm install -D @eyeglass/inspectorUsage
Import in your app's entry file:
// src/main.tsx (Vite) or app/layout.tsx (Next.js)
import '@eyeglass/inspector';The inspector auto-initializes when imported and is automatically excluded from production builds (NODE_ENV === 'production'). No configuration needed—your production bundle stays clean.
Features
- Click any element to select it for inspection
- Multi-select up to 5 elements
- Framework detection - React, Vue, Svelte component names and file paths
- Semantic capture - accessibility tree, computed styles, geometry
- DOM neighborhood - captures parent layout context (flex/grid) and children
- Real-time feedback - see Claude's progress in the browser
- One-click undo - revert changes from the hub
- Keyboard shortcuts - toggle inspector with
Cmd/Ctrl + Shift + E
How It Works
- Hover over elements to highlight them
- Click to select and open the request panel
- Type what you want to change
- Submit - your AI agent receives full context and makes the change
- HMR updates your browser automatically
Supported agents: Claude Code, GitHub Copilot CLI, OpenAI Codex CLI
See the main repo for full documentation.
