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

r2put

v1.0.1

Published

Futuristic CLI tool for uploading files to Cloudflare R2

Readme

r2put

A futuristic CLI tool for uploading files to Cloudflare R2 with animated progress bars and a polished terminal UI.

Features

  • Elegant futuristic TUI with animated progress bars
  • Real-time transfer rate and ETA display
  • Timestamped log messages with typing animation
  • Presigned download URL generation on successful upload
  • Built on React Ink for smooth terminal rendering

Installation

npm install r2put
# or
pnpm add r2put
# or
yarn add r2put

Prerequisites

Set the following environment variables for R2 authentication:

export CLOUDFLARE_ACCOUNT_ID="your-account-id"
export R2_ACCESS_KEY_ID="your-access-key-id"
export R2_SECRET_ACCESS_KEY="your-secret-access-key"

Usage

r2put --file <path> --bucket <name> [options]

Options

| Option | Short | Description | Required | |--------|-------|-------------|----------| | --file | -f | Path to file to upload | Yes | | --bucket | -b | Target R2 bucket name | Yes | | --key | -k | Custom object key (defaults to filename) | No | | --region | -r | Region hint for display (default: WNAM) | No | | --help | -h | Show help message | No |

Examples

Upload a file with default object key:

r2put --file ./data.bin --bucket production-v4

Upload with custom object key:

r2put -f ./local-image.png -b assets -k images/hero.png

Specify region for display:

r2put --file ./backup.tar.gz --bucket backups --region ENAM

Output

The CLI displays:

  • Header: Cloudflare R2 branding
  • File Info: Filename and size
  • Progress Bar: Animated upload progress with percentage
  • Stats: Transfer rate and estimated time remaining
  • Log Messages: Timestamped status updates
  • Footer: Bucket, encryption, and region info
  • Result: Object path and presigned download URL on completion

Example Output

C L O U D F L A R E   R 2
ULTRA-LOW LATENCY OBJECT STORAGE

› Uploading: neural-net-weights.bin  [4.2 GB]

✔ COMPLETE                                                95%
████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░

TRANSFER RATE: 842.4 MB/S                    EST. TIME: 4.2S

[13:53:02] › Initializing secure handshake with R2-E1...
[13:53:02] › Payload delivered. Starting edge-layer optimization.
[13:53:05] ✔ Deployment finalized. Resource available at edge node.

◘ BUCKET          ○ ENCRYPTION       ◈ REGION
production-v4     AES-256-GCM        WNAM (EDGE)

╔═══════════════════════════════════════════════════════════╗
║                      UPLOAD COMPLETE                      ║
║                                                           ║
║  OBJECT PATH                                              ║
║  production-v4/neural-net-weights.bin                     ║
║                                                           ║
║  PRESIGNED DOWNLOAD URL                                   ║
║  https://...r2.cloudflarestorage.com/...                  ║
║                                                           ║
╚═══════════════════════════════════════════════════════════╝

Environment Variables

| Variable | Description | |----------|-------------| | CLOUDFLARE_ACCOUNT_ID | Your Cloudflare Account ID | | R2_ACCESS_KEY_ID | R2 API Access Key ID | | R2_SECRET_ACCESS_KEY | R2 API Secret Access Key |

Development

# Install dependencies
pnpm install

# Build the CLI
pnpm build

# Watch for changes
pnpm dev

# Type check
pnpm typecheck

Related

License

MIT