react-grab 0.1.13 → 0.1.14

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
@@ -16,12 +16,38 @@ It makes tools like Cursor, Claude Code, Copilot run up to [**3× faster**](http
16
16
 
17
17
  ## Install
18
18
 
19
- Run this command to install React Grab into your project. Ensure you are running at project root (e.g. where the `next.config.ts` or `vite.config.ts` file is located).
19
+ Run this command at your project root (where `next.config.ts` or `vite.config.ts` is located):
20
20
 
21
- ```html
21
+ ```bash
22
22
  npx -y grab@latest init
23
23
  ```
24
24
 
25
+ Use the `-y` flag to skip interactive prompts:
26
+
27
+ ```bash
28
+ npx -y grab@latest init -y
29
+ ```
30
+
31
+ ## Connect to Your Agent
32
+
33
+ Connect React Grab directly to your coding agent (Cursor, Claude Code, Codex, Gemini, Amp, and more):
34
+
35
+ ```bash
36
+ npx -y grab@latest add [agent]
37
+ ```
38
+
39
+ Or connect via MCP:
40
+
41
+ ```bash
42
+ npx -y grab@latest add mcp
43
+ ```
44
+
45
+ Disconnect an agent:
46
+
47
+ ```bash
48
+ npx -y grab@latest remove [agent]
49
+ ```
50
+
25
51
  ## Usage
26
52
 
27
53
  Once installed, hover over any UI element in your browser and press:
@@ -53,7 +79,6 @@ export default function RootLayout({ children }) {
53
79
  return (
54
80
  <html>
55
81
  <head>
56
- {/* put this in the <head> */}
57
82
  {process.env.NODE_ENV === "development" && (
58
83
  <Script
59
84
  src="//unpkg.com/react-grab/dist/index.global.js"
@@ -79,7 +104,6 @@ export default function Document() {
79
104
  return (
80
105
  <Html lang="en">
81
106
  <Head>
82
- {/* put this in the <Head> */}
83
107
  {process.env.NODE_ENV === "development" && (
84
108
  <Script
85
109
  src="//unpkg.com/react-grab/dist/index.global.js"
@@ -99,15 +123,13 @@ export default function Document() {
99
123
 
100
124
  #### Vite
101
125
 
102
- Your `index.html` could look like this:
126
+ Add this to your `index.html`:
103
127
 
104
128
  ```html
105
129
  <!doctype html>
106
130
  <html lang="en">
107
131
  <head>
108
132
  <script type="module">
109
- // first npm i react-grab
110
- // then in head:
111
133
  if (import.meta.env.DEV) {
112
134
  import("react-grab");
113
135
  }
@@ -161,11 +183,11 @@ Generate an example plugin that logs when an element is selected.
161
183
 
162
184
  ## Resources & Contributing Back
163
185
 
164
- Want to try it out? Check the [our demo](https://react-grab.com).
186
+ Want to try it out? Check out [our demo](https://react-grab.com).
165
187
 
166
- Looking to contribute back? Check the [Contributing Guide](https://github.com/aidenybai/react-grab/blob/main/CONTRIBUTING.md) out.
188
+ Looking to contribute back? Check out the [Contributing Guide](https://github.com/aidenybai/react-grab/blob/main/CONTRIBUTING.md).
167
189
 
168
- Want to talk to the community? Hop in our [Discord](https://discord.com/invite/G7zxfUzkm7) and share your ideas and what you've build with React Grab.
190
+ Want to talk to the community? Hop in our [Discord](https://discord.com/invite/G7zxfUzkm7) and share your ideas and what you've built with React Grab.
169
191
 
170
192
  Find a bug? Head over to our [issue tracker](https://github.com/aidenybai/react-grab/issues) and we'll do our best to help. We love pull requests, too!
171
193