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

createfileshare

v2.1.0

Published

**createfileshare** is an automated Node.js CLI tool that transforms your computer into a persistent, public file server. It securely exposes your local user directory to the internet via an auto-healing tunnel that can survive machine reboots and network

Readme

createfileshare

createfileshare is an automated Node.js CLI tool that transforms your computer into a persistent, public file server. It securely exposes your local user directory to the internet via an auto-healing tunnel that can survive machine reboots and network disconnections.


🚀 Features

  • Instant File Server: Instantly serves your C:\Users (Windows), /Users (macOS), or /home (Linux) directory on your local network.
  • Public Tunneling: Automatically binds your local server to a public, internet-accessible URL using localtunnel.
  • Zero Downtime (Self-Healing): A built-in network monitor constantly verifies both your internet connection and the public tunnel's health. If the tunnel goes stale or network drops, it immediately kills zombie processes and recycles the connection.
  • System Daemon Persistence: Automatically installs and configures pm2 to run the server entirely in the background. Setup includes OS-level startup scripts so your server boots up automatically whenever the computer restarts.
  • Webhook Reporting: Posts the active, live URL directly to a specified API endpoint (default: https://linksaver-psi.vercel.app/api/save) upon a successful connection so you never lose your dynamic address.

📦 Prerequisites

You need Node.js installed on your machine.


🛠️ Usage

Run the script using Node.js. You can optionally provide a folder name, followed by a username and password for basic authentication:

```bash node index.js [folder-name] [username] [password] ```

Example: ```bash node index.js secure-share admin supersecret123 ``` (If you don't provide credentials, it defaults to `admin` and `password123`)

What happens next?

  1. It creates the designated folder (defaulting to my-fileshare).
  2. Inside that folder, it generates a custom daemon script (index.js) tailored for your operating system.
  3. It installs necessary local dependencies (localtunnel, axios, serve).
  4. It globally installs the pm2 process manager.
  5. It configures the new daemon to run continuously in the background and sets it to auto-start on boot.

🛑 How to Stop or Remove

Because createfileshare integrates tightly with process managers to ensure 100% uptime, closing the terminal will not kill the server.

To view logs (to check connectivity or URLs): ```bash pm2 logs my-fileshare ```

To temporarily stop the server: ```bash pm2 stop my-fileshare ```

To completely remove and delete the persistent daemon: ```bash pm2 delete my-fileshare pm2 save ```


⚠️ Security Warning

Use with caution. While this tool now uses Basic Authentication, the data streaming through the tunnel exposes your entire user directory. Do not use this tool on a computer containing highly sensitive, unencrypted private keys, passwords, or personal documents unless you understand the risks. Make sure to define a strong username and password when executing the setup script.