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

peerdrop

v1.0.0

Published

A privacy-focused, peer-to-peer (P2P) file sharing app

Downloads

11

Readme

PeerDrop 🌐💨

A privacy-focused, peer-to-peer (P2P) file sharing app — fast, secure, and serverless.

PeerDrop lets you share large files directly between devices using WebRTC. No file ever touches a server. No storage. No spying. Just pure, encrypted transfer — from you to your peer.

PeerDrop Screenshot

🔧 Tech Stack

| Layer | Tech | |------|------| | Frontend | HTML, Tailwind CSS, JavaScript | | Core Logic | WebRTC DataChannel | | Signaling Server | Node.js + Express + Socket.io | | TURN/STUN | Google STUN servers |

🛠 Features

  • 🔒 End-to-End Encrypted via WebRTC
  • 🚫 No cloud storage
  • Instant connection with QR code or sharing code
  • 📁 Unlimited file size (limited by RAM + connection)
  • 🌍 Works across devices (mobile to PC, etc.)

🚀 How It Works

  1. Peer A opens the website and drops a file.
  2. A WebRTC offer is created and shared via a link or QR code.
  3. Peer B opens the link → signaling handshake via server.
  4. Once connected, file is streamed from A to B via WebRTC.
  5. File never touches a third-party server.

🏗️ Project Structure

peerdrop/
├── public/                # Static assets (icons, favicon, etc.)
├── src/
│   ├── index.html         # Entry HTML
│   ├── 404.html           # 404 error page
│   ├── styles/            # CSS styles
│   │   └── main.css       # Tailwind CSS
│   └── js/                # JavaScript files
│       └── app.js         # Core WebRTC logic
├── server/
│   ├── index.js           # Express + Socket.io Signaling Server
│   └── config.js          # TURN/STUN configs
├── workers-site/          # Cloudflare Workers configuration
│   ├── index.js           # Worker script
│   └── package.json       # Worker dependencies
├── wrangler.toml          # Cloudflare Wrangler config
├── README.md
└── package.json

🧠 WebRTC Flow Summary

  • RTCPeerConnection is used to create a connection.
  • createOffer() and createAnswer() are exchanged via Socket.io.
  • Files are streamed through DataChannel.

🧪 Local Development

# Clone the repo
git clone https://github.com/sh20raj/peerdrop.git

# Install dependencies
cd peerdrop
npm install

# Start the server
npm start

# For development with auto-restart
npm run dev

Then open http://localhost:3000 in your browser.

🌐 Deployment

Cloudflare Pages Deployment

Method 1: Using Wrangler CLI

1. Install Wrangler CLI:

npm install -g @cloudflare/wrangler

2. Authenticate with Cloudflare:

wrangler login

3. Update your Cloudflare account details in wrangler.toml:

account_id = "your-account-id" # Replace with your Cloudflare account ID
zone_id = "your-zone-id"       # Replace with your Cloudflare zone ID (if applicable)

4. Build the project:

npm run build

5. Deploy to Cloudflare Pages:

npm run deploy

Method 2: Using Cloudflare Dashboard

1. Build the project:

npm run build

2. Go to the Cloudflare Pages dashboard

3. Click "Create a project"

4. Connect your GitHub repository

5. Configure your build settings:

  • Build command: npm run build
  • Build output directory: src
  • Root directory: /

6. Click "Save and Deploy"

Signaling Server Deployment

The signaling server needs to be deployed separately:

  • Deploy the server directory to a Node.js hosting service like Heroku, Render, or Railway
  • Update the signalingServerUrl in workers-site/index.js to point to your deployed signaling server
  • For production, consider setting up a dedicated TURN server for better NAT traversal

🤝 Contributing

Contributions are welcome! If you want to:

  • Improve UI
  • Add QR scan support
  • Make a desktop/mobile app version
  • Add password-protected file sharing

Fork the repo and open a PR 🚀

📜 License

MIT License

💡 Inspiration

Inspired by ToffeeShare, built with love and curiosity ❤️