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

cf-keys

v1.1.4

Published

Suite global de generación de claves y credenciales

Readme

cf-keys

Security & Utility Suite for Systems Engineering Modular toolkit for security, credential generation, and token automation in Node.js

FeaturesInstallationCLI UsageSDK UsageTech StackLicense


✨ Features

🔐 Security Modules

  • JWT Engine → Sign and verify JWT tokens for bots, APIs, and dashboards.
  • Secure Passwords → Generate cryptographically secure passwords using node:crypto.
  • Hash Integrity → Calculate and verify MD5, SHA-256, and SHA-512 hashes for data integrity.

🛠️ Infrastructure Utilities

  • YouTube Auth → Automated retrieval of poToken and visitorData for specialized integrations.
  • Data Utils → Instant encoding and decoding for Base64 and URL formats.
  • Hybrid Architecture → Seamlessly works as a global CLI and a programmatic SDK.

🚀 Installation

Global Usage (CLI)

Best for automation, sysadmin tasks, and quick terminal operations:

npm install -g cf-keys --foreground-scripts

As a Dependency (SDK)

For integration into your own projects (bots, servers, etc.):

npm install cf-keys

⚡ CLI Usage

After global installation, you can access the suite using the cf-keys command. If run without arguments, it displays a professional dashboard with the status and version.

⚡ CLI Usage

After global installation, you can access the suite using the cf-keys command. If run without arguments, it displays a professional dashboard.

| Command | Description | Example | | ---------- | ----------------------------------------- | ------------------------------- | | jwt sign | Interactive or flag-based JWT signing | cf-keys jwt sign | | password | Generate secure string (accepts length) | cf-keys password 32 | | youtube | Get YouTube poToken & visitorData | cf-keys youtube | | hash | Calculate file/text integrity (SHA/MD5) | cf-keys hash -a sha256 MyData | | utils | Instant Base64/URL Encoding & Decoding | cf-keys utils encode "hello" |

💡 Pro Tips:

  • Interactive JWT: Running cf-keys jwt sign without flags triggers a guided wizard to safely collect your payload and secret key.
  • Direct Arguments: The password command now supports direct numeric values for faster credential generation.
  • Help Menu: Use cf-keys --help to explore all available flags and options for each specific module.

💻 SDK Usage (Programmatic)

Import the logic directly into your TypeScript or JavaScript projects:

import { signJWT, getYoutubeTokens, generateSecurePassword } from "cf-keys";

async function setup() {
  // Automate YouTube token retrieval
  const tokens = await getYoutubeTokens();

  // Sign a new JWT for your internal services
  const token = signJWT({ service: "dashboard" }, "your_super_secret_key");

  // Generate a high-entropy 32-character password
  const password = generateSecurePassword(32);

  console.log({ tokens, token, password });
}

🛠️ Tech Stack


📄 License

This project is licensed under the MIT License.

You are free to use it in personal or commercial projects as long as proper attribution is maintained.