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

walkmap

v0.1.3

Published

Fast codebase indexer for LLMs — oxc-parser powered AST analysis

Readme


✨ Overview

Walkmap is a high-performance codebase indexer designed for LLM agents, code automation, and developer tooling.

It parses your entire repository and produces a structured, queryable representation of your code — enabling:

  • Smarter AI agents
  • Faster code navigation
  • Reliable automation pipelines
  • Incremental analysis at scale

🚀 Features

Walkmap analyzes every .ts, .tsx, .js, and .jsx file and generates:

🧠 Code Intelligence

  • Symbols — functions, classes, interfaces, enums, variables, arrows (with signatures + locations)
  • Call graph — function-to-function relationships
  • Type hierarchyextends / implements
  • API surface — exported symbols per file

🔗 Dependency Graph

  • Imports / exports graph (imports / importedBy)
  • Entrypoint detection
  • Dead code detection (heuristic)

📦 Structured Code Access

  • Code chunks — semantic slices with full text (LLM-friendly)
  • Test mapping — source ↔ test files
  • Environment usageprocess.env.*

⚙️ Quality & Insights

  • TODO extractionTODO, FIXME, HACK, etc.
  • Complexity analysis — McCabe + hotspots
  • Orphan file detection

🤖 LLM-Oriented Artifacts

Walkmap goes beyond indexing — it generates semantic artifacts to guide AI systems:

  • Workspace manifest
  • Pipeline description
  • Glossary & FAQ
  • Embeddings manifest (RAG-ready)
  • Dependency rationale
  • Contracts & invariants

📦 Installation

Using npm

npm install -D walkmap
npx walkmap

Using Bun

bun add -d walkmap
bunx walkmap

Global install (optional)

npm install -g walkmap
walkmap

🛠 Usage

Run in the root of your project:

npx walkmap

Or via script:

{
  "scripts": {
    "walkmap": "walkmap",
    "walkmap:force": "walkmap --force"
  }
}

⚡ CLI Flags

| Flag | Description | |------|------------| | --force | Ignore cache and re-index everything | | --quiet | Minimal logs | | --verbose | Show cache hits and indexed files | | --json | Output structured JSON (CI-friendly) | | --no-inject | Disable CLAUDE.md / AGENTS.md injection | | -j, --concurrency <n> | Parallel parsing (default: 8) |


♻️ Incremental Mode

Walkmap is optimized for large codebases via incremental indexing:

  • metadata.json → file hash tracking
  • .workspace/cache/per_file.json → cached extraction

Only modified files are re-parsed.

You can force a full rebuild:

npx walkmap --force

📁 Output Structure

All artifacts are generated under:

.workspace/

Core Index

  • repo_map.json — file metadata
  • symbols.json — extracted symbols
  • import_graph.json — dependency graph
  • chunks.json — LLM-friendly code slices
  • dead_code.json — unused exports / orphan files
  • call_graph.json — function relationships
  • complexity.json — hotspots
  • env_vars.json — env usage
  • test_map.json — test associations

LLM / Automation Layer

  • workspace_manifest.json
  • entrypoints.json
  • pipeline.json
  • glossary.json
  • faq_llm.json
  • embeddings_manifest.json
  • dependency_rationale.json
  • external_contracts.json

🧩 Ignore Rules

Walkmap skips common directories by default:

  • node_modules
  • .git
  • dist

You can extend this using:

.walkmapignore

🧪 Development

npm install
npm run build
npm run typecheck
npm run generate

Force re-index:

npm run generate:force

Run built version:

node dist/index.js --json

🏗 Architecture

Pipeline:

walk → filter → parse → assemble → write

Powered by:

  • Parser: oxc-parser (Rust-based, high performance)
  • Runtime: Node.js ≥ 18 / Bun
  • CLI: lightweight, no native bindings

🎯 Use Cases

  • LLM agents (Claude, GPT, custom pipelines)
  • RAG over codebases
  • Code search & navigation
  • Static analysis tooling
  • Developer productivity platforms

📜 License

MIT