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

peertube-plugin-tollgate

v0.1.0

Published

Pay the creator in USDC on Arc when their video is downloaded. A permissionless PeerTube payments plugin.

Readme

peertube-plugin-tollgate

Let your creators get paid when their videos are downloaded — automatically, per download, with a public receipt.

PeerTube instance admins have asked for a way to pay creators for years, and there is still no in-tree feature (issue #1586 ran 7 years). Existing options either take a large cut on small amounts or route money off-platform with no proof it reached the creator.

This plugin closes that gap. When a viewer downloads a video, the plugin routes a small payment straight to that video's creator and writes a tamper-evident receipt you can hand to the creator or show publicly. No per-download platform fee, no custody in the middle, and the receipt is verifiable by anyone.

What it does

  • Gates video downloads behind a small payment (configurable price, off by default until you set a creator wallet).
  • Routes the payment to the creator and records a hash-chained receipt (each receipt links to the previous one, so the ledger can't be silently edited).
  • Adds a small "Support the creator" panel on the watch page.
  • Exposes a /proof endpoint that lists every receipt and confirms the chain is intact.

Payments settle in USDC on Arc, so the minimum viable payment is a fraction of a cent instead of the ~$2 floor card rails impose — which is what makes per-download payments possible at all. Viewers and creators never need to think about any of that; they see a price and a receipt.

Install (self-hosted PeerTube)

The plugin follows PeerTube's peertube-plugin- package convention and has been validated from a local path in a Docker-backed PeerTube instance. It has not been published to npm from this repo.

For local install against your own instance:

peertube-cli auth add -u 'https://your.peertube' -U 'root' --password '...'
peertube-cli plugins install --path /absolute/path/to/peertube-plugin-tollgate

Configure (admin settings)

  • Default creator wallet / Creator wallet mapping — where payments go. Mapping is one videoUuid=0xWallet per line; the default is used when a video has no explicit entry.
  • Price per unlock — atomic USDC (6 decimals). 2500 = 0.0025 USDC.
  • Gate downloads — whether downloads are blocked until paid.
  • Operator private key — the wallet that funds payouts. Leave empty to run without on-chain payouts (nothing settles).
  • Arc RPC / chain id / FeeRouter / USDC / explorer — default to Arc testnet; override to point at another deployment.

Verify a payment

Open /plugins/tollgate/router/proof on your instance for the receipt list and chain status, then follow any transaction to the block explorer.

Honest notes

  • Settlement is per-download (and per-view is recorded for analytics). PeerTube exposes a counted-view hook, not per-second watch-time, so this plugin does not meter watch-time.
  • The MVP payout is operator-funded: your operator wallet routes the payment to the creator. A viewer-signed flow is a planned enhancement.
  • This plugin uses PeerTube's plugin router with req.rawBody (added by PeerTube PR #6300, which exposes the raw request body for signature verification — it is a primitive, not a built-in payments feature).
  • Real-world reach depends on admins choosing to install it; the demo runs against a self-hosted instance.

License

AGPL-3.0.