Blozet V1 documentation

Create a workspace, connect your application backend, and publish and watch your first authenticated live session. Find setup guides and validation status for each Blozet V1 feature.

Quickstart

Use desktop Chrome or Chromium with WebTransport and WebCodecs. You need a camera and microphone, two isolated browser profiles, an application backend that can authenticate users, and configured Blozet control and media endpoints for the same environment.

1. Create a workspace and project

  1. Register a Consumer workspace, verify the owner email using the code in your inbox, and sign in.
  2. Open Projects, choose New project, and select the environment for this integration.
  3. Open the project and go to Credentials. Add an Ed25519 public key and complete email OTP verification. You can import your own public key or generate a pair in the Console. Store the PKCS#8 private key only in your application backend.
  4. Record the Consumer ID, Project ID, and credential Key ID (ck_…). In your application, authorize one user to publish and a second user to view the resulting session. The viewer must have access to that specific Session ID.

2. Configure the backend token issuer

Use the server SDK in Node.js. Install the @blast/server-sdk tarball supplied for your environment. This example uses the repository's 0.5.3 artifact. The Server SDK repository describes the signing methods and requires repository access if it is restricted.

npm install ./blast-server-sdk-0.5.3.tgz

Create one signer per configured credential. Load the IDs and private key from server configuration. The two functions below accept a user ID that your backend has already authenticated and authorized.

import { readFileSync } from "node:fs";
import { Blast } from "@blast/server-sdk";

const blast = new Blast({
  consumerId: process.env.BLAST_CONSUMER_ID,
  projectId: process.env.BLAST_PROJECT_ID,
  keyId: process.env.BLAST_KEY_ID,
  privateKey: readFileSync(process.env.BLAST_PRIVATE_KEY_FILE, "utf8"),
});

function signPublisher(userId) {
  return blast.createInitialToken({ userId, sessionType: "broadcast" });
}

function signViewer(userId, sessionId) {
  return blast.createViewerJoinToken({ userId, sessionId });
}

