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

tunnel-notify

v1.0.13

Published

Instantly expose localhost via a secure Cloudflare Tunnel and send the live URL to your Telegram app.

Readme

Tunnel Notify

A lightweight, on-demand Node.js CLI tool that instantly exposes your local development server to the internet using a secure Cloudflare tunnel and automatically pushes the public HTTPS link right to your phone via Telegram.

No account registration required, no tedious Ngrok limits, and no permanent background daemons. It only uses resources while you are actively exposing your app!


Why use this?

If you build web apps, sometimes you need to quickly check how localhost looks on your mobile device, or quickly share a demo link with a client.

With Tunnel Notify, instead of manually creating a tunnel and copy-pasting links, you simply type:

tunnel-notify 3000

The tool instantly fires up a Cloudflare Tunnel, extracts the temporary `trycloudflare.com` URL, and does two things:

  1. Prints a QR Code right in your terminal so you can scan it instantly with your phone camera.
  2. Sends a push notification directly to your private Telegram chat so you can open it on your phone or forward it to a client.

(The terminal output is fully colorized, and the `cloudflared` binary is downloaded entirely automatically during installation. You do NOT have to install it manually!)


Installation

npm install -g tunnel-notify

Setup (Optional, One Time)

If you want the CLI to automatically send links to your phone, you need to connect your Telegram account. Simply run:

tunnel-notify login

The terminal will guide you exactly on how to get:

  1. A Bot Token (from `@BotFather`)
  2. Your Chat ID (from `@userinfobot`)

It safely stores these in a local config file on your machine.


Usage

Whenever you have a local server running (like Next.js on port 3000, or a Flask app on port 5000), open a new terminal tab and type:

tunnel-notify <port>

Example:

# Start your React app
npm run dev 

# In another terminal, expose port 3000
tunnel-notify 3000

You will instantly see a beautiful colored output in your terminal framing a scannable QR code, and your Telegram app will receive a message reading: `[SUCCESS] Tunnel Active for port 3000! URL: https://random-words.trycloudflare.com`

When you are done, simply press Ctrl+C in the terminal to cleanly destroy the tunnel.


Debugging

If your tunnel isn't starting properly or Cloudflare is throwing an error, you can use the verbose flag to see the raw logs directly from the tunnel:

tunnel-notify 3000 -v

How it Works

  1. Runs a lightweight Cloudflare Tunnel as a child process.
  2. Intercepts the generated tunnel URL from stderr.
  3. Fires a single HTTP POST request to the Telegram Bot API to deliver your link.
  4. Cleans up gracefully upon exit.