@npaw/forge-web
v10.0.2
Published
Forge Web JavaScript and WASM binding facade.
Readme
@npaw/forge-web
NPAW Forge analytics for Web and TV browsers: application sessions, video and ad analytics, network capture, autocapture, and Web Vitals, powered by the shared Forge analytics core (WASM).
Use of this package requires an active NPAW commercial agreement. See LICENSE.
Install
npm install @npaw/forge-webimport { NPAWForge, HlsjsAdapter } from "@npaw/forge-web";
const forge = await NPAWForge.create({
accountCode: "<account-code>",
appName: "Player App",
appReleaseVersion: "1.0.0",
startSessionOnInitialize: true,
});
const video = await forge.videoBuilder()
.setIdentifier("main")
.setMetadata({ title: "Episode 1", contentType: "vod" })
.setPlayerAdapter(new HlsjsAdapter(hls))
.build();A script-tag IIFE build with data-* bootstrap configuration is also
distributed for TV/browser targets without a bundler.
Documentation
Integration guides, the full adapter catalog (HTML5, Shaka, Hls.js, dash.js, Video.js, Bitmovin, THEOplayer, IMA, and more), migration notes, and troubleshooting are available from NPAW. Contact your NPAW representative or visit https://npaw.com for access and support.
