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

byte-drop

v1.0.0

Published

Instant local-network file sharing with a QR-powered receive page.

Readme

ByteDrop

ByteDrop is a tiny local-network file drop for moving files from your computer to nearby devices on the same Wi-Fi. Start it, open the desktop page, scan the QR code from your phone, and download the shared files directly from your machine.

No accounts. No cloud storage. No public upload service.

Highlights

  • QR-powered receive page for phones and tablets
  • Drag-and-drop or file picker uploads from the desktop page
  • Live file list refresh on both sender and receiver screens
  • One-click individual downloads or batch download opening
  • Clear and delete controls for the sender
  • Hardened local file handling with safe filenames, bounded upload size, and path validation
  • Security headers for the static UI

Requirements

  • Node.js 18 or newer
  • Devices connected to the same trusted local network

Install

Run without installing globally:

npx byte-drop

Or install this checkout locally:

npm install
npm start

If installed globally:

npm install -g byte-drop
byte-drop

Usage

  1. Start ByteDrop:
npm start
  1. Open the laptop URL printed in the terminal, usually:
http://192.168.x.x:3000
  1. Drop or choose files on the desktop page.

  2. Scan the QR code from your phone, or open:

http://192.168.x.x:3000/receive
  1. Download files on the receiving device.

Uploaded files are stored in the local uploads/ folder and are ignored by git.

Configuration

ByteDrop uses conservative defaults, and you can tune them with environment variables:

| Variable | Default | Purpose | | --- | ---: | --- | | PORT | 3000 | HTTP port for the local server | | BYTEDROP_MAX_FILE_SIZE | 262144000 | Maximum size per file in bytes, 250 MB by default | | BYTEDROP_MAX_FILES_PER_REQUEST | 20 | Maximum files accepted in one upload request |

PowerShell example:

$env:PORT="4000"
$env:BYTEDROP_MAX_FILE_SIZE="104857600"
npm start

Security Notes

ByteDrop is designed for trusted local networks, not the public internet. Anyone on the same reachable network who can open the ByteDrop URL can view and download files while the server is running.

This version includes:

  • Generated storage names to avoid trusting user-provided filenames
  • Filename sanitization and strict route validation
  • Resolved-path checks for download and delete operations
  • Upload count and file-size limits
  • Hidden Express implementation header
  • Content Security Policy and basic browser hardening headers
  • Static file serving that denies dotfiles

Recommended use:

  • Run it only on private networks you trust.
  • Stop the server when sharing is done.
  • Delete files from the UI when they should no longer be available.
  • Avoid exposing the port through router forwarding, tunnels, or public hosting.

Run an npm dependency audit with:

npm run audit

Project Structure

server.js             Express server, upload handling, QR endpoint
public/index.html     Sender interface
public/receive.html   Receiver interface
public/styles.css     Shared visual system
public/app.js         Shared client behavior
uploads/              Runtime file storage, ignored by git

License

MIT