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

@edclass/web-game-kit

v0.1.3

Published

EDClass HTML5 game SDK — EDG1 wire codec, typed content, round state, simulator transport

Readme

@edclass/web-game-kit

The EDClass HTML5 game SDK — the typed boundary between your game and the EDClass platform: the EDG1 wire codec, answer-free content parsing, command lifecycle, round state, and an in-process simulator for offline development.

It is not a game engine, a renderer, or a UI library — bring your own (three.js, Phaser, canvas, plain DOM). It has no rendering dependency, never touches the DOM, and never opens a network connection.

Install

npm install @edclass/web-game-kit

Ships as dist/ with full TypeScript declarations. No EDClass source, no credentials, no platform dependency. MIT licensed.

Quick start

import { GameSession, SimulatorTransport } from '@edclass/web-game-kit'

// The simulator plays the server's role, so it holds the answers.
// Content delivered to a real game is answer-free by construction.
const session = new GameSession(
  new SimulatorTransport({
    questions: [
      {
        questionId: 'q1',
        questionType: 'mcq',
        title: 'Capital of France?',
        body: 'Pick one.',
        choices: [
          { id: 'a', label: 'Paris', isAnswer: true, marking: 1 },
          { id: 'b', label: 'Lyon' },
        ],
      },
    ],
  }),
)

const content = await session.waitForContent() // INIT — render nothing before this
const result = await session.submitAnswer('q1', ['a'])
console.log(result.status, result.feedback?.isCorrect)
await session.complete()
session.dispose()

The simulator is also importable on its own: import '@edclass/web-game-kit/testing'.

What you get

  • GameSession — the run lifecycle: waitForContent, submitAnswer / submitFillingAnswer / submitDndAnswer, retry, forfeitQuestion, reportCheckpoint, complete, reportFatal, dispose.
  • SimulatorTransport — a full in-process server: validates your content, enforces the one-answer lock, and marks with real per-draggable weights, so games are testable without mocks.
  • parseGameContent and the typed, answer-free GameContent / GameQuestion models (mcq, filling, dnd, …).
  • RoundState — optional question sequencing and per-question resolution tracking.
  • encodeWireFrame / decodeWireFrame — the deterministic EDG1 codec.

Documentation

The full integration kit — the build-a-game guide, the EDG1 protocol reference, and the avatar-rendering guide — is delivered separately as the documentation kit (edclass-web-game-kit-docs-<version>.zip). Ask your EDClass contact for it. Start with the kit-integration guide, then the protocol reference.

License

MIT — see LICENSE.