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

fortune-cookie-cli

v0.1.0

Published

๐Ÿฅ  Your terminal now predicts your coding future

Downloads

21

Readme

๐Ÿฅ  Fortune Cookie CLI

"Your code has a destiny. Let the terminal reveal it."

A CLI tool that predicts your coding future every time you save. Because every developer needs a little existential dread with their syntax highlighting.

Demo

โœจ What is this?

Fortune Cookie CLI adds mystical predictions to your coding workflow. Every time you save a file, run a command, or finish a task, it serves you a fortune cookie message with coding wisdom, warnings, and occasionally roasting.

๐ŸŽฏ Features

  • ๐Ÿฅ  Random fortune cookies on every save
  • ๐Ÿ”ฎ AI-powered predictions based on your code context
  • ๐ŸŽญ Multiple personalities (Zen Master, Hype Man, Roaster, Nostradamus)
  • ๐Ÿ“Š Fortune accuracy tracking (it learns!)
  • ๐ŸŽจ Beautiful terminal animations
  • ๐Ÿ”” Slack/Discord integration (share your fortunes)

๐Ÿš€ Installation

npm install -g fortune-cookie-cli
# or
npx fortune-cookie-cli

๐ŸŽฎ Usage

Basic

# Add to your project
fortune init

# Get a random fortune
fortune

# Get fortune based on your recent git activity
fortune --context

Auto-mode (Recommended)

# Watches your files and serves fortunes on save
fortune watch

# Specific personality
fortune watch --personality roaster

OpenClaw Integration

# Install as OpenClaw skill
openclaw skills install fortune-cookie

# Every command gets a fortune!
openclaw fortune

๐ŸŽญ Personalities

1. Zen Master ๐Ÿง˜

Calm, cryptic wisdom

  • "The bug you seek is within yourself."
  • "Empty your mind. The solution will come."
  • "This refactor will bring you peace."

2. Hype Man ๐ŸŽค

Over-the-top encouragement

  • "THIS COMMIT IS ABOUT TO BE LEGENDARY!"
  • "YOU'RE ABSOLUTELY CRUSHING IT!"
  • "NEXT PR = INSTANT MERGE!"

3. Roaster ๐Ÿ”ฅ

Brutal honesty

  • "This variable name screams 'I gave up'"
  • "Your code has more issues than a magazine stand"
  • "Is this function a novel? Because it's 500 lines long"

4. Nostradamus ๐Ÿ”ฎ

Mysterious predictions

  • "In three days, a bug will emerge from line 42"
  • "Your next PR will spark a 47-comment debate"
  • "A junior dev will break this within the week"

5. Shakespeare ๐ŸŽญ

Dramatic flair

  • "To deploy or not to deploy, that is the question"
  • "Alas, poor function, I knew thee well"
  • "Something wicked this way comes... it's your build"

๐ŸŽฏ Examples

$ fortune
๐Ÿฅ  "You will refactor this tomorrow."
   - Confidence: 97%

$ fortune --roast
๐Ÿ”ฅ "Function name `doStuff`? Really? That's the best you got?"
   - Burn level: Medium-High

$ fortune --hype
๐ŸŽค "BRO! THIS CODE IS ABOUT TO CHANGE THE GAME!"
   - Energy: MAXIMUM

๐Ÿ“ˆ Fortune Accuracy

Track how often fortunes come true:

fortune stats

๐ŸŽฏ Accuracy: 73%
๐Ÿ“Š Predictions: 42
โœ… Came true: 31
โŒ Wrong: 11
๐Ÿ”ฅ Roasts landed: 89%

๐Ÿ”ง Configuration

// .fortune-config.json
{
  "personality": "roaster",
  "frequency": "on-save",
  "show-confidence": true,
  "share-to-slack": false,
  "custom-fortunes": [
    "You will find the bug. Eventually.",
    "Coffee first, code later."
  ]
}

๐ŸŽจ Custom Themes

# ASCII art styles
fortune --style minimal    # Simple text
fortune --style cookie     # ๐Ÿฅ  ASCII cookie
fortune --style neon       # Cyberpunk glow
fortune --style retro      # Matrix-style

๐Ÿš€ Going Viral

Share your fortunes:

# Auto-tweet your best fortunes
fortune share --twitter

# Post to Slack channel
fortune share --slack #coding-fortunes

# Generate screenshot-ready image
fortune share --image

๐ŸŽช Easter Eggs

  • Type fortune --clippy for special Clippy mode
  • Save exactly at 11:11 for "lucky" fortunes
  • Friday deployments trigger special warnings
  • First commit of the day gets extra hype

๐Ÿ“ฑ Roadmap

  • [ ] VS Code extension
  • [ ] GitHub Action (comment fortunes on PRs)
  • [ ] Fortune leaderboard
  • [ ] AI-generated fortunes based on code analysis
  • [ ] Fortune cookie physical merch

๐Ÿ™ Credits

Inspired by:

  • Clippy (Microsoft Office Assistant)
  • Unix fortune command
  • Every developer who needs emotional support

๐Ÿ“„ License

MIT - Because even fortune cookies need to be open source