Skip to main content
Userplane offers two integration paths depending on how much control you need. Most teams start with the embed script and add the npm SDK later if they need programmatic control.

Embed script (zero-code)

The embed script is a single <script> tag you add to your site. It handles everything automatically — loading the recorder, parsing recording links, and managing cross-tab state.
This is the recommended starting point. It works with any site and requires no build step. See Installation for setup instructions.

npm SDK (programmatic)

The @userplane/sdk package gives you a JavaScript API for full control over the recording lifecycle. Use it when you need to:
  • Trigger recordings from your UI — open the recorder from a button, menu, or support widget instead of relying on link clicks.
  • Attach metadata — send user IDs, account info, feature flags, or session context alongside recordings so your support team has full context.
  • Query recording state — check whether a recording is active, get the session ID, or read connection status to build custom UI.

Userplane SDK on npm

Choosing the right path

You can use both together. The embed script handles the baseline, and the SDK adds programmatic capabilities on top.

Framework guides

For framework-specific installation instructions, see the guide for your stack:

React

Next.js

Vue

Nuxt

Angular

SvelteKit

Astro

TanStack Start

Static HTML

Next steps