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

cfpan-cli

v0.1.5

Published

CLI tool for CFpan - self-hosted netdisk on Cloudflare Workers

Readme

cfpan-cli

CLI tool for CFpan - self-hosted netdisk on Cloudflare Workers.

Installation

npm install -g cfpan-cli

Quick Start

# Login to your CFpan instance
cfpan login https://your-cfpan-domain.com

# List files
cfpan ls

# Upload a file
cfpan upload ./local-file.txt /remote/path.txt

# Upload a directory with aggregate progress and three concurrent transfers
cfpan upload ./photos /remote/photos --recursive --concurrency 3

# Download a file
cfpan download /remote/file.txt ./local-file.txt

# Create a share link
cfpan share /path/to/file

# Generate shell completion (zsh example)
cfpan completion zsh > ~/.zsh/completions/_cfpan

Commands

Authentication

  • cfpan login <endpoint> - Login to CFpan instance
  • cfpan logout - Revoke the current token and remove the local session
  • cfpan profile list|use|current|remove - Manage local profiles

File Operations

  • cfpan ls [path] - List files and folders
  • cfpan upload <local> <remote> - Upload a file or directory
  • cfpan download <remote> <local> - Download a file or directory atomically
  • cfpan mkdir <path> - Create folder
  • cfpan rm <path> - Delete file/folder (move to trash)
  • cfpan rm --permanent <path> - Permanently delete file/folder
  • cfpan restore <path> - Restore file/folder from trash

Upload/download support --recursive, --concurrency <n>, --continue-on-error, and upload --conflict reject|overwrite|rename|skip. Recursive uploads preserve the source directory name below the remote target; recursive downloads preserve the selected remote directory name below the local destination when that destination already exists as a directory.

Global options include --json, --quiet, --no-color, --progress auto|always|never, --yes, --non-interactive, and --profile <name>. JSON results are written to stdout and errors to stderr.

Shell Completion

Generate a completion script for the shell you use:

# bash
cfpan completion bash > ~/.local/share/bash-completion/completions/cfpan

# zsh
cfpan completion zsh > ~/.zsh/completions/_cfpan

# fish
cfpan completion fish > ~/.config/fish/completions/cfpan.fish

# PowerShell
cfpan completion powershell > $HOME/.config/powershell/cfpan-completion.ps1

The generated scripts complete commands and options locally. When a profile is available, remote path candidates are queried through the hidden completion endpoint; completion remains silent while offline or logged out.

Sharing

  • cfpan share <path> - Create share link
  • cfpan share <path> --code <6-digit> - Create share with access code

Configuration

Configuration is stored in ~/.cfpan/config.json:

{
  "profiles": {
    "default": {
      "endpoint": "https://your-cfpan.com",
      "token": "cfpan_xxxxx",
      "tokenId": "uuid-of-token"
    }
  },
  "activeProfile": "default"
}

For non-interactive login, set CFPAN_PASSWORD and pass --username; the password is never accepted as a command-line argument.

License

MIT