npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

jppol-audio-platform-web-sdk

v1.2.0

Published

Install package:

Readme

JPPOL Audio Platform (Web Analytics SDK)

Install

Install package:

npm install jppol-audio-platform-web-sdk

Import and initiate

Import the createAnalytics from.

import { createAnalytics } from 'jppol-audio-platform-web-sdk'

Create global analytics instance.

const analytics = createAnalytics({
	// Config
})

Create sessions with relevant meta data.

analytics.createSession(<HTMLAudioElement>, {
	// Session
})

Create embed session with relevant meta data. Basic details are fetched via the API.

analytics.createEmbedSession(<HTMLIFrameElement>, {
	// Session without 'program_id', 'clip_id' & 'clip_name'.
})

Types

type Config = {
	env: 'test' | 'production'
	org: string // The organisation.
	brand: string // The brand.
	client: string // ID of the app or web-site (source in Omny).
	client_version: string // The version of the app or web-site.
	apiKey: string // Key used to sign the request.
	// OPTIONALS
	user_agent?: string | null // For web sites, the user agent of the browser. (nullable)
	os?: string | null // The operating system of the device. (nullable)
	os_version?: string | null // The operating system version. (nullable)
	device_model?: string | null // For apps, the device model. (nullable)
}

type Session = {
	program_id: string // The Omny ID of the program (aka podcast).
	clip_id: string // The Omny ID of the clip (aka podcast episode).
	clip_name: string // For convenience when exploring data.
	was_restricted: boolean // Whether the episode had restricted access in Omny Studio at the time of playback (true = restricted, false = public access).
	// OPTIONALS
	article_id?: string | null // The CUE ID where the episode was played. (nullable)
	referrer?: string | null // The referrer typical if there is no article_id, can be url or name of referrer. (nullable)
	referrer_id?: string | null // If there is an id for an external system connected to the referral, it can be stored in this field. (nullable)
	sso_id?: string | null // The MedieLogin ID of the user. (nullable)
	anon_id?: string | null // An anonymous ID of users not logged in. (nullable)
	auth_reason?: string | null // How the user had access to the product. (nullable)
}