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

buzzcasting-utils

v1.14.2

Published

Shared types, constants, and helper functions for the BuzzCasting front-end stack — consumed by `buzzcasting-app`, `buzzcasting-storage`, and every tenant repo (`admo`, `aramco`, `axa`, `axagroup`, `bayer`, `chanel`, `cplus`, `ksa-moh`, …). This package h

Readme

buzzcasting-utils

Shared types, constants, and helper functions for the BuzzCasting front-end stack — consumed by buzzcasting-app, buzzcasting-storage, and every tenant repo (admo, aramco, axa, axagroup, bayer, chanel, cplus, ksa-moh, …). This package has no components and no runtime state of its own; it's the shared vocabulary the rest of the stack is built on.

BuzzCasting Social Media Wall & Dataviz — more info.

What's in here

src/
├── interfaces/   TypeScript interfaces — every data shape moved between the backoffice API, storage, and the UI
├── enums/        API, CSS, EVENTS, MODERATION, ShapeType, STORAGE — shared string constants
└── utils/        small, mostly-pure helper functions (JSON↔HTML conversion, id generation, logging, formatting, ...)

All three are re-exported from the package root:

import { IQuery, IResponse, ISeries } from 'buzzcasting-utils'   // interfaces
import { API, CSS, EVENTS, STORAGE } from 'buzzcasting-utils'    // enums
import { html2json, json2html, uniq, log, hashSum } from 'buzzcasting-utils' // utils

Documentation

docs/ is typedoc-generated API reference (regenerated by npm run docs, overwritten every time — don't hand-edit it). Hand-written architecture guides live in documentation/ instead:

  • documentation/architecture.md — the three folders, what each shared enum's real job is, and why the Window.__bc type this package declares isn't the real shape (buzzcasting-app's own, much richer one is).
  • documentation/html-json-conversion.md — html2json/json2html (window.__bc.h2j/.j2h), the algorithm behind how a slide's builder-authored JSON round-trips to real HTML.
  • documentation/type-inconsistencies.md — where a declared type disagrees with how it's actually used at runtime (most importantly ISeries.items), and which of several overlapping "same concept" interfaces (response envelopes, layout trees) is the one that actually matters.
  • documentation/known-issues.md — confirmed bugs (e.g. rtl()/dir() disagreeing about Malayalam) and utility functions that have been forked and quietly diverged elsewhere in the stack (flatten, intToString, sendEvent).
  • documentation/release-process.md — npm run release bumps/tags/pushes locally, but the actual npm publish now happens in CI on that tag push (via npm Trusted Publishing/OIDC, no stored token) - what to do if a release run fails.

Development

npm run dev            # vite dev server
npm run build           # tsc && vite build -> dist/
npm test                # vitest --run
npm run test:watch
npm run test:coverage
npm run lint             # eslint . --fix
npm run docs             # regenerate docs/ (typedoc)
npm run release         # bump version, changelog, tag, push - CI publishes to npm

Git Clone

git clone https://github.com/TouchFlows/buzzcasting-utils.git
cd buzzcasting-utils
npm install

License

This template was created under the MIT License.