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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@scholium/cli

v1.0.0

Published

CLI tools for Scholium Curriculum Package creation and validation

Downloads

92

Readme

@scholium/cli

Command-line tools for creating and validating Scholium Curriculum Packages (.spkg).

Installation

# Run directly with npx (no install needed)
npx @scholium/cli validate my-curriculum.spkg

# Or install globally
npm install -g @scholium/cli

Commands

validate - Validate a curriculum package

Validates a .spkg or .zip curriculum package and reports any errors or warnings.

scholium validate <file> [options]

Options:

  • --json - Output results as JSON (useful for CI/CD pipelines)
  • --strict - Treat warnings as errors (exit code 1 if any warnings)
  • --quiet - Only output errors, suppress success messages

Examples:

# Basic validation
scholium validate my-curriculum.spkg

# JSON output for scripting
scholium validate my-curriculum.spkg --json

# Strict mode for CI
scholium validate my-curriculum.spkg --strict

Output:

✓ Package: my-curriculum.spkg (2.4 MB)

Stats
─────
  Modules      5
  Topics       23
  Items        245
  Flashcards   156
  Quizzes      89
  Media Files  12

2 warnings
──────────
⚠ [MISSING_EXPLANATION] at modules[1].topics[2].items[5]: MCQ is missing an explanation
⚠ [FLASHCARD_REVERSED] at modules[3].topics[0].items[2]: Flashcard may be reversed (back is shorter than front)

✓ Package is valid

inspect - Inspect package contents

View the contents and structure of a curriculum package without validating.

scholium inspect <file> [options]

Options:

  • --manifest - Show only manifest information
  • --tree - Show content tree structure
  • --items - List all items with their IDs
  • --media - List media files grouped by type

Examples:

# Full overview
scholium inspect my-curriculum.spkg

# Just the manifest
scholium inspect my-curriculum.spkg --manifest

# List all item IDs (useful for debugging)
scholium inspect my-curriculum.spkg --items

create - Create a new package scaffold

Generate a new curriculum package with template files to get started quickly.

scholium create <name> [options]

Options:

  • -t, --template <type> - Template type: basic, medical, or language (default: basic)
  • -o, --output <dir> - Output directory (default: current directory)

Examples:

# Create a basic curriculum
scholium create my-curriculum

# Create a medical curriculum template
scholium create usmle-step1 --template medical

# Create in a specific directory
scholium create spanish-101 -t language -o ./curricula

Generated structure:

my-curriculum/
├── manifest.json      # Package metadata
├── curriculum.json    # Content structure with example items
└── media/             # Directory for images, audio, video

Package Format

Scholium Curriculum Packages (.spkg) are ZIP archives containing:

| File | Description | |------|-------------| | manifest.json | Package metadata (name, version, provider, stats) | | curriculum.json | Hierarchical content (modules → topics → items) | | media/ | Optional directory for images, audio, video, PDFs |

Supported Item Types

  • Flashcards - Front/back cards with optional explanations
  • MCQ - Multiple choice questions with USMLE-style stems
  • Cloze - Fill-in-the-blank questions
  • Matching - Match items from two columns
  • Ordering - Arrange items in correct sequence
  • Text Content - Explanatory text blocks
  • Media - Embedded images, audio, video

Building a Package

After creating and editing your curriculum:

cd my-curriculum
zip -r ../my-curriculum.spkg manifest.json curriculum.json media/

Then validate before publishing:

scholium validate my-curriculum.spkg

Exit Codes

| Code | Meaning | |------|---------| | 0 | Success (valid package, no errors) | | 1 | Failure (invalid package, errors found, or --strict with warnings) |


Links