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

graphmycode

v1.0.14

Published

Visualize your codebase as an interactive knowledge graph — entirely in your browser.

Downloads

2,151

Readme

GraphMyCode

GraphMyCode video: https://youtu.be/M9WKj7Hn5m0?si=5U75N80ezUs5-Heg

License: PolyForm Noncommercial

Visualize your codebase as an interactive knowledge graph — entirely in your browser.

GraphMyCode parses your source code and renders it as a navigable graph of files, functions, classes, interfaces, and their relationships. No server. No uploads. No account. Everything runs locally using WebAssembly.

🌐 graphmycode.com


Five views

🕸️ Structural

Interactive graph of files, classes, functions, imports, and call relationships. Answer questions like:

  • What does this file import?
  • Who calls this function?
  • Which modules are isolated?
  • Follow the call stack easily

🧠 Semantic 3D

Groups nodes by code similarity using embeddings — regardless of folder structure. Useful for:

  • Finding duplicated logic
  • Detecting modules that do the same thing
  • Analyzing the real impact of a change beyond direct dependencies

🏙️ Technical Debt City

Renders the repository as a 3D city. Each node is a building grouped by folder. The taller the building in its district, the more technical debt. Helps you:

  • Identify the hardest files to change
  • Find the most coupled code
  • Decide what to refactor first

🔥 Dependency Heatmap

Shows real coupling between files. Bidirectional dependencies appear as orange edges, revealing:

  • Import cycles
  • Circularly coupled modules
  • Spaghetti code at a glance

⚡ Code Flow

Renders the internal execution flow of a single file as a directed flowchart. Each node represents a function, method, class, decision branch, loop, or error handler. Useful for:

  • Tracing how execution moves through a file
  • Seeing which functions call each other
  • Locating every if, loop, and try/catch at a glance
  • Exporting the full flowchart as SVG

CLI — visualize any project in one command

# npm
npx graphmycode

# pnpm
pnpx graphmycode

Run this inside any project directory. GraphMyCode will:

  1. Compress your code into a .zip (ignoring node_modules, .git, dist, etc.)
  2. Start a local server on 127.0.0.1 to serve the zip
  3. Open graphmycode.com in your browser and load your code automatically

Your code never leaves your machine. The zip is served from your own localhost — the website fetches it locally and processes everything in your browser.

Requires Node.js ≥ 20. No installation needed with npx or pnpx.

Examples

# Visualize the current project
cd ~/projects/my-app
npx graphmycode   # or: pnpx graphmycode

# Visualize any directory
cd ~/projects/my-api
npx graphmycode   # or: pnpx graphmycode

Export project context for AI agents

One click generates a CLAUDE.md (and optionally AGENTS.md) with the most connected nodes, folder structure, external dependencies, and detected code communities — ready to drop into your project so your AI agent starts with full context.

The main advantage: fewer tokens, better responses. With the file in place, your agent knows from the first message which files matter most, what each layer does, the stack in use, and the key entry points — without you having to explain it every time.


Optional: AI Q&A

Once the graph is loaded, you can connect your own AI provider (OpenAI, Gemini, Anthropic, or Ollama) to ask questions in natural language about your codebase. Your API key is stored only in your browser.

⚠️ When using a cloud AI provider, parts of your code will be sent to that provider. Use Ollama to keep everything local.


Languages supported

JavaScript, TypeScript, Python, Java, Go, Rust, C, C++, C#, PHP, Ruby, Swift


Tech stack

| Layer | Technology | |---|---| | Frontend | React 18, TypeScript, Vite | | Styling | Tailwind CSS v4 | | Graph rendering (2D) | Sigma.js + Graphology + ForceAtlas2 | | Graph rendering (3D) | Three.js / React Three Fiber | | Heatmap | Canvas 2D + graphology-layout-noverlap | | Code parsing | web-tree-sitter (WASM) | | Semantic embeddings | @huggingface/transformers (WASM) | | Community detection | Leiden algorithm | | Dimensionality reduction | UMAP |


Author

Built by Francisco Valero.


License

Copyright (C) 2026 Francisco Valero.

This project is licensed under the PolyForm Noncommercial License 1.0.0. Free for personal, educational, and non-commercial use. Commercial use is not permitted.

The gitnexus-shared dependency is also licensed under PolyForm Noncommercial (© Abhigyan Patwari).