react-grab 0.0.59 → 0.0.61

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
@@ -19,10 +19,7 @@ It makes tools like Cursor, Claude Code, Copilot run up to [**66% faster**](http
19
19
  Get started in 1 minute by adding this script tag to your app:
20
20
 
21
21
  ```html
22
- <script
23
- src="//www.react-grab.com/script.js"
24
- crossorigin="anonymous"
25
- ></script>
22
+ <script src="//www.react-grab.com/script.js" crossorigin="anonymous"></script>
26
23
  ```
27
24
 
28
25
  If you're using a React framework or build tool, view instructions below:
@@ -121,6 +118,56 @@ if (process.env.NODE_ENV === "development") {
121
118
  }
122
119
  ```
123
120
 
121
+ ## Coding agent integration (beta)
122
+
123
+ 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.
124
+
125
+ This means **no copying and pasting** - just select the element and let the agent do the rest.
126
+
127
+ ### Claude Code
128
+
129
+ #### Server Setup
130
+
131
+ The server runs on port `4567` and interfaces with the Claude Agent SDK. Add to your `package.json`:
132
+
133
+ ```json
134
+ {
135
+ "scripts": {
136
+ "dev": "npx @react-grab/claude-code && next dev"
137
+ }
138
+ }
139
+ ```
140
+
141
+ #### Client Setup
142
+
143
+ ```html
144
+ <script src="//unpkg.com/react-grab/dist/index.global.js"></script>
145
+ <!-- add this in the <head> -->
146
+ <script src="//unpkg.com/@react-grab/claude-code/dist/client.global.js"></script>
147
+ ```
148
+
149
+ ### Cursor CLI
150
+
151
+ #### Server Setup
152
+
153
+ The server runs on port `5567` and interfaces with the `cursor-agent` CLI. Add to your `package.json`:
154
+
155
+ ```json
156
+ {
157
+ "scripts": {
158
+ "dev": "npx @react-grab/cursor && next dev"
159
+ }
160
+ }
161
+ ```
162
+
163
+ #### Client Setup
164
+
165
+ ```html
166
+ <script src="//unpkg.com/react-grab/dist/index.global.js"></script>
167
+ <!-- add this in the <head> -->
168
+ <script src="//unpkg.com/@react-grab/cursor/dist/client.global.js"></script>
169
+ ```
170
+
124
171
  ## Extending React Grab
125
172
 
126
173
  React Grab provides an public customization API. Check out the [type definitions](https://github.com/aidenybai/react-grab/blob/main/packages/react-grab/src/types.ts) to see all available options for extending React Grab.