Connect the signer to these protected POST routes on your application backend. Requests carry your application session bearer in Authorization, JSON, and X-Blast-Token-Api-Version: 1. Permit your frontend origin and those headers in CORS. Return token, expiresAt (Unix seconds), and intentId (the request's intent_id).

/api/sdk-tokens/publisher
Accept intent_id and optional externalSessionId or maxDurationSeconds. Check publish rights in the configured workspace and project before signing.
/api/sdk-tokens/viewer
Accept intent_id and sessionId. Check the authenticated user's access to that session before signing.
/api/sdk-tokens/reconnect
Accept intent_id, sessionId, participantId, and role. Verify access and participant ownership, then call createReconnectToken() for publishers or createViewerReconnectToken() for viewers.

Derive the user and project from your verified session and configuration. Reuse the original outcome for a retry of the same intent within its validity window. See the reference issuer for request validation, authorization and idempotency.

Give sdk.authenticate() the bearer from your application's sign-in. The SDK then calls the issuer routes for signed SDK tokens. The Console login and its API credentials serve workspace management and backend setup.

3. Set up the browser SDK

Add this line to .npmrc and authenticate to GitHub Packages with a package-read credential kept outside source control.

@luongducquyen:registry=https://npm.pkg.github.com/

Install the pinned version and copy its assets into the directory your app serves at /blast-live/. The example assumes public/ is your static root.

npm install --save-exact @luongducquyen/[email protected]
node --input-type=module -e "import { cpSync } from 'node:fs'; cpSync('node_modules/@luongducquyen/blast-live-sdk/dist/assets', 'public/blast-live', { recursive: true });"

Use the same version for the JS, worker, and WASM. Set assetsBaseUrl: "/blast-live/", serve WASM as application/wasm, and set Cross-Origin-Opener-Policy: same-origin and Cross-Origin-Embedder-Policy: require-corp. Check that window.crossOriginIsolated is true.

In BlastLive.create(), set consumerOrigin to your application issuer, workerOrigin to the Blozet control endpoint, and trustedRuntimeOrigins to the HTTPS media origins provided for your environment. Use the publisher and viewer TypeScript examples for SDK initialization and lifecycle code.

4. Publish and watch your first live session

  1. Open the publisher UI, sign in to your application, and authenticate the SDK with the publisher's bearer. Allow camera and microphone, start publishing from a click, and copy the live sdk.state().publisher.sessionId.
  2. In a separate browser profile or private window, sign in as the authorized viewer and authenticate a fresh SDK instance. Pass the Session ID and a fresh canvas to sdk.viewer.watch(sessionId, canvas) from a click.
  3. Confirm the viewer sees moving video and hears audio. Leave in the viewer, stop in the publisher, and destroy both SDK instances when done.

The live playground follows the same sequence when its issuer and media runtime are configured. Use the application bearer for that environment. If the demo says it is unavailable, use your configured integration to run the steps.

Architecture and access

Application backend and server SDK
Authenticate your application's users, issue access tokens scoped to the intended role and session, and verify incoming chat webhooks. Store private signing keys and backend credentials on the server.
Control service
Handles admission, authorization, reconnect, and session lifecycle. A viewer needs both access to the session and its Session ID.
Media runtime
Receives H.264 video and Opus audio from the publisher and delivers the live stream to authorized viewers over WebTransport.
Browser SDK
Manages camera and microphone, local preview, live playback, chat, and local HLS recording in the browser.

Use HTTPS and system certificate trust in deployed environments. The local development profile allows loopback origins and has an optional development certificate pin for the local media endpoint. Keep tokens, keys, and passwords out of public build variables.

Live streaming

Publish from camera and microphone, preview locally, and toggle tracks during a session. Viewers can join, leave, or reconnect with the appropriate authorization. The V1 plan covers configurable and adaptive video quality within equipment and project policy limits.

  • Start with sdk.publisher.start(), read the live Session ID, and stop with sdk.publisher.stop().
  • Use sdk.viewer.watch(sessionId, canvas) with a fresh canvas for each watch, then call sdk.viewer.leave() before disposal.
  • Call sdk.destroy() when removing the integration. Keep the publisher preview and viewer playback as separate UI states.

Verified in Chrome smoke testing. On 22 November 2026, browser SDK 0.5.12 passed start, join, leave, and stop at 1080p30 with a camera fixture and a remote media runtime. The quickstart pins 0.5.14. The cited run applies to 0.5.12. Full profile, capacity, and release qualification remain open.

Developer Console

  1. Register a Consumer workspace and verify the owner email with the verification code.
  2. Create a project for the intended environment and configure its session policies and features.
  3. Manage project credentials and end-user identities. Credential changes can require OTP verification. Keep the credential's private key with the application backend.
  4. Inspect sessions and rooms from the project view. Updates to settings and certain metadata require the current revision and appropriate role.

Recover your sign-in

From sign-in, open Forgot password? and enter the exact email registered to the workspace, including any plus alias. Use the newest six-digit code sent to that address within 10 minutes. Set a new password and sign in again.

Manage access and rotate credentials

Owners and admins can create projects and manage credentials. Roles and access are enforced for each workspace and project. Diagnostics require an owner or admin. If a control is unavailable, ask a workspace admin to check your role and project access.

Open the current credential, choose Rotate credential, and confirm the replacement with email OTP. Deploy the new Key ID and matching private key to your backend and verify that it can issue tokens. Revoke the old credential separately after the replacement is working.

Verified on staging in CW-15. The 6 November 2026 browser checks covered sign-in, projects, settings revisions, end users, reporting UI, and credential creation. Workspace verification and credential creation used real email OTP. A separate staging run confirmed delivery of the redesigned password-reset email. Reset followed by a new sign-in is still unverified for that run.

Open Projects

Chat and webhooks

V1 scope includes participant-authorized text messages, history, replay after reconnect, moderation, delivery receipts, and webhooks.

  1. Request chat admission from your backend for the current Session ID, participant, and role, then connect using sdk.chat.connectChat().
  2. Enable send when state.canSend is true. Assign a clientMessageId to each new message. If the outcome is unknown, retry the same ID to avoid duplicate messages.
  3. Handle chat errors and disconnects within the chat UI so the live stream can continue. On the server, verify webhook signatures and handle repeat deliveries idempotently.

Chat UI verified with a fixture. The recorded real-transport attempt returned HTTP 403 at admission. Real send and receive, recovery, webhook delivery under failures, and isolation from media under load remain open.

Read the chat integration example

Local HLS recording

  1. In your integration, start a video session with recordHls: true. The hosted playground starts with recording disabled.
  2. Await sdk.publisher.stop() so the recorder can finalize the playlist. Handle finalization errors before offering playback or export.
  3. Use sdk.hls.list() and choose a finalized recording that contains segments. Use sdk.hls.play(video, recording.id) to replay or sdk.hls.export(recording.id) to retrieve the playlist and segments.

Recordings live in OPFS for the publisher's browser profile and origin. Use the same profile and origin to reopen them. To share a recording, export it and handle distribution in your application.

Capture, finalization, and replay verified in Chrome smoke testing. The SDK 0.5.12 run finalized and replayed eight segments. The completion plan still calls for storage-pressure and cleanup checks.

Read the HLS integration example

Operational reports

Use Reports for session and room lifecycle, viewer joins and reconnects, watch time, concurrency, media quality, errors, usage, and quotas. Choose an environment and UTC date range, then narrow by project and session as needed.

The display timezone changes timestamps shown to the reader. Read the metric's data state, coverage, and freshness alongside the value. An unavailable source and a measured zero have different meanings.

Read a report value

  • Measured zero: A fresh viewer-join count of 0 means the source measured zero joins within the selected scope and period.
  • Partial: A watch-time total with incomplete coverage describes the covered data. Check coverage before comparing it with another period.
  • Stale: Check the snapshot time and watermark to see how far the pipeline has processed data.
  • Unavailable: The source cannot provide a usable value for the requested scope. Use the dashboard's stated reason when investigating.

P0 integration verified locally. Staging CW-15 also exercised the Reports UI. Reconciliation of source events, API results, and dashboard values, plus pipeline load and telemetry overhead, remain open for release.

Open Reports

Troubleshooting

The SDK fails before camera preview
In Chrome DevTools, check window.isSecureContext and window.crossOriginIsolated. Inspect the page response for COOP/COEP and check the worker/WASM requests for successful responses and correct MIME types. Confirm the page and all SDK assets came from the same version.
Token request returns HTTP 401 or 403
For 401, sign in again to refresh the application bearer. For 403, check the user role, project environment, and exact Session ID in the issuer. If token issuance succeeds but admission fails, check that the backend signing key matches the credential Key ID in that project.
A viewer cannot join or the SDK reports BUSY
Check that the publisher is live. Copy its current Session ID and confirm the viewer is authorized for that session. Use a separate browser profile or private window if another SDK instance holds the origin lock.
Chat admission returns HTTP 403 while video works
Verify that chat is enabled for the project and that its admission request uses the current Session ID, participant and role. Check the chat grant and expiry separately from media admission.
A recording is missing after reload
Open the same browser profile and origin. Check that recording was enabled and that stop completed finalization. Consult the recorder state before offering play or export.
A reset code is invalid or expired
Compare the email on the form with the recipient of the latest reset message. Request a fresh code after the resend cooldown and use it within 10 minutes.

Release status and limits

The full Blozet V1 production release is pending qualification. The Linux target passed control and clock qualification on 19 November 2026. Local component checks, staging checks, and remote-runtime smoke tests each apply to their recorded build and environment.

Still in validation

  • Media profile coverage across 720p and 1080p at 30 and 60 FPS, concurrent viewer capacity, and long-running stability.
  • Chat transport, recovery and webhook delivery under failures and load, and isolation from live media.
  • HLS storage pressure and cleanup, reporting P0 reconciliation and load, and release canary and rollback.
  • Browser and device coverage outside the desktop Chrome/Chromium baseline, including Safari, Firefox, iOS, and Android.

The release plan allows a limited canary with chat disabled while its qualification is open. Published viewer capacity and production availability depend on the completed workload and soak tests.

Outside the V1 scope

Video and audio calling, WebRTC/SFU, server-side transcoding, cloud recording and HLS CDN delivery, multi-region active-active, billing, and AI moderation.