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

claude-code-crew

v0.1.4

Published

Web UI based crew management for Claude Code sessions

Readme

Claude Code Crew

npm version npm downloads CI Test Coverage License: MIT Node.js Version GitHub Issues GitHub Stars PRs Welcome Sponsor

A web-based interface for managing multiple Claude Code sessions across Git worktrees.

Demo

https://github.com/user-attachments/assets/a422e29d-eb0e-4cf2-bace-7f5e50f69cb5

Features

  • 🖥️ Browser-based Terminal: Full terminal emulation using xterm.js
  • 🔄 Real-time Session Management: Monitor session states (busy/waiting/idle)
  • 🌳 Git Worktree Operations: Create, delete, and merge worktrees
  • 🔌 WebSocket Communication: Real-time updates and terminal streaming
  • 🎨 Modern UI: Built with React and Material-UI
  • 📱 Single-port Architecture: Everything runs on one port for easy deployment

Prerequisites

  • Claude Code CLI must be installed and available in your PATH
  • Node.js 18+
  • Git repository (the tool manages Git worktrees)

Installation

npm install claude-code-crew

npm install -g claude-code-crew

Usage

Navigate to any Git repository and run:

cd /path/to/your/git/repo
claude-code-crew

The web interface will be available at http://localhost:3001

Available Features:

  • View Worktrees: See all git worktrees in the sidebar
  • Create Sessions: Click on any worktree to start a Claude Code session
  • Monitor Status: Real-time session state indicators (busy/waiting/idle)
  • Terminal History: Switch between sessions and see previous output
  • Manage Worktrees: Create, delete, or merge worktrees from the UI

Configuration

Environment Variables

  • PORT: Server port (default: 3001)
  • WORK_DIR: Working directory (default: current directory)
  • CC_CLAUDE_ARGS: Additional arguments for Claude Code sessions

Example with custom port:

PORT=8080 claude-code-crew

Architecture

Backend (Node.js + Express + Socket.io)

  • REST API for worktree operations
  • WebSocket server for terminal sessions
  • PTY management using node-pty
  • Session state detection and history preservation

Frontend (React + TypeScript + Material-UI)

  • Terminal emulation with xterm.js
  • Real-time session status updates
  • Worktree management UI
  • Responsive sidebar navigation

Single-port Design

  • Serves both API and web UI on the same port
  • No CORS configuration needed
  • Easy to deploy and use

Development

For contributors who want to develop claude-code-crew:

Setup

git clone https://github.com/to-na/claude-code-crew.git
cd claude-code-crew
pnpm install

Development Mode

# Start development environment
./start.sh

Build

pnpm run build

Tech Stack

  • Backend: Node.js, Express, Socket.io, node-pty
  • Frontend: React, TypeScript, Material-UI, xterm.js
  • Build Tools: Vite, TypeScript
  • Communication: WebSocket, REST API

Troubleshooting

Common Issues

"claude: command not found"

  • Install Claude Code CLI first: https://claude.ai/code

"No worktrees found"

  • Make sure you're running the command inside a Git repository
  • Check that the repository has at least one worktree

Port already in use

  • Change the port: PORT=8080 claude-code-crew
  • Or stop the process using port 3001

Terminal not showing history

  • Try clicking on the worktree again to reactivate the session
  • Check browser console for WebSocket connection errors

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

If you find this project useful, please consider:

  • ⭐ Starring the repository
  • 🐛 Reporting bugs or suggesting features
  • 💖 Becoming a sponsor