skema-core 0.1.2 → 2.1.0

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.
package/README.md CHANGED
@@ -13,12 +13,12 @@
13
13
 
14
14
  ## Overview
15
15
 
16
- Skema is a React component that provides a tldraw-powered drawing overlay for annotating and manipulating DOM elements visually. It sits on top of your localhost website, allowing developers to annotate, draw, and select DOM elements directly on the live page. Combined with AI, your annotations become code changes.
16
+ Skema is an npm package that provides a tldraw-powered drawing overlay for annotating and manipulating DOM elements visually. It sits on top of your localhost website, allowing developers to annotate, draw, and select DOM elements directly on the live page. Combined with AI, your annotations become code changes.
17
17
 
18
18
  ## Features
19
19
 
20
20
  - **Drawing Overlay**: Use tldraw's powerful drawing tools directly on your website
21
- - **DOM Picker**: Select any element on the page to capture its selector, bounding box, and context
21
+ - **DOM Selection**: Double-click on the canvas to select the element under the cursor (or use brush/lasso selection)
22
22
  - **AI Code Generation**: Annotations are sent to AI (Gemini or Claude) which edits your code
23
23
  - **Undo/Revert**: Git-based snapshots let you revert changes per-annotation
24
24
  - **Non-Invasive**: Transparent overlay that doesn't interfere with your page when not in use
@@ -112,7 +112,15 @@ npx skema-core help # Show help
112
112
  ## Keyboard Shortcuts
113
113
 
114
114
  - **⌘⇧E** (Cmd+Shift+E / Ctrl+Shift+E): Toggle Skema overlay
115
- - **P**: Activate DOM Picker tool
115
+ - **s**: Select tool
116
+ - **d**: Draw tool
117
+ - **l**: Lasso select
118
+ - **e**: Eraser
119
+ - **r**: Rectangle (shapes)
120
+ - **o**: Ellipse (shapes)
121
+ - **Escape**: Close popup or shape picker
122
+
123
+ To select a DOM element for annotation, double-click on the canvas over that element.
116
124
 
117
125
  ## Props
118
126