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

@pie-qti/transform-cli

v0.1.15

Published

CLI tool for QTI ↔ PIE transformations

Readme

@pie-qti/transform-cli

Status: Under active development

Command-line tool for QTI to PIE transformations, batch package operations, content analysis, and package discovery.

Features

  • Transform — Convert QTI XML to PIE JSON
  • Analyze — Inspect QTI content packages and write optional markdown reports
  • Batch operations — Process one or more package directories or ZIP files
  • Discover — Print the structure of a QTI content package as JSON

Quick Start

From the repository root:

# Install dependencies
bun install

# Transform a single QTI item to PIE
bun run pie-qti -- transform packages/to-pie/tests/fixtures/qti-samples/basic-interactions/choice_simple.xml \
  --format qti22:pie \
  --output ./output.json \
  --pretty

# Analyze a QTI content package
bun run pie-qti -- analyze-qti ./path/to/content-package/

# See all available commands
bun run pie-qti -- --help

Commands

transform

Transform QTI XML to PIE JSON.

bun run pie-qti -- transform <input> [options]

Options:
  --config, -c   Path to configuration file (JSON)
  --output, -o   Output file path (defaults to stdout)
  --format, -f   Transformation format (source:target), default qti22:pie
                 The route token remains qti22:pie; QTI XML version is auto-detected by @pie-qti/to-pie.
  --pretty, -p   Pretty-print JSON output
  --silent, -s   Suppress logs
  --help         Show help

Examples:

# QTI to PIE
bun run pie-qti -- transform item.xml -f qti22:pie -o item.json --pretty

# QTI 3 XML is accepted through the same route token
bun run pie-qti -- transform qti3-item.xml -f qti22:pie -o item.json --pretty

analyze-qti

Analyze QTI content and report statistics and issues.

bun run pie-qti -- analyze-qti <input> [options]

Options:
  --output       Write a detailed markdown report to this file path
  --recursive    Recurse to find packages under the provided directory
  --cleanupTemp  Cleanup temporary extracted files when input is a ZIP
  --help         Show help

Examples:

# Analyze a directory
bun run pie-qti -- analyze-qti ./content-package/

# Write a markdown report
bun run pie-qti -- analyze-qti ./content-package/ --output report.md

batch-transform

Transform multiple items or entire content packages.

bun run pie-qti -- batch-transform <inputs...> [options]

Options:
  --outputDir, -o       Output directory for transformed PIE package artifacts
  --maxParallel         Max parallel package transformations (default 10)
  --extractNestedZips   Extract nested ZIP files
  --copyMediaAssets     Copy sidecar source assets into output directory
  --generateReport      Generate a summary report
  --cleanupTemp         Cleanup temporary extraction directory
  --tempDir             Temporary directory for ZIP extraction
  --help                Show help

Examples:

# Transform a QTI package
bun run pie-qti -- batch-transform ./qti-package.zip -o ./pie-output/

# Transform multiple package inputs
bun run pie-qti -- batch-transform ./dir-a ./dir-b -o ./pie-output/ --no-cleanupTemp

discover-qti

Discover and print the structure of a QTI content package.

bun run pie-qti -- discover-qti <input> [options]

Options:
  --output       Write the JSON result to this file path
  --pretty       Pretty-print JSON
  --verbose      Include more detail during discovery
  --extractDir   Directory to extract ZIPs into
  --help         Show help

Examples:

bun run pie-qti -- discover-qti ./content-package/ --pretty
bun run pie-qti -- discover-qti ./content-package.zip --output discovery.json

Development

# Build the CLI
cd tools/cli
bun run build

# Run directly (development)
bun run analyze-qti -- ./path/to/content/
bun run batch-transform -- ./path/to/content/ -o ./output/

Related Packages

License

ISC