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

hotdrop

v1.0.2

Published

P2P LAN & internet file sharing via WebRTC — no cloud, no installs, just a URL

Readme

HotDrop

npm version License: MIT Node.js

Serverless P2P file sharing — no cloud, no installs, just a URL.

Files transfer directly between browsers via WebRTC. The server only brokers the initial handshake — it never sees your files. Supports multiple peers per room, works across any network, and runs offline on a local LAN with zero internet usage.

Try it live · npm · Buy me a coffee


Table of Contents


How it works

  1. Open the app → tap Create Room → share the 6-character code or QR
  2. Other devices scan the QR or enter the code
  3. A direct WebRTC connection is established between all peers
  4. Any peer can send files — recipients get an instant in-browser download prompt

Files exist only in browser memory. Nothing is written to disk or stored on the server.


Installation

Global CLI (local network)

Install globally via npm to run HotDrop as a background service on your machine. All traffic stays on your LAN — zero internet data consumed.

npm install -g hotdrop
hotdrop start

Or install from source:

git clone https://github.com/armedjuror/hotdrop
cd hotdrop
bash local_install.sh

Once running, open http://<YOUR_LOCAL_IP>:5821 on any device on the same network. The QR code on the create screen automatically encodes the server's LAN IP so other devices can scan and join immediately.

The UI shows a HotDrop.local label when connected to a local server.

Self-hosted server

To run HotDrop on a VPS or cloud server (accessible over the internet):

git clone https://github.com/armedjuror/hotdrop
cd hotdrop
npm install
npm start

Set the PORT environment variable if needed (defaults to 5821). For production, place it behind a reverse proxy (nginx, Caddy) with TLS — the client requires wss:// on HTTPS origins.


CLI reference

hotdrop start      Start the server in the background (survives terminal close)
hotdrop stop       Stop the server
hotdrop status     Check whether the server is running
hotdrop logs       View server logs
hotdrop uninstall  Stop the server and remove temp files

Architecture

Browser A ──── WebRTC DataChannel (direct P2P) ──── Browser B
    │                                                     │
    │                                               Browser C
    │                                                     │
    └────────── WebSocket (signaling only) ───────────────┘
                       Signaling server
                  (never sees your files)

The signaling server exchanges only WebRTC handshake messages (offer/answer/ICE candidates). Once peers are connected, the server plays no further role.

Each pair of peers maintains its own direct P2P connection (mesh topology). Sending a file broadcasts it to all connected peers simultaneously — each peer receives a full independent copy.


Features

  • No client installs — works in any modern browser
  • Pure P2P — files never touch the server
  • Multi-peer rooms — send to multiple devices at once
  • Room grace period — rooms stay alive for 5 minutes after the last peer disconnects, allowing rejoin without recreating
  • LAN mode — run locally for zero-internet intra-network transfers
  • QR code auto-encodes the server's LAN IP when running locally
  • Installable as a PWA on iOS, Android, and desktop
  • Single-file frontend — no build step, no bundler

Limitations

  • All peers must have the page open simultaneously (no store-and-forward)
  • Multi-peer upload cost: a 1 GB file sent to 3 peers uses 2 GB of upload
  • Large files (>1 GB) may be constrained by device RAM
  • No TURN relay — if NAT traversal fails, there is no fallback
  • WebRTC on iOS requires Safari 16+ or any browser on iOS 16+

Contributing

Contributions are welcome. Please open an issue first for significant changes so the approach can be discussed before a PR is submitted.

Guidelines:

  • Keep the server minimal — express and ws are the only dependencies by design
  • The frontend is a single index.html with no build step — keep it that way
  • Test on at least two real devices (not just two browser tabs) before submitting
  • Follow existing code style — no linters are enforced, but consistency matters

Development setup:

git clone https://github.com/armedjuror/hotdrop
cd hotdrop
npm install
npm start
# Open http://localhost:5821 in two tabs or on two devices on the same network
  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/your-feature
  3. Commit your changes
  4. Open a pull request against main

License

MIT