React Grab
react-grab
Select context for coding agents directly from your website
Utilities
agent
context
grab
react
react-grab
Utilities
javascript
npm
frontend
open source
Stars
7.6k
Weekly
1.1M
Open issues
155
Bundle
~25 kB
Installation
npm install react-grabCode example
import { useGrab } from "react-grab";
export function Example() {
const value = useGrab();
return <p>{String(value)}</p>;
}Pros & cons
Pros
- Actively maintained by Aiden Bai
- 1.1M weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~25 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 155 open issues on GitHub