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

codemap-claude

v1.0.5

Published

Interactive CLI tool for generating project codemaps with multi-folder selection and batch processing

Readme

📦 codemap-claude

Interactive CLI tool for generating project codemaps with multi-folder selection and batch processing.

Generate comprehensive code structure maps for your project with automatic framework detection, symbol extraction, and file statistics.


✨ Features

Interactive Folder Selection — Visual discovery of all project folders with file counts
Multi-Folder Processing — Generate codemaps for multiple folders in one execution
Flexible Selection — Support ranges (1-3), mixed (1,3-5), and "all"
Framework Detection — Automatically detects Rails, React, Express, Django, etc.
Multi-Language Support — TypeScript, JavaScript, Ruby, ERB, JSON, YAML
Batch Operations — Process multiple folders with success/failure summary
No Dependencies — Uses only Node.js stdlib (compiled JS has zero runtime dependencies)
Type Safe — Full TypeScript with declaration files


📦 Installation

Via npm (Global)

npm install -g codemap-claude
codemap-claude                    # Interactive mode
codemap-claude app,src            # Direct mode

Via npx (No Installation)

npx codemap-claude                # Interactive mode
npx codemap-claude app,client     # Direct mode

Local Installation

npm install --save-dev codemap-claude
npx codemap-claude                # Use via npx

🚀 Usage

Interactive Mode (Recommended)

Run without arguments to get interactive folder selection:

$ codemap-claude

Output:

🔍 Codemap Generation Tool

📂 Available Folders:

  1. app                   (180 files)
  2. client                (95 files)
  3. lib                   (42 files)
  4. server                (67 files)
  5. src                   (156 files)

💡 Enter folder numbers to select (e.g., "1,2,4" or "all" or "1-3"):
▶ Select folders: 1,2,5

Direct Mode (Command-line Arguments)

Specify folders directly:

# Single folder
$ codemap-claude app

# Multiple folders (comma-separated)
$ codemap-claude app,client,src

Selection Formats

| Format | Example | Meaning | |--------|---------|---------| | Individual | 1 | Folder 1 only | | Multiple | 1,3,5 | Folders 1, 3, 5 | | Range | 1-3 | Folders 1, 2, 3 | | Mixed | 1,3-5 | Folder 1 + folders 3-5 | | All | all | All available folders |


📊 Output

Codemaps are generated as JSON files in .claude/codemaps/:

.claude/codemaps/
├── app.codemap.json
├── client.codemap.json
├── src.codemap.json
└── ...

Codemap Structure

Each codemap contains:

  • Statistics — File count, lines of code, symbols
  • Structure — Complete directory tree
  • File Details — Per-file imports, exports, symbols
  • Framework Detection — Rails, React, Express, etc.
  • Languages — TypeScript, JavaScript, Ruby, etc.

🔧 Supported Languages

  • TypeScript/JavaScript — Classes, interfaces, exports, imports
  • Ruby — Classes, methods, modules, constants
  • ERB — Template includes, embedded Ruby
  • JSON — Top-level keys and structure
  • YAML — Configuration keys

🎯 Use Cases

1. Onboarding New Developers

Generate codemaps to help new team members understand project structure.

codemap-claude                    # Show all folders
# Select key folders: "app,config,lib"

2. AI Model Context

Use codemaps with Claude AI for context-aware code assistance.

3. Documentation Generation

Extract code structure for automated documentation.

4. Code Audits & Analysis

Analyze file counts, language distribution, and structure.


📚 Development

Build from Source

# Clone repository
git clone https://github.com/ioit-solutions/model-mesh.git
cd mm-codemap

# Install dependencies
npm install

# Build TypeScript
npm run build

# Test
npm run test

Development Mode

# Run directly from TypeScript
npm run dev

# Or use tsx
npx tsx src/codemap.ts

🔐 Security & Privacy

Open Source — Full transparency
No External APIs — All processing local
No Data Collection — Runs on your machine
Zero Dependencies — Only Node.js stdlib


📝 Notes

  • Folder discovery ignores common directories (node_modules, .git, .claude, dist, etc.)
  • File counting is quick and uses a 1000-file limit for performance
  • Folders are sorted by common names (app, src, client) first, then alphabetically
  • Multiple codemaps can be generated in one execution, sequentially

Made with ❤️ by IOIT Solutions

Transform your project structure into actionable intelligence.

codemap-claude