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

@souvikeet/file-share

v1.2.2

Published

Instant file and folder sharing CLI over local network and the internet via Cloudflare Tunnel

Readme

⚡ @souvikeet/file-share

Instant CLI file and folder sharing over local network and the internet via Cloudflare Tunnel. Direct HTTP downloads, smart port resolution, and terminal QR code.

npm version Cloudflare Tunnel License: MIT


🌟 Key Features

  • 📁 Interactive Folder & File Selection:
    • Prompts you for the folder path to share (defaults to current directory .).
    • Prompts for specific files, or press Enter (leave blank) to share all files in the folder.
  • 🔌 Port Collision Handling:
    • Checks if candidate port 30080 is free.
    • If occupied, interactively prompts for a free available port.
  • 🌐 Instant Cloudflare Quick Tunnel:
    • Automatically establishes a secure public https://*.trycloudflare.com tunnel.
    • Automatically downloads standalone cloudflared binary if not already installed.
  • 📱 QR Code in Terminal:
    • Generates a scannable QR code directly inside your terminal for quick smartphone access.
  • Direct HTTP Downloads:
    • Accessing /<filename> directly downloads the requested file.
    • If a single file is shared, visiting the root URL / directly triggers the download.
    • If multiple files/folders are shared, visiting root / gives a clean direct download index.
    • Subfolder navigation and one-click subfolder .zip archive downloads.
    • Accessing /download-all streams a single .zip archive of all shared files.
  • 🔒 Source Code Security & Obfuscation:
    • Proprietary source code is obfuscated before publishing to npm.

🚀 Quick Start

Run directly with NPX (No installation needed)

npx @souvikeet/file-share

Or install globally via NPM

npm install -g @souvikeet/file-share
file-share

📋 Interactive CLI Walkthrough

When you run file-share, it prompts you step-by-step:

╔═══════════════════════════════════════════════════════════════╗
║            ⚡  FILE SHARE CLI - Instant File Sharing  ⚡        ║
╚═══════════════════════════════════════════════════════════════╝
   Share local folders & files over LAN and Internet via Cloudflare

📁 Enter folder path to share [Default: . (current directory)]: ./my-folder
✔️  Folder selected: /home/geeks/my-folder

📊 Found 3 file(s) in selected folder.
   • presentation.pdf (3.4 MB)
   • design-mockup.png (1.2 MB)
   • notes.txt (12 KB)

📄 Enter specific file(s) to share (comma-separated, or leave BLANK to share all): 
✔️  Sharing 3 file(s) (All folder files)

🚀 Starting local HTTP server on port 30080...
✔️  Local server running successfully!
🌐 Establishing Cloudflare Tunnel to generate public URL... Connected!

┌────────────────────────────────────────────────────────────────────────┐
│ 📁 LOCAL & INTERNET FILE SHARE ACTIVE                                  │
│                                                                        │
│ Folder:       /home/geeks/my-folder                                    │
│ Files:        3 files (4.61 MB) [All files shared]                     │
│                                                                        │
│ 🔗 Access URLs:                                                        │
│   • Local:      http://localhost:30080                                 │
│   • Network:    http://192.168.1.50:30080                              │
│   • Cloudflare: https://random-subdomain.trycloudflare.com [PUBLIC]    │
│                                                                        │
│ 💡 Scan QR Code on your smartphone or share the link with anyone!      │
│ 🛑 Press Ctrl + C to stop sharing anytime.                             │
└────────────────────────────────────────────────────────────────────────┘

 📱 Scan to Open in Browser (https://random-subdomain.trycloudflare.com):
 ...

⚙️ CLI Flags

# Share specific directory
file-share --dir /path/to/my/folder

# Share specific files only
file-share --dir ./docs --files "summary.pdf, logo.png"

# Custom port
file-share --port 8080

# LAN/Local only (disable Cloudflare tunnel)
file-share --no-tunnel

# View help
file-share --help

| Flag | Shorthand | Description | Default | |------|-----------|-------------|---------| | --dir <path> | -d | Path to directory folder to share | Current directory (.) | | --files <list> | -f | Comma-separated list of filenames to share | All files in folder | | --port <number> | -p | Local HTTP server port | 30080 (or prompts if busy) | | --no-tunnel | | Disable Cloudflare public tunnel | false | | --help | -h | Display help information | | | --version | -v | Display version number | |


👤 Author

Souvik Ghosh


📄 License

MIT © 2026 Souvik Ghosh