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

zelda-claude-code

v3.0.4

Published

Transform your Claude Code experience into an epic Zelda adventure with sounds, achievements, and combos!

Readme

🎮 Zelda Claude Code

Transform your coding experience into an epic Zelda adventure with sounds, achievements, combos, and real-time stats!

Cross-Platform Tests npm version Version Integration Sounds Achievements

🎮 Try the Live Demo | 📦 NPM Package

✨ What is this?

Zelda Claude Code gamifies your coding experience! Every command plays iconic Zelda sounds, successful streaks build epic combos, and you unlock achievements as you master your craft. Everything works seamlessly inside Claude Code - no external tools, no manual scripts, just pure integrated magic!

🚀 Installation

Method 1: NPM (Recommended) - 10 seconds!

# Install globally via npm (v3.0.0 - spec compliant!)
npm install -g zelda-claude-code@latest

# IMPORTANT: Restart Claude Code
exit
# Start Claude Code again

Works on all platforms: macOS, Linux, Windows, WSL

Method 2: From Source

# Clone the repository
git clone https://github.com/linjiw/claude-code-but-zelda.git
cd claude-code-but-zelda

# Run the universal installer (NEW!)
python3 universal_installer.py
# Or use the classic installer
./install.sh

# IMPORTANT: Restart Claude Code
exit
# Start Claude Code again

Verify Installation

# Check everything is working
python3 verify_and_fix_installation.py

# Test the sounds
./demo_sounds.sh

That's it! The installer handles everything automatically. ✨

🎯 Version 3.0.0 - Full Claude Code Compliance

NEW: 100% compliant with official Claude Code documentation!

  • Universal Installer: Works on any system, any condition
  • Spec-Compliant Hooks: Follows official Claude Code hook specification
  • Self-Healing Installation: Auto-fixes configuration issues
  • Cross-Platform Support: macOS, Linux, Windows, WSL
  • Zero Breaking Changes: Backward compatible with all features

⚡ Performance Optimizations

Blazing fast performance with 80-98% improvements!

  • Sound Caching: Preloaded sounds with 90% cache hit rate
  • Smart Debouncing: 97.5% reduction in redundant operations
  • Async File I/O: 98.3% faster file operations
  • Performance Monitoring: Real-time metrics tracking

All optimizations are automatic and backward compatible!

🎮 How to Use

Everything is controlled through @zelda commands directly in Claude Code:

📊 Core Commands

| Command | Description | Example | |---------|-------------|---------| | @zelda help | Show all available commands | @zelda help | | @zelda stats | View your coding statistics | @zelda stats | | @zelda achievements | Check achievement progress | @zelda achievements | | @zelda combo | See current combo streak | @zelda combo | | @zelda config | View configuration settings | @zelda config | | @zelda config <key> <value> | Update a setting | @zelda config volume 75 |

💡 Real Examples

# Check how you're doing
@zelda stats

# See what you've unlocked
@zelda achievements  

# Check your current streak
@zelda combo

# Adjust the volume
@zelda config volume 50

# Turn off combo sounds
@zelda config sounds.combo false

# Enable achievement notifications
@zelda config notifications.achievements true

🎵 Sound Events

Experience these epic sounds as you code:

| Event | Sound | Triggered When | |-------|-------|----------------| | ✅ Success | Puzzle Solved | Any command succeeds | | ❌ Error | Damage/Cooking Fail | Command fails | | 📝 Todo Done | Shrine Complete | Mark todo as complete | | 🏆 Achievement | Item Get (Large) | Unlock new achievement | | 🔥 Combo 3x | Rupee | 3 successes in a row | | 🔥 Combo 5x | Heart Get | 5 successes streak | | 🔥 Combo 10x | Secret Found | Epic 10x combo! | | 💥 Combo Break | Game Over | Streak ends | | 🔍 Search | Discovery | Find search results | | 🚀 Session Start | Village Theme | Begin coding session | | 🌙 Session End | Night Theme | End coding session |

🏆 Features in Detail

📈 Statistics Tracking

Track your coding journey with detailed metrics:

Session Stats:

  • Commands executed this session
  • Success/failure ratio
  • Current combo streak
  • Session duration
  • Tools used

All-Time Stats:

  • Total commands lifetime
  • Overall success rate
  • Longest combo ever
  • Total sessions
  • Favorite tools
  • Achievement progress

⚡ Combo System

Build epic streaks with consecutive successes:

| Combo Level | Commands | Sound | Reward | |-------------|----------|-------|--------| | 🥉 Bronze | 3 | Rupee | Confidence boost | | 🥈 Silver | 5 | Heart Get | Momentum building | | 🥇 Gold | 10 | Secret Found | Epic streak! | | 💎 Diamond | 20 | Major Discovery | Legendary! | | 🔥 Master | 50 | Ultimate Power | Triforce worthy! |

Tips:

  • Combos reset on any error
  • Higher combos = cooler sounds
  • Track best combo in stats
  • Some achievements require specific combos

🎖️ Achievement System

Unlock 11+ achievements across multiple categories:

Progress Milestones:

  • 👶 First Steps - Your first command (1)
  • 📚 Apprentice Coder - Getting started (10)
  • ⚔️ Journeyman - Making progress (50)
  • 🏆 Master Coder - Proven skill (100)
  • 👑 Legendary Hero - True mastery (500)

Combo Achievements:

  • 🔥 Combo Novice - 5x combo streak
  • 💥 Combo Master - 10x combo streak
  • Combo Legend - 20x combo streak

Perfection Achievements:

  • 💯 Perfectionist - 20 commands without error
  • 🎯 Sharpshooter - 50 error-free commands
  • 🌟 Flawless Victory - 100 perfect commands

