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

dropall-cli

v1.0.2

Published

CLI tool for uploading and downloading files from a Dropall P2P room

Readme

dropall-cli

A command-line client for Dropall — the browser-based P2P file transfer app. Upload and download files from any Dropall room without opening a browser.


Installation

# Install Volta if needed:
# https://volta.sh
curl https://get.volta.sh | bash

# From this cli directory, pin the expected toolchain
volta pin [email protected]
volta pin [email protected]

# Install dependencies
pnpm install

# Build the package
pnpm build

# Link the CLI globally for local use
npm link
dropall <command> [options]

For development without linking globally:

pnpm exec tsx src/cli.ts <command> [options]

Commands

upload — Share a file in a room

dropall upload <file> [options]

Announces the file to the room and keeps serving it until you press Ctrl-C. When you quit, the file is automatically removed from the room.

| Option | Short | Default | Description | |---|---|---|---| | --room <id> | -r | required | Room ID to join | | --username <name> | -u | CLI-User | Your display name | | --server <url> | -s | https://dropallp2p-ebrv57bf.manus.space | Dropall server URL | | --password <pwd> | -p | — | Room password (if locked) | | --port <n> | | 0 (random) | Local HTTP port to serve the file on |

Example:

dropall upload ./report.pdf --room my-room --username Alice

download — Download a file from a room

dropall download [options]

If --file-id is supplied, downloads that file immediately. Otherwise, an interactive picker lists all files in the room and lets you choose.

| Option | Short | Default | Description | |---|---|---|---| | --room <id> | -r | required | Room ID to join | | --username <name> | -u | CLI-User | Your display name | | --file-id <id> | -f | — | ID of the specific file to download | | --output <dir> | -o | current directory | Directory to save the downloaded file | | --server <url> | -s | https://dropallp2p-ebrv57bf.manus.space | Dropall server URL | | --password <pwd> | -p | — | Room password (if locked) |

Examples:

# Interactive picker
dropall download --room my-room --username Bob --output ~/Downloads

# Direct download by file ID
dropall download --room my-room --username Bob --file-id abc123xyz --output ~/Downloads

list — List files in a room

dropall list [options]

Connects to the room, prints all currently shared files (ID, name, size, uploader, age), then exits.

| Option | Short | Default | Description | |---|---|---|---| | --room <id> | -r | required | Room ID | | --username <name> | -u | CLI-User | Your display name | | --server <url> | -s | https://dropallp2p-ebrv57bf.manus.space | Dropall server URL | | --password <pwd> | -p | — | Room password (if locked) | | --json | | — | Output raw JSON instead of a table |

Example:

dropall list --room my-room
dropall list --room my-room --json | jq '.[].name'

Transfer Architecture

CLI uploader                        CLI downloader
    │                                    │
    │  1. join-room (Socket.IO)          │
    │  2. file-announce (with httpUrl)   │
    │─────────────────────────────────►  │
    │                                    │  3. join-room
    │                                    │  4. receive room-files (with httpUrl)
    │                                    │
    │  ◄── HTTP GET /files/<id> ─────────│
    │  5. stream chunks (Dropall v1)     │
    │─────────────────────────────────►  │
    │                                    │  6. reassemble & save to disk

When the uploader is a browser peer, the CLI falls back to the standard WebRTC data channel path. This requires the optional wrtc package:

pnpm add wrtc --optional

If wrtc is not installed, the CLI prints the browser URL so you can download manually.


Room Locking

Locked rooms require a password for all operations. Pass --password <pwd> to any command. If the room is locked and no password is supplied, the CLI exits with a clear error message.


Running Against a Local Server

# Start the Dropall server locally (from the dropall-clone directory)
pnpm dev

# Use the CLI against it
dropall upload ./file.txt --room test --server http://localhost:3000
dropall list --room test --server http://localhost:3000
dropall download --room test --server http://localhost:3000

Development

pnpm install
pnpm build
pnpm exec tsx src/cli.ts --help

TypeScript source is in src/. The CLI uses: