@eyeglass/inspector 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +41 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # @eyeglass/inspector
2
+
3
+ Browser-side Web Component for [Eyeglass](https://github.com/donutboyband/eyeglass) visual debugging.
4
+
5
+ ## Installation
6
+
7
+ Automatically configured by `npx @eyeglass/cli init`, or manually:
8
+
9
+ ```bash
10
+ npm install -D @eyeglass/inspector
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ Import in your app's entry file:
16
+
17
+ ```typescript
18
+ // src/main.tsx (Vite) or app/layout.tsx (Next.js)
19
+ import '@eyeglass/inspector';
20
+ ```
21
+
22
+ The inspector auto-initializes when imported and only runs in development mode.
23
+
24
+ ## Features
25
+
26
+ - **Click any element** to select it for inspection
27
+ - **Multi-select** up to 5 elements
28
+ - **Framework detection** - React, Vue, Svelte component names and file paths
29
+ - **Semantic capture** - accessibility tree, computed styles, geometry
30
+ - **Real-time feedback** - see Claude's progress in the browser
31
+ - **One-click undo** - revert changes from the hub
32
+
33
+ ## How It Works
34
+
35
+ 1. Hover over elements to highlight them
36
+ 2. Click to select and open the request panel
37
+ 3. Type what you want to change
38
+ 4. Submit - Claude receives full context and makes the change
39
+ 5. HMR updates your browser automatically
40
+
41
+ See the [main repo](https://github.com/donutboyband/eyeglass) for full documentation.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eyeglass/inspector",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Browser inspector component for Eyeglass",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",