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

webdrop

v0.1.5

Published

Share a directory over FTP and the web

Readme

webdrop

Share any directory over HTTP and FTP from the command line. Point it at a folder, and both a web file browser and an FTP server come up instantly.

Features

  • Serves a directory as a browsable web page (with file listing, sizes, and download links)
  • Serves the same directory over FTP
  • Runs both servers at once, or either one on its own
  • Optional username/password auth on both HTTP (Basic Auth) and FTP
  • Path-traversal safe: requests cannot escape the shared root
  • Zero config — just point it at a folder

Requirements

  • Node.js 14 or later

Installation

Global (CLI usage)

npm install -g webdrop

Local (as a dependency)

npm install webdrop

From source

git clone <repo-url>
cd webdrop
npm install

Usage

webdrop [options] [dir]

If dir is omitted, the current working directory is shared.

webdrop                      # share current dir: web :8080, ftp :2121
webdrop ~/Downloads          # share a specific directory
webdrop ./photos --web-port 3000
webdrop ./docs --ftp-only    # FTP only, no web server
webdrop ./files --user alice --pass hunter2   # require login
webdrop ./files --user alice                  # prompts for password

Then open http://localhost:8080 in a browser, or connect to ftp://localhost:2121 with any FTP client (anonymous login by default).

Options

| Option | Description | Default | | --------------- | ---------------------------------------- | ------- | | dir | Directory to share | . | | --web-port <n>| HTTP port | 8080 | | --ftp-port <n>| FTP port | 2121 | | --host <ip> | Interface to bind | 0.0.0.0 | | --web-only | Disable the FTP server | — | | --ftp-only | Disable the HTTP server | — | | --user <name> | Require this username on both servers | — | | --pass <pass> | Password for the user (prompted if omitted) | — | | -h, --help | Show help | — | | -v, --version | Show version | — |

Programmatic API

const { startWebServer, startFtpServer } = require('webdrop');

const web = await startWebServer('/path/to/dir', 8080, '0.0.0.0');
const ftp = await startFtpServer('/path/to/dir', 2121, '0.0.0.0');

// with authentication:
const auth = { username: 'alice', password: 'hunter2' };
const secured = await startWebServer('/path/to/dir', 8080, '0.0.0.0', auth);

// later
web.close();
ftp.close();

Both functions accept an optional auth argument ({ username, password }). When provided, HTTP uses Basic Auth and FTP rejects any login that does not match. Both return a Promise that resolves to { host, port, close }.

Security notes

  • The web server resolves every request against the shared root and rejects anything that escapes it.
  • FTP login is anonymous by default. Do not expose it to the public internet without adding authentication (--user/--pass) or a firewall.
  • HTTP Basic Auth sends credentials base64-encoded (not encrypted). Use --pass only over trusted networks, or pair with TLS/a reverse proxy.
  • ftp-srv depends on legacy glob/rimraf/uuid code. package.json pins overrides to the patched ip@2 and uuid@11; npm audit may still report a stale high-severity finding for ip (advisory DB lists ip *, though 2.0.1 ships the fix). Use at your own risk in untrusted environments.

License

MIT