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

@zzish/sdk-js

v0.5.11

Published

SDK for Zzish API

Readme

@zzish/sdk-js

JavaScript SDK for the legacy Zzish / Quizalize API.

This package is the canonical source for the shared zzish.js client used by Quizalize services. It supports both current server-side CommonJS usage and legacy browser pages that expect a global window.zzish object.

Consumers

Current active consumers should depend on this package through npm:

  • quizalize
  • quiz-player
  • quiz-player-v2
  • spitafields

Some older applications still serve /lib/zzish.js directly in the browser. Those files must be generated from this package or checked against this package by CI. They must not become independent source files.

Supported module shapes

CommonJS:

const zzish = require("@zzish/sdk-js");
zzish.init({ api: "APP_ID", baseUrl: "api.quizalize.com/" });

Browser global:

<script src="/lib/zzish.js"></script>
<script>
  window.zzish.init({ api: "APP_ID" });
</script>

Important compatibility contracts

These behaviours are covered by tests and should not be changed casually:

  • postContent(profileId, type, uuid, meta, tags, content, callback) remains supported for legacy 7-argument callers.
  • postContent(profileId, type, uuid, meta, content, callback) remains supported for modern 6-argument callers and must not overwrite existing tags.
  • stopActivityWithObjects(activityId, parameters, callback) preserves parameters.activityDefinition.type; this avoids null xAPI definition types hitting strict Spring Data 4 finder behaviour in zzish-api.
  • logActions supports both legacy 4-argument and modern 5-argument forms.
  • Node/CommonJS import must work without relying on each consumer app to declare this package's runtime transport dependency.

Development

Install dependencies:

npm install

Run contract tests:

npm test

Check package contents before publishing:

npm pack --dry-run

Publishing rule

Do not republish an existing version. Bump the package version for every SDK change, publish to npm, then update consumers one at a time with their lockfiles and smoke tests.

Rollback is a consumer-side package pin revert. Do not unpublish or overwrite a published npm version.