ðJavascript SDK
The javascript SDK works best with react.js and plain HTML websites (e.g. static site generators like Gatsby)
Installing in react.js websites
Run
npm i @pirat3/pirat3ai
in the root directory of your projectWrap the DOM root with
<Pirat3Context apiKey="YOUR_API_KEY"></Pirat3Context>
Installing in plain HTML websites
Paste this line in your
<body>
tag:<script src="https://cdn.pirat3.ai/pirat3ai.min.js>var apiKey="YOUR_API_KEY";runAi(apiKey);</script>
Last updated