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

create-snagset

v0.1.5

Published

Scaffold your own Snagset instance. One command, Postgres included, one variable to fill in.

Readme

create-snagset

Scaffold a self-hosted Snagset instance — click-to-comment review for your clients' live sites.

pnpm create snagset my-review
cd my-review
pnpm install && pnpm start
npm  create snagset@latest my-review   # then: npm install  && npm start
yarn create snagset my-review          # then: yarn install && yarn start
bun  create snagset my-review          # then: bun install  && bun start

Bring a Postgres URL — a free Neon or Supabase branch, or a local install — and put it in .env as DATABASE_URL. Open http://localhost:8080 and create the first owner — an instance nobody has claimed shows a setup screen rather than a sign-in form, and the first person to fill it in becomes the owner, so do that before you share the address.

No Docker, on purpose. No Dockerfile, no compose file, nothing to build: Snagset is a Node process and a Postgres URL.

What you get

A directory with everything an instance needs and nothing it does not:

| | | |---|---| | .env | Configuration. DATABASE_URL is the only required variable — a signing key is generated into it for you | | package.json | @snagset/server as a dependency, with start, migrate and env scripts | | vercel.json + api/index.js | Deploy to Vercel instead, if you would rather not run anything | | README.md | The operating manual, written for the instance you just made |

Then what

Sign in, add a site, and paste the tag it gives you into the site you want reviewed:

<script src="http://localhost:8080/snag.js" data-snag-site="prj_…" defer></script>

Your client opens a review link, clicks the thing that's wrong, and types. No account, no extension, no login — the link is the whole identity. You get the pin, the screenshot, the console and the route.

Prefer an import? npm i snagset gives you the same tag from snagset.init({ host, site }), or the framework subpaths — snagset/react, snagset/vue, snagset/next, snagset/vite (which covers Nuxt and SvelteKit too), snagset/astro.

What it costs to run

A Node process and a Postgres. Screenshots want an S3-compatible bucket (R2, Spaces, MinIO, AWS) and notifications want a mailer — both optional, and the product is honest without them: no bucket means annotation mode and the widget says screenshots are unavailable rather than offering one that fails.

Back up the signing key

If you did not set SNAGSET_SECRET_KEY, one was generated into your .env. Treat it as a password. Without it every reviewer session is dead and any stored credential is unreadable ciphertext.


Early release. The install path is tested end to end, but this is a 0.0.x line: expect the odd rough edge, and pin the version if you need stability. Issues and notes are welcome at snagset/snagset.

AGPL-3.0-only. The widget you put on a client's site is snagset, and it is MIT.