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

create-cf-token

v1.0.3

Published

CLI for creating Cloudflare API tokens with interactive, guided prompts

Readme

create-cf-token

A CLI for creating Cloudflare API tokens (User Token) with an interactive, guided prompt flow.

Disclaimer: This project is not affiliated with, endorsed by, or supported by Cloudflare, Inc. Cloudflare and the Cloudflare logo are trademarks of Cloudflare, Inc.

Why

Creating API tokens through the Cloudflare dashboard involves navigating nested menus and clicking through dozens of checkboxes to scope permissions. This tool replaces that with a fast, terminal-native workflow — pick your accounts, select scopes, choose read/write access, and you're done.

Features

  • Interactive prompts with live fuzzy filtering — type to quickly narrow accounts and scopes without leaving the terminal
  • Scope selection with service-grouped permissions — permissions are grouped by service (DNS, Firewall, SSL, etc.) with a read/write access level picker
  • Auto-retry with restricted permission handling — if the API rejects a permission, the tool automatically excludes it and retries up to 50 times
  • Immediate revoke and optional cleanup — revoke the token you just created right away, or delete kept tokens from the current session before exit

Prerequisites

  • Node.js 22+
  • A Cloudflare Global API Key (found under My Profile > API Tokens)
  • Your Cloudflare account email

Optionally, set CF_EMAIL to automatically supply your email and skip the interactive email prompt. Optionally, set CF_API_TOKEN to automatically supply your Global API Key and skip the interactive API key prompt.

Install

bun create cf-token@latest      # via bunx
npm create cf-token@latest      # via npx
pnpm create cf-token@latest     # via pnpm dlx

Or install globally:

bun install -g create-cf-token@latest       # via bun
create-cf-token

npm install -g create-cf-token@latest       # via npm
create-cf-token

pnpm install -g create-cf-token@latest      # via pnpm
create-cf-token

Flow

  1. Authenticate with your Cloudflare email and Global API Key
  2. Select which accounts the token should cover by typing to filter the list
  3. Pick scopes and choose read or read+write access for each, again with live fuzzy filtering
  4. Name the token
  5. Token is printed to the terminal — save it immediately, it won't be shown again
  6. Choose whether to keep the just-created token, revoke it immediately, or delete kept session tokens before exiting

Dev

bun install
bun run dev           # run from source
bun run build           # build to dist/
bun run check           # lint check
bun run typecheck       # typecheck
bun run fix             # auto-fix issues

License

MIT

Disclaimer

[!NOTE] Almost all Lines of Code were generated utilising AI and not much manual oversight from me excl. review tools, if you spot an issue or something you don't like with it, submit an Issue / PR or fork it to implement this as you wish. Security Issues, submit via Discord or X Direct Messages. My handle on both platform's is mynameistito. mynameistito 31/03/2026

See Disclaimer above.