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

shotbin

v0.1.2

Published

Upload a screenshot, get a permanent embeddable URL back in under a second.

Readme

shotbin

Upload a screenshot, get a permanent embeddable URL back in under a second.

shotbin shot.png --about "speakers page after reassign"
![speakers page after reassign](https://i.shotbin.dev/c67v9zxsgm6gky20g53ewazzar.png)

stdout is the markdown and nothing else, so shotbin shot.png --about … | pbcopy puts exactly the right thing on the clipboard. Everything a human reads — the visibility, what it worked out about where the shot came from, a link to its page — goes to stderr.

Zero runtime dependencies. npx shotbin fetches one small tarball and starts.

Setup

shotbin login

It prints where to mint a token, reads the pasted token with echo off, verifies it before writing anything, and then writes two files:

  • .shotbin.json in the repository, committed, naming the project its screenshots belong to, and holding no secret
  • ~/.shotbin/config.json on the machine, chmod 600, holding your token

That split is the point: the repository commits its identity, the machine holds the secret. One token, not one per archive — it belongs to you and reaches every project you are a member of.

login settles the project three ways and no others: the repository already names one, the token reaches exactly one, or --project says which. A token reaching several refuses and lists them rather than guessing — a repository silently filed into the wrong archive is not noticed until somebody goes looking for a screenshot that is not there.

In CI, export SHOTBIN_TOKEN=sbn_… replaces the home config; the project still has to be named, by the committed .shotbin.json or by --project.

Uploading

Repo, branch, commit, issue, uploader, host, OS and agent session are all inferred from where the command runs. --about is the only thing no tool can work out for you, which is why it is the only thing you have to pass. Every inferred field has a flag that overrides it.

| | | |---|---| | --about <text> | required; one line saying what the image shows | | --repo <owner/name> | from the origin remote | | --issue <n> | from a number in the branch name | | --pr <n> | from the CI ref | | --branch, --commit | from HEAD | | --source <kind> | claude, agent, ci, manual, unknown | | --visibility <v> | private, unlisted, public (default: the project's) | | --crop WxH+X+Y | applied before upload, so the archive records the crop | | --project <slug> | override the project in .shotbin.json | | --json | print the server's answer instead of the markdown |

Searching

shotbin search 931          # an issue number
shotbin search a1b2c3d      # a commit prefix
shotbin search "empty state"  # the caption

Free text matches captions and nothing else. ocr_text exists in the schema and is never written, because enrichment is off by decision — so the caption is the only thing a search can find a shot by, which is what makes --about worth thinking about for a second.

Visibility

Three states, defaulting to unlisted.

| state | bytes at i.shotbin.dev | in listings | |---|---|---| | private | none issued | the project's archive only | | unlisted (default) | yes, to anyone with the URL | the project's archive only | | public | yes | yes |

unlisted is the default because private cannot be embedded in a pull request at all — GitHub's image proxy fetches anonymously, with no credentials.

GitHub's proxy caches what it fetches permanently. Deleting a shot or narrowing its visibility cannot retract bytes it has already cached. Never upload data that is not yours to publish.

Exit codes

| | | |---|---| | 0 | fine | | 1 | something went wrong |

There is no third outcome. Nothing inspects your screenshot — shotbin does not read it, does not scan it for keys or addresses, and will not warn you about anything in one, so no exit code can tell you what is in an image. Deciding what is safe to upload happens before the command, and --crop is the only tool for keeping something out of the frame.

The agent skill

Most uploads here are made by an agent, and the judgement the CLI cannot supply — what is safe to upload, what a caption is for, the mistakes that publish something you meant to remove — lives in a skill alongside it:

# For one project
mkdir -p .claude/skills/shotbin
curl -sSL https://raw.githubusercontent.com/lumikey/shotbin/main/packages/skill/SKILL.md \
  -o .claude/skills/shotbin/SKILL.md

# For every project on this machine
mkdir -p ~/.claude/skills/shotbin
curl -sSL https://raw.githubusercontent.com/lumikey/shotbin/main/packages/skill/SKILL.md \
  -o ~/.claude/skills/shotbin/SKILL.md

One file, no install step, nothing else to configure. It is checked against this CLI on every run of the test suite, so it cannot teach a flag that does not exist.

Cropping

--crop is why the zero-dependency claim is interesting. The two obvious ways to crop a PNG are a ten-megabyte native binary or a pure-JS decoder that spends hundreds of milliseconds on a full-page screenshot before the upload has even started. Node's zlib is native and inflate/deflate is the only expensive part, so cropping a retina screenshot takes single-digit milliseconds. What it cannot do — 16-bit, interlaced, palettised — it refuses by name, because a scrambled image with valid dimensions is the worst possible failure for a command whose output gets pasted into a pull request.