npm install pura-ai-script
import { PuraAIScript } from "pura-ai-script";
<PuraAIScript apiKey="YOUR_API_KEY" />;
-
apiKey
(required): Your Pura AI API key -
container
(optional): CSS selector for script injection (default: 'body')
- Prevents duplicate script loading
- Works with vanilla JavaScript and React
- Supports custom container selection
- Easy script removal
MIT