Registry / storage / buzzcasting-storage

buzzcasting-storage

JSON →
library3.21.2jsnpmunverified

BuzzCasting Storage is a wrapper class for integrating multiple browser storage backends (Local Storage, Session Storage, IDB Keyval, Dexie, Window object) with the BuzzCasting social media wall and dataviz platform. Current stable version 3.21.2. Designed to simplify API calls and data caching for BuzzCasting subscribers, it includes broadcast communication via BroadcastChannel for worker integration. Ships TypeScript types. Limited to the BuzzCasting ecosystem; not a general-purpose storage library.

npm install buzzcasting-storage
INSTALL
IMPORT
SIG · BUZZCASTING-STORAG
B
buzzcasting-storage
storagejavascriptv3.21.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default (BuzzCastingStorageManager)
✓ import BuzzCastingStorageManager from 'buzzcasting-storage'
✗ const BuzzCastingStorageManager = require('buzzcasting-storage')
ESM-only package; default export is named class.
IStorageManager
✓ import { IStorageManager } from 'buzzcasting-storage'
✗ import { StorageManager } from 'buzzcasting-storage'
TypeScript interface exported as named export.
IMessages
✓ import { IMessages } from 'buzzcasting-storage'
TypeScript interface for message data.
IQuery
✓ import { IQuery } from 'buzzcasting-storage'
TypeScript interface for query parameters.

Initializes the storage manager with options, fetches messages for a widget, and listens for updates via BroadcastChannel.

import BuzzCastingStorageManager, { IStorageManager, IQuery, IMessages } from 'buzzcasting-storage'; const options: IStorageManager = { app: 'my-subdomain', version: 'v4', token: process.env.BUZZCAST_TOKEN ?? '', bearer: process.env.BUZZCAST_BEARER ?? '', storage: 'dexie', moderation: 'none', beforeTime: null, delay: 0, period: 0, }; const manager = new BuzzCastingStorageManager(options); const query: IQuery = { type: 'messages', dashboard: 'dashboard_id', widget: 'widget_id', }; const data: IMessages = manager.getMessages(query); console.log('Messages:', data); const channel = new BroadcastChannel('my-subdomain'); channel.onmessage = (event: MessageEvent) => { if (event.data.event === 'widget-update') { console.log('Widget updated:', event.data.data); } };
Debug
Known issues
gotchaThe token field is referred to as 'meta' in examples but actually expects a string.
fix
Pass the actual token value (e.g., from environment variable).
affects: >=3.0.0
gotchaIQuery.beforeTime expects null or a Date object; passing a string may break.
fix
Use null or new Date().
affects: >=3.0.0
Errors
Common errors & fixes
TypeError: Cannot read properties of undefined (reading 'getMessages')
Storage manager not instantiated correctly (missing new or wrong import).
fix
Use: import BuzzCastingStorageManager from 'buzzcasting-storage'; const manager = new BuzzCastingStorageManager(options);
Module not found: Can't resolve 'buzzcasting-storage'
Package not installed or bundler misconfiguration.
fix
Run: npm install buzzcasting-storage
Upgrade
Version history
3.21.2latest on npm
Audit
Dependencies
idb-keyvaloptionaloptional IndexedDB storage backend
dexieoptionaloptional IndexedDB storage backend
Agent activity
39 hits · last 30 days
node
32
OpenAI (training)
1
Resources
buzzcasting-storage — npm install buzzcasting-storage · libregistry