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

cloudflarefetchcli

v1.0.0

Published

πŸ” A beautiful read-only CLI for exploring and auditing Cloudflare infrastructure. Safe, secure, zero-risk insights for your domains, DNS, Workers, and more.

Readme

πŸ” cloudflarefetchcli

Read-Only. Beautiful. Insightful.

Explore your Cloudflare infrastructure with zero risk. No changes, no deletions, just pure visibility.

npm version License: MIT Node.js


✨ Why cloudflarefetchcli?

100% Read-Only Operations β€” Zero risk to your infrastructure. Perfect for:

  • πŸ” Auditing your Cloudflare setup
  • πŸ“Š Monitoring traffic and security
  • πŸ”Ž Exploring DNS configurations
  • πŸ“‹ Documenting your infrastructure
  • πŸ›‘οΈ Security reviews without touching anything

Beautiful Terminal Output β€” Because CLI tools should be gorgeous:

  • 🎨 Color-coded status indicators
  • πŸ“Š Formatted tables with borders
  • 🌍 Visual analytics and insights
  • βœ… Clear success/error messaging

πŸš€ Installation

npm install -g cloudflarefetchcli

πŸ” Quick Setup

1. Get Your Cloudflare API Token

  1. Visit Cloudflare API Tokens
  2. Click "Create Token"
  3. Use the "Read all resources" template
  4. Copy your token

2. Configure cloudflarefetchcli

# Save your API token (read-only recommended)
cloudflarefetchcli set-token YOUR_API_TOKEN

# Save your Account ID (optional, for Workers/Pages/Tunnels)
cloudflarefetchcli set-account YOUR_ACCOUNT_ID

# Verify configuration
cloudflarefetchcli config

πŸ’‘ Security Tip: Create a token with read-only permissions for maximum safety. The CLI never modifies anything.


πŸ“š Commands

🌐 Domain Exploration

# List all your domains with status and plan
cloudflarefetchcli domains

# Get comprehensive domain details
cloudflarefetchcli info example.com

# Check domain availability (WHOIS lookup)
cloudflarefetchcli check google.com

πŸ“‹ DNS Inspection

# View all DNS records beautifully formatted
cloudflarefetchcli dns example.com

# Export DNS records as JSON
cloudflarefetchcli dns example.com --raw

πŸ“Š Analytics & Insights

# View domain analytics (requires Pro plan)
cloudflarefetchcli analytics example.com

# See traffic by country
cloudflarefetchcli countries example.com --days 7

πŸ›‘οΈ Security Audit

# Review firewall rules
cloudflarefetchcli firewall example.com

# Check SSL/TLS configuration
cloudflarefetchcli ssl example.com

# View page rules
cloudflarefetchcli pagerules example.com

⚑ Cloudflare Platform

# List Workers scripts
cloudflarefetchcli workers

# View KV namespaces
cloudflarefetchcli kv

# List D1 databases
cloudflarefetchcli d1

# View R2 buckets
cloudflarefetchcli r2

# List Cloudflare Tunnels
cloudflarefetchcli tunnels

# View Pages projects
cloudflarefetchcli pages

# Check registered domains
cloudflarefetchcli registered

πŸ—‘οΈ Cache Inspection

# View cache status (shows what would be purged)
cloudflarefetchcli purge example.com --dry-run

🎨 Beautiful Output Examples

Domain List

☁️  Your Cloudflare Domains

──────────────────────────────────────────────────────────────────────
Domain                         Status       Plan            Zone ID
──────────────────────────────────────────────────────────────────────
example.com                    active       Free Website    abc123...
mydomain.net                   active       Pro             def456...
──────────────────────────────────────────────────────────────────────
βœ“ 2 domain(s) found

DNS Records

πŸ“‹ DNS Records for example.com

──────────────────────────────────────────────────────────────────────────
Type     Name                           Content                           TTL
──────────────────────────────────────────────────────────────────────────
A        @                              192.0.2.1                        3600 ☁️
CNAME    www                            example.com                      3600 ☁️
MX       @                              10 mail.example.com              3600
TXT      @                              v=spf1 include:_spf...           3600
──────────────────────────────────────────────────────────────────────────
βœ“ 4 record(s) found

WHOIS Lookup

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
πŸ” Checking: example.com
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Status:      ❌ REGISTERED

Registrar:   Example Registrar, LLC

πŸ“… Dates:
  Created:   2020-01-15
  Updated:   2024-01-10
  Expires:   2025-01-15
  βœ“ Expires in 312 days

πŸ”’ Domain Status:
  βœ“ ok - Active
  β›” clientTransferProhibited - Transfer locked

πŸ”’ Security & Privacy

  • Read-Only by Design β€” No modifications, ever
  • Local Config Storage β€” API tokens stored in ~/.config/cloudflarefetchcli/ with 0600 permissions
  • No Telemetry β€” Zero tracking or analytics
  • Environment Variable Support β€” Use CF_API_TOKEN and CF_ACCOUNT_ID if preferred

βš™οΈ Configuration

Environment Variables

export CF_API_TOKEN="your-api-token"
export CF_ACCOUNT_ID="your-account-id"

cloudflarefetchcli domains

Config File Location

  • Linux/macOS: ~/.config/cloudflarefetchcli/config.json
  • Windows: %APPDATA%\cloudflarefetchcli\config.json

πŸ“¦ Requirements

  • Node.js 18.0.0 or higher
  • whois command (for domain availability checks)
  • dig command (optional, for DNS resolution display)

Installing Dependencies

Ubuntu/Debian:

sudo apt-get install whois dnsutils

macOS:

brew install whois bind

RHEL/CentOS:

sudo yum install whois bind-utils

🀝 Contributing

Contributions welcome! This is a read-only tool focused on safe infrastructure exploration.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

πŸ“ Changelog

v1.0.0

  • ✨ Initial release
  • πŸ” Read-only domain exploration
  • πŸ“‹ DNS record inspection
  • πŸ“Š Analytics viewing
  • πŸ›‘οΈ Security audit features
  • ⚑ Workers, KV, D1, R2, Tunnels support
  • 🎨 Beautiful terminal output

πŸ‘₯ Credits


πŸ“„ License

MIT Β© tri