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

uploadr

v1.1.3

Published

tiny CLI tool to upload contents to a server

Readme

uploadr

A command-line tool which copies a folder's contents to a server via SFTP. Inspired by surge.sh.

Features:

  • Progress bar shows bytes transferred while uploading
  • Pattern matching to isolate/ignore files while uploading
  • Prompts for username/password if necessary
  • Can persist credentials to a git-ignored .env file
  • Provides clear logging and handles common user errors
Note: This tool is experimental and mostly used internally.

Docs

Quick-Start

It's recommended you install and use this tool as a local dependency:

npm i uploadr --save-dev

Now, you can add a script to your npm scripts in package.json:

{
  "scripts": {
    "deploy": "uploadr --host foo.com --source app/ --dest /home/public_html/"
  }
}

You can run the script with the following:

npm run deploy

This will prompt for SFTP credentials, then recursively copy the contents of your local app/ folder into the remote /home/public_html/ folder.

Credentials with .env file

You can avoid entering your username/password each time by adding a .env file to your working directory.

It should be JSON, optionally with comments.

{
  "username": "beep",
  "password": "boop"
}

:bulb: Don't forget to gitignore this file!

CLI Usage

Full details:

uploadr [opts]

Options
  --src, -s        local source folder (default cwd)
  --dest, -d       destination folder on remote server
  --host, -h       host for login
  --username, -u   username for login (default 'anonymous')
  --password, -p   password for login (default empty string)
  --port, -p       port to connect (default 22)
  --ignore, -i     pattern(s) to ignore in the upload queue
  --only, -o       pattern(s) to isolate and only upload for this run
  --save, -S       writes an .env file to cwd and gitignore if necessary
  --no-prompt      do not prompt – only read auth data from .env file

Persistence with --save

You can use the --save option if you want to persist the username/password after prompt. It will write a new .env file in your working directory, and add it to a .gitignore file in the same directory.

uploadr --save --host foo.com --source app/ --dest /home/public_html/

This is handy for streamlining the development experience on small teams.

Ignoring Files

By default, we ignore the same patterns as surge-ignore.

You can ignore more files with the --ignore flag and with a .ftpignore file. This expects the same pattern matching as a typical .gitignore file. Example:

uploadr --ignore *.mp4 -h foo.com -s app/ -d /home/public_html

Here is an example .ftpignore file which un-ignores (allows) something in node_modules/.

*.psd
some/file/to/ignore.txt
app/sensitive.txt
!node_modules/foo/

Uploading Specific Files

You can use the --only flag if you just want to upload specific file globs.

The following is an example of a deploy-js script, which only uploads JavaScript files:

{
  "scripts": {
    "deploy": "uploadr -h foo.com -s app -d /home/public_html/",
    "deploy-js": "npm run deploy -- --only *.js"
  }
}

Roadmap

There are no real plans for the future of this tool. However, the following may be explored at some point:

  • programmatic API and more modularization
  • Optional rsync for faster/incremental uploads (for unix systems)
  • regular FTP support
  • improved Windows support
  • integration with tools like 1password or LastPass

License

MIT, see LICENSE.md for details.