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

random-auth-package

v0.2.0

Published

Ironic auth simulator with absurd mode, demo keys, and promo CLI.

Readme

random-auth-package

Ironic auth simulator inspired by the classic "install random auth package" joke.

Why this exists

  • For demos, memes, talks, and mock UIs.
  • To produce deterministic fake auth decisions using a seed.
  • To remind everyone: never use this in production.
  • To have fun while still shipping a couple of useful dev helpers.

Install

npm i random-auth-package

Install shows a transparent banner with creator handle @ketawave and demo commands. Set RAP_SILENT=1 to suppress the banner.

API

const {
  randomAuth,
  absurdAuth,
  generateStrongSecret,
  createDemoApiKey,
  buildPromoText,
  explain
} = require("random-auth-package");

const result = randomAuth({ userId: "kai", seed: 42, strict: true });
const absurd = absurdAuth({ userId: "boss", trustMeBro: true });
const secret = generateStrongSecret(40);
const demoKey = createDemoApiKey("staging", { seed: "team-seed" });
const promo = buildPromoText("@ketawave");

console.log(result);
console.log(absurd);
console.log(secret, demoKey);
console.log(promo);
console.log(explain(result));

randomAuth(options)

  • userId (string, default guest)
  • seed (string | number, optional)
  • strict (boolean, default false)
  • force (allow | deny, optional)
  • now (number timestamp, optional)

absurdAuth(options)

Intentionally insecure theater mode for demos only.

  • userId (string, default guest)
  • seed (string | number, optional)
  • password (string, optional)
  • trustMeBro (boolean, optional)
  • force (allow | deny, optional)
  • now (number timestamp, optional)

CLI

npx random-auth-package --user kai --seed 42
npx random-auth-package --user kai --strict --json
npx random-auth-package --absurd --user boss --trust-me-bro
npx random-auth-package --gen-secret 48
npx random-auth-package --demo-key staging --seed team42
npx random-auth-package --promo @ketawave

Promo ideas for @ketawave

  • Run npx random-auth-package --promo @ketawave, paste output as tweet/Telegram post.
  • Record a 10-second clip with --absurd --trust-me-bro output and pin npm link.
  • Ask users to share their funniest auth reason and tag @ketawave.

Safety

  • No external network calls.
  • No data storage.
  • No real auth logic.

This package is intentionally theatrical.