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-mdx/cli

v0.1.0

Published

Multi-user CLAUDE.md management for teams. One file, personal views, zero conflicts.

Readme

claude-mdx

Multi-user CLAUDE.md management for teams. One file, personal views, zero merge conflicts.

The Problem

  • CLAUDE.md in .gitignore → worktrees lose it, Claude becomes "dumb"
  • CLAUDE.md tracked in git → 5 people, 5 styles, constant merge conflicts
  • ~/.claude/CLAUDE.md → not project-specific

The Solution

claude-mdx uses git smudge/clean filters to give each team member their own view of every CLAUDE.md in the repo — while storing all versions in a single tracked file.

IN GIT (what's stored)              ON YOUR DISK (what you see)
┌─────────────────────────┐         ┌─────────────────────────┐
│ <!--@shared-->           │ smudge  │ <!--@shared-->           │
│ # API Module             │ ──────► │ # API Module             │
│ Express.js + Jest        │         │ Express.js + Jest        │
│                          │         │                          │
│ <!--@umut-->             │         │ <!--@personal-->         │
│ Türkçe yorum yaz        │         │ Türkçe yorum yaz        │
│                          │         └─────────────────────────┘
│ <!--@ahmet-->            │         Umut only sees his section
│ English comments only    │
│                          │  clean
│ <!--@elif-->             │ ◄──────  Edits merge back safely
│ Always suggest perf tips │
└─────────────────────────┘

Works with every CLAUDE.md in every subdirectory. Works with worktrees.

Quick Start

First person (sets up the repo):

npx claude-mdx init
npx claude-mdx migrate     # converts existing CLAUDE.md files
git add .claude-mdx .gitattributes
git commit -m "chore: add claude-mdx multi-user support"

Teammates (after cloning):

bash .claude-mdx/setup.sh

That's it. Git filters handle everything automatically.

How It Works

  1. CLAUDE.md files are tracked in git (not gitignored)
  2. They contain sections for each team member, separated by <!--@name--> markers
  3. On checkout (smudge): you see only <!--@shared--> + your section
  4. On commit (clean): your edits merge back, other people's sections are preserved
  5. No conflicts: each person edits different sections of the file

Worktree Support

Since CLAUDE.md is tracked, git worktree add copies it automatically. The smudge filter runs on checkout → your worktree gets your personal view.

User Identity

Your identity is determined by (in order):

  1. git config claude-mdx.user (custom override)
  2. git config user.name (lowercased, normalized)
  3. $USER / $USERNAME environment variable

Set a custom identity:

git config claude-mdx.user your-name

Commands

| Command | Description | |---------|-------------| | claude-mdx init | Set up filters in current repo | | claude-mdx migrate | Convert plain CLAUDE.md files to multi-user format | | claude-mdx whoami | Show your identity | | claude-mdx status | Show filter configuration | | claude-mdx preview [file] | Preview your view of a file | | claude-mdx users [file] | List users with sections in a file |

File Format

<!--@shared-->
# Project Architecture
This content is visible to everyone.
Use Express.js with TypeScript.

<!--@umut-->
- Write comments in Turkish
- Use AAA pattern for tests
- Suggest custom AppError class for error handling

<!--@ahmet-->
- English comments only
- Prefer early returns
- Always mention performance implications

HTML comment markers are invisible in rendered markdown and ignored by Claude.

FAQ

Can I edit the shared section? Yes. Changes to <!--@shared--> propagate to everyone on next pull.

What if two people edit shared at the same time? Normal git merge — conflict only on the shared section, not personal sections.

What if I'm a new team member with no section yet? You'll see shared content + an empty personal section. Just add your preferences.

Does Claude see the markers? The markers are HTML comments. Claude processes the markdown content, the markers don't interfere.

License

MIT