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

commandcraft

v0.1.1

Published

Watch your code base rise - RTS-style interface for Claude Code

Readme

CommandCraft

Watch your code base rise - A classic RTS-style interface for Claude Code.

See your coding session transform into a living medieval city. Files become buildings, workers construct them in real-time, and bugs become enemy raids when tests fail.

Quick Start

npx commandcraft

That's it! The dashboard opens automatically and starts capturing Claude Code events.

What You'll See

  • Buildings: Each file you create becomes a building (components are houses, APIs are markets, tests are barracks)
  • Workers: Little villagers walk to construction sites and build your code
  • Bug Raids: When tests fail, enemy bugs attack your buildings
  • Tech Tree: Progress through ages as your project grows (Seed → MVP → Scale)
  • Minimap: Click to navigate, see workers and bugs in real-time
  • Sounds: Satisfying construction sounds, fanfares, and alerts

Features

Isometric City View

Your codebase visualized as a classic RTS-style city with:

  • 8 building types based on file type (component, page, API, utility, config, test, style, type)
  • 5 construction stages with animated progress
  • Workers that walk between buildings
  • Depth-sorted rendering with smooth camera controls

Real-time Updates

  • Files appear as buildings construct
  • Workers move to active construction sites
  • Bug raids spawn when tests fail
  • Achievements unlock as you hit milestones

Tech Tree Progression

  • Seed Stage: 1-10 files - Your project is born
  • MVP Age: 11-50 files - Core features built
  • Scale Age: 50+ files - Production ready

Achievement System

  • First File Created
  • First Test Passing
  • 10/25/50/100 Files
  • Zero Failing Tests
  • And more...

Controls

| Key | Action | |-----|--------| | WASD / Arrows | Pan camera | | Right-drag | Pan camera | | Left-click | Select building / Move unit | | Double-click | Open file in IDE |

Options

npx commandcraft [options]

Options:
  --help, -h       Show help message
  --no-browser     Don't open browser automatically
  --no-hooks       Don't configure Claude Code hooks
  --port <port>    Use a specific port (default: 3000)

How It Works

  1. Hooks: CommandCraft registers hooks with Claude Code to capture events
  2. Bridge: Events are sent to the dashboard via Server-Sent Events (SSE)
  3. Visualization: The dashboard renders your session as an isometric city
  4. State: Zustand manages building positions, workers, and game state

Manual Setup

If you prefer manual setup or want to develop:

# Clone the repo
git clone https://github.com/commandcraft/commandcraft
cd commandcraft

# Install dependencies
npm install

# Start development server
npm run dev

# Open dashboard
open http://localhost:3000/dashboard

Configure Claude Code Hooks Manually

Add to ~/.claude/settings.json:

{
  "hooks": [
    {
      "matcher": "CommandCraft",
      "hooks": [
        { "event": "PreToolUse", "command": "node /path/to/commandcraft/.claude/hooks/bridge.js" },
        { "event": "PostToolUse", "command": "node /path/to/commandcraft/.claude/hooks/bridge.js" },
        { "event": "Stop", "command": "node /path/to/commandcraft/.claude/hooks/bridge.js" }
      ]
    }
  ]
}

Tech Stack

  • Framework: Next.js 16 (App Router)
  • Rendering: HTML5 Canvas (2D isometric)
  • State: Zustand
  • Styling: Tailwind CSS
  • Animation: Framer Motion
  • Sound: Web Audio API (synthesized)
  • Real-time: Server-Sent Events (SSE)

Troubleshooting

Dashboard shows no activity

  1. Make sure CommandCraft is running (npx commandcraft)
  2. Start a new Claude Code session in a different terminal
  3. Check that hooks are configured: cat ~/.claude/settings.json

Buildings not appearing

  • Events are received when Claude Code uses tools (Write, Edit, Bash)
  • Try asking Claude to create a file

Sound not playing

  • Click anywhere on the page first (browser autoplay policy)
  • Check the sound toggle button in the top-right of the resource bar

Port already in use

npx commandcraft --port 3001

Contributing

Contributions welcome! See CONTRIBUTING.md for guidelines.

License

MIT

Links

  • Website: https://commandcraft.dev
  • Dashboard Demo: https://commandcraft.dev/dashboard
  • GitHub: https://github.com/commandcraft/commandcraft

Inspired by classic RTS games and the joy of watching things get built.