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

sphere-cli

v0.1.38

Published

SPHERE CLI — synthetic data generation, evaluation, and certification

Downloads

4,510

Readme

SPHERE CLI

Command-line interface for SPHERE — synthetic data generation, evaluation, and certification. Designed for business workflows, data pipelines, and HPC environments.

For the desktop application (individual users), see SPHERE App.


Install

npm (recommended):

npm install -g sphere-cli

No Python, no curl, no PATH editing. Requires Node.js ≥ 16.

curl (no Node.js required):

curl -fsSL https://github.com/statzihuai/sphere-cli/releases/latest/download/install.sh | sh

For HPC / cloud with no sudo:

curl -fsSL https://github.com/statzihuai/sphere-cli/releases/latest/download/install.sh | sh -s -- --prefix ~/.local
# then add to ~/.bashrc or ~/.zshrc:
export PATH="$HOME/.local/bin:$PATH"

Uninstall:

sh install.sh --uninstall

Supported platforms

| Platform | Architecture | |---|---| | macOS | Apple Silicon (arm64) | | Linux | x86_64 | | Linux | arm64 (AWS Graviton, etc.) |


Quick start

# Activate your license (once)
sphere license activate sphere_xxxxxxxxxxxxxxxxxxxx

# Generate synthetic data
sphere generate real.csv -o synth.csv

# Evaluate fidelity and privacy
sphere evaluate real.csv synth.csv

# Generate a certification report (HTML)
sphere certify real.csv synth.csv -o report.html

Commands

sphere license

Activate and manage your SPHERE license. A valid license is required to use generate, evaluate, and certify.

sphere license activate [KEY]   # Activate with a sphere_… key (prompts if omitted)
sphere license status           # Check current license (validates online, falls back to cache)
sphere license clear            # Remove stored key and cache

The key is stored at ~/.config/sphere/license_key (mode 0600). After a successful activation the license is cached locally for 7 days, so the CLI works offline within that window.

Don't have a license? Contact [email protected] or visit sphere.stanford.edu.


sphere generate

sphere generate <real.csv> [options]

Options:
  -o, --output PATH        Output CSV path (default: <input>_sphere.csv)
  -n, --rows INT           Number of synthetic rows (default: same as input)
  -k INT                   SPHERE rotations (default: 2)
  --seed INT               Random seed for reproducibility
  --mix-prob FLOAT         Mixture probability 0–1 (default: 0.75)
  --json                   Machine-readable JSON output

A .sphere.json provenance file is written alongside every output CSV and is automatically read by sphere certify.

sphere evaluate

sphere evaluate <real.csv> <synth.csv> [options]

Options:
  --skip-privacy           Skip privacy metrics (faster)
  --json                   Machine-readable JSON output

sphere certify

sphere certify <real.csv> <synth.csv> [options]

Options:
  -o, --output PATH        Output HTML report path (default: cert.html)
  --json                   Machine-readable JSON output

Generation parameters (k, seed, theta, etc.) are loaded automatically from the .sphere.json sidecar. Pass flags explicitly to override.


Machine-readable output

Every command supports --json for pipeline integration:

sphere generate real.csv -o synth.csv --json | jq .fidelity
sphere evaluate real.csv synth.csv --json > metrics.json

Environment variables

| Variable | Description | |---|---| | SPHERE_LICENSE_REQUIRED | Set to false to bypass license checks (research / unlocked builds) | | SPHERE_WORKER_URL | Override the license validation endpoint | | SPHERE_PREFIX | Override install prefix | | SPHERE_VERSION | Pin a release tag, e.g. v0.1.0 | | SPHERE_BUNDLE_URL | Full URL to a sphere-cli-*.tar.gz (skip auto-detect) | | SPHERE_GITHUB_REPO | Override GitHub repo for downloads |


License

Proprietary — see LICENSE.