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-p2p-chat

v1.0.1

Published

Peer-to-peer terminal chat for Claude Code users. No server, no signup, no cost. Just vibes.

Downloads

237

Readme

claude-p2p-chat

npm version npm downloads License: MIT

Peer-to-peer terminal chat for Claude Code users. No server. No signup. No cost. Just open a terminal and talk.

npx claude-p2p-chat
┌────────────────────────────────────────────────────────────────────────┐
│  CLAUDE CHAT  │  #lobby  │  phil  │  58 online  │  /help               │
├──────────┬──────────────────────────────────────────────┬──────────────┤
│channels  │ #lobby                                       │ online (3)   │
│          │                                              │              │
│ # lobby  │ 18:42  *** Welcome to Claude Chat!           │  phil (you)  │
│ # dev    │ 18:42  *** Connected! You are in #lobby.     │  alice       │
│          │ 18:42  alice  hey everyone!                  │  bob         │
│          │ 18:43  bob    yo, anyone working on agents?  │              │
│          │ 18:43  you    just shipped a new MCP server  │              │
│          │ 18:44  alice  nice! what does it do?         │              │
│          │                                              │              │
├──────────┴──────────────────────────────────────────────┴──────────────┤
│ message #lobby                                                         │
│ > _                                                                    │
└────────────────────────────────────────────────────────────────────────┘

Why?

You're in your terminal. You're using Claude Code. Wouldn't it be cool to chat with other people doing the same thing? No browser tab, no Electron app, no account creation — just a terminal chat that connects you with other devs through the magic of distributed hash tables.

Features

  • Zero infrastructure — Uses Hyperswarm DHT for peer discovery. No servers to run or pay for.
  • Public lobby — Everyone lands in #lobby automatically
  • Custom channels/join anything to create/join topic channels
  • Direct messages/dm username hey there
  • Local history — Chat history saved to ~/.claude-chat/
  • Cross-platform — Works on Linux, macOS, and Windows (WSL)
  • Beautiful TUI — Channels, user list, message area — all in your terminal

Install

Run without installing:

npx claude-p2p-chat

Install globally:

npm install -g claude-p2p-chat
claude-p2p-chat

Set your username:

claude-p2p-chat --name yourname

Or change it anytime in chat with /nick yourname.

Commands

| Command | Description | |---------|-------------| | /join <channel> | Join or create a channel | | /leave <channel> | Leave a channel | | /dm <user> <msg> | Send a direct message | | /nick <name> | Change your username | | /who | List online users | | /channels | List your channels | | /share | Show install/invite links | | /invite | Generate shareable invite message | | /clear | Clear message area | | /quit | Exit chat | | /help | Show help |

Keyboard

  • Tab — Cycle between channels, users, and input
  • Esc — Refocus the input box
  • Scroll — Mouse wheel in the message area
  • Ctrl+C — Quit (when not typing)

How it works

Every user joins the same Hyperswarm topic (a SHA-256 hash of the channel name). The DHT handles NAT traversal and peer discovery — no signaling server, no relay, no middleman. Messages go directly between peers over encrypted connections.

You ←──encrypted──→ Peer A
 ↕                    ↕
Peer B ←──────────→ Peer C

Chat history is stored locally in ~/.claude-chat/history/. There's no cloud — if you weren't online when a message was sent, you won't see it (just like IRC).

Claude Code Integration

Add this as a Claude Code skill so you can launch it with /chat:

  1. Create ~/.claude/skills/chat/SKILL.md:
---
name: chat
description: Open P2P Chat
---

Run via Bash: `npx claude-p2p-chat`

Requirements

  • Node.js 18+
  • A terminal that supports Unicode and 256 colors

License

MIT