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

whitebox-pro-server-plugin-engagement

v0.1.0

Published

Web engagement ingestion for whitebox — text reading, image viewing, video watched intervals fed into awareness.

Readme

Engagement Plugin

Captures fine-grained web engagement — reading, image dwell, video watch intervals, link clicks — from the browser SDK into the per-passport semantic memory, with Whisper/Vision content caching so /analytics/ask knows what each customer actually read and watched.

What it is

The server side of web-engagement tracking. The browser SDK (whitebox-pro-client-plugin-engagement) decides when content was genuinely engaged with — settled reading, image dwell, the video intervals actually played, a link click — and streams those events here. The plugin turns them into awareness (channel web), generating and caching the content they refer to: a video's Whisper transcript (sliced to the watched segments), an image's Vision description.

What you get

  • Engagement → memory. Every read/watch/click becomes an awareness record, weighted by how deeply it was consumed, so a fully-read paragraph outranks a skimmed heading in recall.
  • Content caching. Video transcripts and image descriptions are generated once (keyed by source URL) and reused across everyone who engages the same content.
  • Inspectable cache. List, fetch, and invalidate cached content over HTTP/MCP.

How to integrate

import { engagement } from 'whitebox-pro-server-plugin-engagement'

engagement({
  auth: { secret: process.env.WB_ENGAGEMENT_TOKEN },   // Bearer for the cache-admin endpoints
  image: { detail: 'low' },                            // OpenAI Vision detail (default 'low')
  video: { visionDetail: 'low' },                      // frame-analysis detail (default 'low')
})

Then add the browser SDK and mark up your content (data-wb-text / -image / -video / -link) — see the client plugin.

Endpoints

| method | path | auth | purpose | |---|---|---|---| | POST | /engagement/events | public (browser) | batched engagement events (sendBeacon fallback on unload); needs passport_id | | GET | /engagement/content | Bearer | list cached transcripts/descriptions (paginated) | | GET | /engagement/content/:url | Bearer | fetch one cached entry (full transcript/segments) | | DELETE | /engagement/content/:url | Bearer | invalidate; regenerated on next engagement |

Awareness

Channel web. Text, section, image and video are recorded as exposure (engagement-weighted via meta.engagement/meta.depth); a link click is an expression (active intent, not passive reading). The link's interest text comes from the anchor's label, or from the data-wb-link value when the visible text is generic.

MCP

engagement.list_content, engagement.get_content, engagement.invalidate_content.

See also