Skip to main content

NPM (React/Next.js/Vite)

npm install sidenetai-sdk
import { initSidenet } from 'sidenetai-sdk';

initSidenet({
  orgId: 'your-org-id',
  copilotId: 'your-copilot-id',
});

CDN (Static sites, WordPress, vanilla JS)

<script src="https://unpkg.com/sidenetai-sdk@latest/dist/sidenetai-sdk.standalone.umd.js"></script>
<script>
  Sidenet.initSidenet({
    orgId: 'your-org-id',
    copilotId: 'your-copilot-id',
  });
</script>
The standalone bundle (~13MB uncompressed, ~2.8MB gzipped) includes React and all dependencies. Use the NPM package if you already have React.