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

sync-docker-image-cli

v1.0.2

Published

CLI for the Docker image sync web service — trigger syncs to your registry and follow their progress from the terminal

Readme

sync-docker-image-cli

Command line client for the Docker image sync web service. Trigger a sync to your own registry, then watch it finish — without leaving the terminal.

Zero runtime dependencies. Node 18+.

Install

npm install -g sync-docker-image-cli

Log in

Generate a token in the web UI at https://<your-app>/tokens, then:

sdi login https://your-app.vercel.app

Paste the token at the prompt — it is not echoed, so it stays out of your shell history. For non-interactive logins, pipe it instead of passing --token:

cat token.txt | sdi login https://your-app.vercel.app --token-stdin

The token is stored in ~/.config/sync-docker-image/config.json (mode 0600). For CI, skip login and export environment variables instead:

export SDI_URL=https://your-app.vercel.app
export SDI_TOKEN=sdi_xxxxxxxx

Use

# Sync one tag. The destination defaults to the registry/namespace
# configured on the server.
sdi copy nginx:1.27

# Block until it finishes, showing which GitHub Actions step is running
sdi copy ghcr.io/owner/app:v1 --wait

# Choose the destination explicitly
sdi copy nvcr.io/nvidia/pytorch:24.05-py3 team/pytorch:24.05 --wait

# Sync every tag of a repository
sdi sync nginx team

# Wait, then pull the result locally
sdi copy redis:7 --wait --pull

# Inspect jobs
sdi list
sdi list --status failed
sdi status <job-id> --wait
sdi rm <job-id>

Scripting and agents

Every command accepts --json, which writes a single JSON document to stdout and sends all human-readable output to stderr:

IMAGE=$(sdi copy redis:7 --wait --json | jq -r '.destination')
docker pull "$IMAGE"

Exit codes are stable:

| Code | Meaning | | ---- | -------------------------------- | | 0 | success | | 1 | network, server or auth error | | 2 | bad arguments | | 3 | the sync itself failed | | 4 | --wait timed out (still running) |

sdi copy nginx:1.27 --wait --json > result.json
case $? in
  0) echo "synced: $(jq -r .destination result.json)" ;;
  3) echo "failed: $(jq -r .job.logs_url result.json)" ;;
  4) echo "still running, check later" ;;
  *) echo "error" ;;
esac

--wait polls every 5s and gives up after 30 minutes; tune with --interval and --timeout (both in seconds). The interval widens automatically as the wait goes on (10s after a minute, 30s after five) so long waits do not exhaust the server's GitHub API quota; passing --interval pins it. A failed poll is retried — only five consecutive failures abort the wait.

Commands

| Command | Description | | ------------------------ | -------------------------------------------- | | sdi login [url] | Save the web app URL and an API token | | sdi logout | Forget saved credentials | | sdi whoami | Show who the current token belongs to | | sdi config | Show the resolved configuration | | sdi copy <src> [dest] | Sync a single tag | | sdi sync <src> [dest] | Sync every tag of a repository | | sdi status <job-id> | Job status and step-by-step progress | | sdi list | List recent jobs | | sdi rm <job-id>... | Delete jobs |

Run sdi help for the full flag reference.

Environment

| Variable | Purpose | | ---------------- | ------------------------------------------ | | SDI_URL | Web app URL (overrides the config file) | | SDI_TOKEN | API token (overrides the config file) | | SDI_CONFIG_DIR | Directory holding config.json | | NO_COLOR | Disable coloured output |

License

MIT