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

demo-locker

v0.2.12

Published

Setup wizard for Demo Locker — self-hosted music streaming for demos, mixes, and playlists your band can comment on.

Readme

demo-locker

Setup wizard for Demo Locker — self-hosted music streaming for demos and mixes your band can comment on, with timestamps.

Use

npx demo-locker

Answers a few questions (what do you need, where's it running, where do the tracks live) and spins it up. Two ways to run it:

  • cloudflare — a Worker plus a D1 database and an R2 bucket. Free tier, reachable from anywhere, nothing to maintain.
  • docker — one container on the machine you're on (laptop, Pi, VPS).

Or point at an instance you already have with existing. Either way it can also wire the embeddable public player (@demo-locker/player) into an existing web project.

Cloudflare

npx demo-locker --target cloudflare --domain demos.example.com

Provisions a Worker, a D1 database, and an R2 bucket, then deploys. Requires wrangler to be installed and logged in — the wizard checks first and tells you to run wrangler login if you aren't. R2 needs billing enabled on the Cloudflare account (the free tier still applies, but a card must be on file).

The custom domain must be a zone on the same Cloudflare account; wrangler provisions the DNS record and the certificate. Omit --domain and you get a workers.dev URL instead — it's printed by the deploy step, since it isn't knowable before then.

Resource names default to demo-locker, demo-locker-db, and demo-locker-demos; override with --worker-name, --d1-name, and --r2-bucket. There are no secrets on this path — D1 and R2 are bindings.

Non-interactive (for scripts and agents)

Every question has a flag; --yes accepts defaults:

npx demo-locker --mode instance --target docker --storage local \
  --port 3001 --volume demolocker --email [email protected] --password ... --yes

npx demo-locker --mode instance --target cloudflare \
  --domain demos.example.com --email [email protected] --password ... --yes

--email/--password need a reachable URL, so on the cloudflare target they require --domain. Without one, open the workers.dev URL afterwards and sign up there — the first account in wins.

--dry-run prints the deploy plan without running anything.

Requirements

Node 20+. Docker for the docker target; wrangler for the cloudflare target.

Supported on macOS and Linux; Windows is untested (npm/docker spawning may require a shell — use WSL).

s3 credentials are passed as container env vars; anyone with docker access to the host can read them.