pura-ai-script

1.1.2 • Public • Published

Pura AI Script

Installation

npm install pura-ai-script

Usage

React / Next.js

import { PuraAIScript } from "pura-ai-script";

<PuraAIScript apiKey="YOUR_API_KEY" />;

API

PuraAIBot Class

Constructor Options

  • apiKey (required): Your Pura AI API key
  • container (optional): CSS selector for script injection (default: 'body')

Features

  • Prevents duplicate script loading
  • Works with vanilla JavaScript and React
  • Supports custom container selection
  • Easy script removal

License

MIT

Package Sidebar

Install

npm i pura-ai-script

Weekly Downloads

544

Version

1.1.2

License

MIT

Unpacked Size

1.32 kB

Total Files

4

Last publish

Collaborators

  • anoopmohan