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

cftun

v0.0.2

Published

A tiny Rust CLI that turns Cloudflare Tunnel into a free, persistent ngrok alternative for webhooks.

Downloads

314

Readme

cftun

A tiny Rust CLI that turns Cloudflare Tunnel into a free, persistent ngrok alternative for webhooks.

Set it up once. Run one command. Your webhook URL never changes.

Why

ngrok's free tier gives you a random URL every restart. That means updating Stripe, Lemon Squeezy, GitHub, or whatever dashboard every time you start coding.

If you already have a domain on Cloudflare, cloudflared can do the same thing for free — with a fixed subdomain. This CLI just removes the boilerplate. Based on this blog post I wrote.

Install

brew install blankeos/tap/cftun # Homebrew (macOS/Linux)
npm install -g cftun            # or npm
bun install -g cftun            # or bun
cargo binstall cftun            # or cargo-binstall (prebuilt binary, faster)
cargo install cftun             # or cargo (build from source)
curl -sSL https://raw.githubusercontent.com/Blankeos/cftun/main/install.sh | sh # or linux/macos (via curl)

From this repo during development:

cargo install --path .

Requires cloudflared installed and logged in:

brew install cloudflared
cloudflared tunnel login

Quick start

# Create a persistent tunnel
cftun create my-tunnel webhook.example.com 3000

# Run it
cftun run my-tunnel

Your webhook URL is now https://webhook.example.com and it stays that way every time you run it.

Commands

| Command | Description | | ---------------------------------------------------- | ------------------------------------------------------------- | | cftun create <name> <hostname> <port/url> | Create a tunnel, route DNS, and write the config | | cftun list / cftun ls | Show managed tunnels + other cloudflared tunnels | | cftun run <name> | Start the tunnel | | cftun show <name> | Print the config file for a tunnel | | cftun update <name> --hostname <new> --local <new> | Update the hostname or local target | | cftun import <name> <hostname> <port/url> | Adopt an existing cloudflared tunnel into cftun | | cftun status | Show all cloudflared tunnels with connection status | | cftun delete <name> [--cleanup] | Remove from cftun metadata, optionally delete from Cloudflare |

Local URL formats

cftun create my-tunnel webhook.example.com 3000          # http://localhost:3000
cftun create my-tunnel webhook.example.com 443           # https://localhost:443
cftun create my-tunnel webhook.example.com https://localhost:3000

How it works

  • Each tunnel gets its own config at ~/.cloudflared/cftun/<name>.yaml
  • cftun tracks metadata at ~/.cloudflared/cftun/tunnels.yaml
  • It runs cloudflared tunnel --config <file> run under the hood
  • DNS routes are handled via cloudflared tunnel route dns

License

MIT