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

@cybercussion/scobot

v5.1.1

Published

Modern, Native JavaScript SCORM (1.2/2004) Library

Downloads

330

Readme

SCOBot - Modern SCORM Library

CI Version License

logo

Overview

SCOBot 5 is a modernized, native JavaScript library for SCORM 1.2 and 2004 (2nd, 3rd, 4th Edition). It simplifies the complexity of the SCORM Run-Time Environment (RTE) by providing a robust, object-oriented interface for content developers.

Key Features:

  • Modern Syntax: Written in ES6+ (Classes, Modules).
  • Module Support: First-class support for generic bundlers (Vite, Webpack, Rollup) and native <script type="module">.
  • SCORM Polyfill: Automatically bridges SCORM 1.2 calls to 2004 syntax, allowing you to write one codebase for multiple standards.
  • Local Persistence: Built-in Mock LMS with localStorage persistence for developing offline or without an LMS.
  • Data Compression: Optional integration with lz-string to compress suspend_data, maximizing storage limits.

Installation

Method 1: NPM / Bundlers

npm install @cybercussion/scobot
import { SCOBot } from '@cybercussion/scobot';

Method 2: Browser (Script Tag)

Use the production-ready UMD bundle.

<script src="dist/scobot.umd.cjs"></script>
<!-- Exposes global: SCOBot -->

Quick Start

Check out the index.html file in the root directory for a complete, working boilerplate.

// 1. Initialize
const scobot = new SCOBot({
    debug: true,             // Enable console logging
    use_standalone: true,    // Failover to Mock API if no LMS found
    compression: true,       // Compress data to save space
    exit_type: "suspend"     // Default exit behavior
});

// 2. Connect
if (scobot.initialize() === 'true') {
    console.log("Connected to LMS (or Mock)!");
}

// 3. Set Data (Uses SCORM 2004 syntax)
scobot.setvalue('cmi.score.scaled', '0.9');
scobot.setvalue('cmi.location', 'slide_5');
scobot.setvalue('cmi.suspend_data', JSON.stringify({ bookmarks: [1, 5, 8] }));

// 4. Save & Exit
scobot.commit();
scobot.terminate();

Developer Guide

For detailed instructions, architecture info, and advanced configuration, see the Developer Usage Guide.


Project Structure

  • src/: Source code (ES Modules).
  • dist/: Compiled production bundles (ESM and UMD).
  • tests/: Unit tests via Vitest.
  • schemas/: Original SCORM XML schemas (XSD/DTD).

Development

To contribute or modify the library:

  1. Clone & Install

    git clone https://github.com/cybercussion/SCOBot.git
    cd SCOBot
    npm install
  2. Run Dev Server

    npm run dev
  3. Run Tests

    npm test
  4. Build

    npm run build

License

CC-BY-SA-4.0 Copyright (c) 2009-2026 Cybercussion Interactive, LLC.

This library is free to use for personal and commercial projects under the Creative Commons Attribution-ShareAlike 4.0 International License.