Step 2: Load the SDK (CDN or npm)
⏱ 3 minLoad Transcodes once per app: HTML / CDN (webworker.js) or @bigstrider/transcodes-sdk with init({ projectId }). Both expose the same modal and token APIs.
Option A — HTML / CDN
Authentication Toolkit (passkeys, step-up MFA, audit):
index.html
<script
type="module"
src="https://cdn.transcodes.link/{YOUR_PROJECT_ID}/webworker.js"
></script>Replace {YOUR_PROJECT_ID} with the Project ID from the Transcodes Console.

After load, use the global transcodes object (window.transcodes).
Option B — npm
Install once, then call init at your client entry (no webworker.js script tag).
npm install @bigstrider/transcodes-sdkimport { init } from '@bigstrider/transcodes-sdk';
await init({ projectId: 'YOUR_PROJECT_ID' });Use named exports for modals and APIs (e.g. openAuthLoginModal, on, trackUserAction) — not window.transcodes. See Quick Integration for React, Next.js, Vue, and Vanilla examples.
Framework guides
| Stack | Guide |
|---|---|
| React | React |
| Next.js | Next.js |
| Vue | Vue |
| Vanilla | Vanilla JS |
Verify (CDN path)
In the browser console:
console.log(transcodes);
// e.g. openAuthLoginModal, token, on, trackUserAction, …SDK is ready. Continue to Step 3: Open the login modal.
Last updated on