{"repo":"aidenybai/react-grab","free":true,"listed":false,"github":"https://github.com/aidenybai/react-grab","clone":"git clone https://github.com/aidenybai/react-grab.git","description":"Copy any UI element for your agent","language":"TypeScript","stars":7537,"topics":["ai","coding","react","react-grab"],"license":"MIT","category":"cli-tools","readme_excerpt":"React Grab Copy any UI element for your agent. React Grab points agents to the actual source behind each selection. Agents are 2× faster and more accurate when using React Grab. Website → Quick Start Run this at your project root: How It Works React Grab turns a browser selection into source context your agent can use: 1. Hover any UI element in your app. 2. Press ⌘C or Ctrl+C . 3. Paste the copied context into your agent. The copied context includes the selected element and its component stack with source locations: Manual Installation If you cannot use the CLI, install React Grab manually for your framework: Next.js (App router) Add this inside your app/layout.tsx : Next.js (Pages router) Add this into your pages/ document.tsx : Vite Add this at the top of your main entry file (e.g., src/main.tsx ): Webpack First, install React Grab: Then add this at the top of your main entry file (e.g., src/index.tsx or src/main.tsx ): Build your own React Grab Build a custom interface with the selection engine from react-grab/primitives . Use its APIs for hit testing, source context, page freezing, clipboard access, and editor navigation. Customize hit testing Scope hit testing to a container or replace the default element filter with your own rules. Add data-react-grab-ignore to your picker interface so hit testing skips its subtree. Resources & Contributing Back Want to try it out? Check out our demo. Looking to contribute back? Check out the Contributing Guide. Want to talk to the com","default_branch":null,"files":null,"tree":[],"storefront":"/r/aidenybai","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/aidenybai/react-grab/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}