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 🙏

© 2024 – Pkg Stats / Ryan Hefner

instant-public-folder

v1.0.6

Published

Give a folder a public URL to enable no-frills https file downloading

Downloads

12

Readme

instant-public-folder

Using ngrok, instantly give a folder from your computer a public url. Allow your friends to transfer large files without first uploading to the cloud, and without authenticating.

Usage

npx instant-public-folder

OR

npm -g instant-public-folder
instant-public-folder

And send the https url from the ngrok interface to your friends!

How to Zip

You probably want to zip any large files first. Here are some ways to do that on OSX:

brew install p7zip
7z a name-of-my-archive.7z file1 file2 fileN
brew install zip
zip -9 -u name-of-my-archive.zip file1 file2 fileN
tar -czf name-of-my-archive.tar.gz file1 file2 fileN

Or just right click a folder in Finder and choose "Compress" :)

Features / Notes

  • Built in directory listing
  • Finds a random port, so run as many as you'd like!
  • Uses send module, which supports resuming, streaming, and range requests.
  • Allows anyone to download a file
  • Nearly zero security (at least has HTTPS!)
  • No auth / accounts required (unless you want to use paid ngrok)
  • Note: ngrok is a closed-source binary, and its tunnels expire unless you pay/auth. Generally most downloads complete within the expiration window, assuming you have a fast enough connection.

Why???

Sometimes I find the need to send a large file to a friend. Large meaning > 1GB. I could upload it to Google Drive, or Dropbox, or Mega Upload, but what if your file is larger than your limit?

Additionally, an HTTP link is much easier for an end user to manage than a cloud service link. No authentication, no login, no signups. Just the file.

It's actually non-trivial to work through a network's NAT/Firewall, so this module uses ngrok to provide a public, one-time URL. I think this is a nice balance of security through obscurity and ease of use.

License

ISC