grab 0.0.97 → 0.0.98

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
@@ -6,13 +6,13 @@
6
6
 
7
7
  Select context for coding agents directly from your website
8
8
 
9
- How? Point at any element and it'll send the file name, React component, and HTML source code.
9
+ How? Point at any element and press **⌘C** (Mac) or **Ctrl+C** (Windows/Linux) to copy the file name, React component, and HTML source code.
10
10
 
11
11
  It makes tools like Cursor, Claude Code, Copilot run up to [**3× faster**](https://react-grab.com/blog/intro) and more accurate.
12
12
 
13
13
  ### [Try out a demo! →](https://react-grab.com)
14
14
 
15
- https://github.com/user-attachments/assets/fdb34329-b471-4b39-b433-0b1a27a94bd8
15
+ ![React Grab Demo](https://github.com/aidenybai/react-grab/blob/main/packages/website/public/demo.gif?raw=true)
16
16
 
17
17
  ## Install
18
18
 
@@ -22,6 +22,22 @@ Run this command to install React Grab into your project. Ensure you are running
22
22
  npx grab@latest init
23
23
  ```
24
24
 
25
+ ## Usage
26
+
27
+ Once installed, hover over any UI element in your browser and press:
28
+
29
+ - **⌘C** (Cmd+C) on Mac
30
+ - **Ctrl+C** on Windows/Linux
31
+
32
+ This copies the element's context (file name, React component, and HTML source code) to your clipboard ready to paste into your coding agent. For example:
33
+
34
+ ```js
35
+ <a class="ml-auto inline-block text-sm" href="#">
36
+ Forgot your password?
37
+ </a>
38
+ in LoginForm at components/login-form.tsx:46:19
39
+ ```
40
+
25
41
  ## Manual Installation
26
42
 
27
43
  If you're using a React framework or build tool, view instructions below:
@@ -124,7 +140,9 @@ if (process.env.NODE_ENV === "development") {
124
140
 
125
141
  React Grab can send selected element context directly to your coding agent. This enables a workflow where you select a UI element and an agent automatically makes changes to your codebase.
126
142
 
127
- This means **no copying and pasting** - just select the element and let the agent do the rest. [Learn more →](https://react-grab.com/blog/agent)
143
+ This means **no copying and pasting** - just select the element and let the agent do the rest. [Read more about coding agent integration →](https://react-grab.com/blog/agent)
144
+
145
+ > **Click to expand** setup instructions for your coding agent:
128
146
 
129
147
  <details>
130
148
  <summary><strong>Claude Code</strong></summary>