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

@habibsoula/claude-collab

v1.0.10

Published

Collaborate with teammates through Claude Code

Readme

Claude Collab

Real-time collaboration for Claude Code users. Route questions to the right teammate's Claude Code session based on domain expertise.

Why?

When developers work on the same project with Claude Code separately:

  • Developer A (Frontend) asks about the backend → their Claude lacks context
  • Manual copy-paste between sessions breaks flow
  • Both context windows get polluted with cross-domain info

Claude Collab fixes this. Questions automatically route to the expert's session, using their tokens and context.

How It Works

┌─────────────────┐         ┌─────────────────┐
│  Mohamed        │         │  Ahmed          │
│  (Frontend)     │         │  (Backend)      │
│                 │         │                 │
│  Claude Code    │◄───────►│  Claude Code    │
└────────┬────────┘   WS    └────────┬────────┘
         │                           │
         └───────────┬───────────────┘
                     │
              ┌──────▼──────┐
              │ Team Server │
              │ (WebSocket) │
              └─────────────┘

Quick Start

1. Install CLI

npm install -g @habibsoula/claude-collab

2. Create a Team

claude-collab init

This will:

  • Guide you through server deployment (Deno Deploy recommended)
  • Generate an invite code
  • Configure MCP integration

3. Invite Teammates

Share the invite code:

claude-collab join WXKM4NPR

4. Collaborate

In Claude Code, questions are automatically routed:

"How does the auth endpoint validate tokens?"

Claude Code recognizes this as a backend question and routes it to Ahmed's session.

Commands

| Command | Description | |---------|-------------| | claude-collab init | Create a new team | | claude-collab join <code> | Join existing team | | claude-collab status | Show team & online members | | claude-collab invite | Generate new invite code | | claude-collab config | View/edit configuration | | claude-collab leave | Leave the team |

MCP Tools

Once configured, Claude Code gains these tools:

  • ask_teammate - Ask a question to a specific role (e.g., "backend")
  • ask_service - Ask whoever owns a service (e.g., "payment-service")
  • broadcast - Ask all online team members
  • team_status - See who's online

Self-Hosting the Server

Option 1: Deno Deploy Playground (Easiest - No GitHub Required)

  1. Go to dash.deno.com/playground
  2. Replace the code with:
const TEAM_NAME = "your-team-name"; // Change this!

const { default: server } = await import(
  "https://raw.githubusercontent.com/HabibPro1999/claude-collab/main/server/deno/server.ts"
);
  1. Click Deploy
  2. Copy your URL (e.g., https://your-project.deno.dev)

Option 2: Run from URL (Any Machine with Deno)

TEAM_NAME="my-team" deno run --allow-net --allow-env \
  https://raw.githubusercontent.com/HabibPro1999/claude-collab/main/server/deno/server.ts

Option 3: Deno Deploy with GitHub

cd server/deno
deployctl deploy --project=my-team server.ts

Option 4: Local Development

cd server/deno
TEAM_NAME="my-team" deno run --allow-net --allow-env server.ts

Expose locally with ngrok: ngrok http 8080

Configuration

Config is stored in .claude/collab.yaml:

version: 1
team:
  id: "abc123"
  name: "my-startup"
  server: "wss://my-team.deno.dev"
  inviteCode: "WXKM4NPR"
me:
  name: "mohamed"
  role: "frontend"
  keywords:
    - react
    - css
    - ui

Architecture

  • Firebase Realtime Database - Global invite code registry (free tier)
  • Team Server - WebSocket broker you host (Deno Deploy free tier)
  • CLI - npm package for setup and MCP bridge
  • MCP Integration - Exposes collaboration tools to Claude Code

Security

  • All WebSocket connections use TLS (WSS)
  • Questions/answers pass through your server only (never stored)
  • Invite codes expire after 7 days
  • Each team hosts their own isolated server

Requirements

  • Node.js 18+
  • Claude Code with MCP support
  • Deno (for server, or use Docker)

License

MIT