⚙️ Configuration Options

Customize everything without leaving Claude Code:

Sound Settings:

@zelda config volume 75                    # Set volume (0-100)
@zelda config sounds.enabled true          # Enable all sounds
@zelda config sounds.combo true            # Combo sounds on/off
@zelda config sounds.achievements true     # Achievement sounds
@zelda config sounds.ambient false         # Ambient sounds

Notification Settings:

@zelda config notifications.achievements true   # Achievement popups
@zelda config notifications.milestones true    # Milestone alerts
@zelda config notifications.combos true        # Combo notifications

📊 What Your Stats Look Like

# 📊 Zelda Coding Statistics

## Session Stats
- **Commands:** 42
- **Success Rate:** 92.8%
- **Current Streak:** 7 🔥
- **Best Combo:** 15

## All-Time Stats
- **Total Commands:** 1,337
- **Success Rate:** 89.2%
- **Longest Streak:** 28 🔥
- **Total Sessions:** 24
- **Favorite Tool:** Bash (42%)

*Keep coding, Hero of Hyrule!* 🗡️✨

🧪 Testing & Demos

Verify everything works perfectly:

# Run comprehensive unit tests
python3 test_zelda_system.py

# Run integration tests
python3 test_integration.py

# Demo all sounds (hear them all!)
./demo_sounds.sh

# Test specific sound
python3 scripts/play_sound.py success

🔧 Troubleshooting

Sounds Not Playing?

  1. Check volume:

    @zelda config volume 100
  2. Verify sounds enabled:

    @zelda config sounds.enabled true
  3. Test audio player:

    • macOS: which afplay (should exist)
    • Linux: which aplay or which paplay
    • Windows: PowerShell available
  4. Test directly:

    python3 scripts/play_sound.py success

Commands Not Working?

  1. Did you restart Claude Code? (Required after install!)

  2. Check hooks installed:

    cat ~/.claude/settings.json | grep zelda_hook
  3. Verify hook exists:

    ls hooks/zelda_hook.py
  4. Re-run installer:

    ./install.sh

Stats Not Saving?

  1. Check data directory:

    ls -la ~/.zelda/
  2. Verify permissions:

    touch ~/.zelda/test.txt && rm ~/.zelda/test.txt

Achievements Not Unlocking?

  • Some achievements need specific conditions
  • Check progress: @zelda achievements
  • Stats persist across sessions
  • First command always unlocks "First Steps"

🎨 Customization

Adding Custom Sounds

  1. Add .wav files to sounds/ directory
  2. Name them to match events:
    • success.wav - Command success
    • error.wav - Command failure
    • achievement.wav - Achievement unlock
    • etc.

Requirements:

  • Format: WAV (preferred) or MP3
  • Duration: ≤10 seconds
  • Size: <5MB recommended

Custom Sound Packs

Create themed sound packs:

sounds/
├── zelda-classic/     # Retro 8-bit sounds
├── zelda-modern/      # BOTW/TOTK sounds
└── zelda-custom/      # Your mix

📁 Project Structure

zelda-claude-code/
├── install.sh                  # One-click installer
├── zelda_core.py              # Core game logic (all-in-one)
├── hooks/
│   └── zelda_hook.py          # Claude Code integration
├── scripts/
│   ├── play_sound.py          # Sound player
│   └── play_sound_async.py    # Async sound player
├── sounds/                    # 25+ Zelda sounds
│   ├── success.wav
│   ├── error.wav
│   ├── achievement.wav
│   └── ...
├── test_zelda_system.py       # Unit tests
├── test_integration.py        # Integration tests
└── demo_sounds.sh            # Sound demo script

💡 Pro Tips

  1. Build Combos: Chain commands for epic streaks
  2. Perfect Runs: Error-free sessions unlock special achievements
  3. Explore Tools: Use different Claude Code tools for variety
  4. Track Progress: Regular @zelda stats keeps you motivated
  5. Custom Volume: Find your perfect volume level
  6. Silent Mode: Working in public? Disable sounds temporarily

🤝 Contributing

We welcome contributions! Areas to improve:

  • 🎵 New sound packs
  • 🏆 More achievements
  • 📊 Advanced statistics
  • 🎮 New combo mechanics
  • 🌍 Localization
  • 🎨 Themes

📜 License

MIT License - Use freely!

Note: Zelda is a trademark of Nintendo. Please obtain sounds legally.

🙏 Credits

  • 🎮 Nintendo for The Legend of Zelda
  • 🤖 Anthropic for Claude Code
  • 💻 Open source community
  • 🎵 Sound designers and musicians

🚨 Important Notes

  • Restart Required: Always restart Claude Code after installation
  • Data Privacy: All data stored locally in ~/.zelda/
  • No Network: Everything runs locally, no data sent anywhere
  • Persistence: Stats save automatically
  • Updates: Pull latest and re-run ./install.sh

🎯 Philosophy

Our design philosophy is seamless integration:

What you CAN do:

  • Use @zelda commands naturally
  • Everything works inside Claude Code
  • Automatic sound feedback
  • Real-time stats tracking

What you DON'T need:

  • Leave Claude Code
  • Run Python scripts manually
  • Edit config files
  • Use external tools

📞 Support

Having issues? Try these:

  1. Check Troubleshooting section
  2. Run test suite: python3 test_zelda_system.py
  3. Demo sounds: ./demo_sounds.sh
  4. Reinstall: ./install.sh

🚀 Ready to Level Up Your Coding?

  1. Install in 30 seconds
  2. Restart Claude Code
  3. Type @zelda help
  4. Start your adventure!

May the Triforce guide your code! 🗡️✨

Happy coding, Hero of Hyrule!