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

flowmap-cli

v1.0.9

Published

Visualize your codebase as an interactive flow graph

Downloads

889

Readme

flowmap-cli

Flowmap 🗺️

Visualize your codebase as an interactive flow graph. Understand file dependencies, function calls, and project structure at a glance — without reading a single line of code.

What it does

Flowmap analyzes your local project and generates an interactive node graph showing:

  • Every file as a node, color coded by type (component, hook, service, util)
  • Import and call relationships as edges between files
  • Functions inside each file with complexity scores
  • Dead code detection — files nothing imports
  • Circular dependency warnings
  • Click any function to see its code, what it calls, and what calls it

Install & Run

Primary UX:

flowmap-cli

Optional explicit paths:

flowmap-cli .
flowmap-cli ./my-project

Absolute path examples:

flowmap-cli D:\your\project\folder
flowmap-cli /Users/yourname/projects/my-app

With npx:

npx flowmap-cli
npx flowmap-cli .
npx flowmap-cli /path/to/your/project

By default, Flowmap opens automatically in your browser at http://localhost:3001.

CLI Flags

  • --watch
    Auto-refreshes the graph when files change in the analyzed project.
  • --port <number>
    Runs Flowmap on a custom port.
  • --no-open
    Starts the server without launching your browser.

Examples:

npx flowmap-cli . --watch
npx flowmap-cli /path/to/your/project --watch
npx flowmap-cli /path/to/your/project --port 3002
npx flowmap-cli /path/to/your/project --watch --port 3002 --no-open

Project Usage in package.json

Add scripts in your project package.json:

{
  "scripts": {
    "flowmap-cli": "flowmap-cli",
    "flowmap-cli:watch": "flowmap-cli . --watch",
    "flowmap-cli:port": "flowmap-cli . --port 3002",
    "flowmap-cli:ci": "flowmap-cli . --no-open"
  }
}

Then run:

npm run flowmap-cli
npm run flowmap-cli:watch
npm run flowmap-cli:port
npm run flowmap-cli:ci

Supported Languages

  • JavaScript (.js, .jsx)
  • TypeScript (.ts, .tsx)

Java / Spring Boot support coming soon.

Features

  • 🔍 Search files and functions — Ctrl+K
  • 🎯 Click a node to inspect its functions, imports, line count
  • 💡 Hover a node to highlight only its direct connections
  • ⚠️ Circular dependency detection
  • 🪦 Dead code detection
  • 🗺️ Minimap for large projects
  • 🔄 Analyze another project without restarting

Tech Stack

  • Frontend: React + TypeScript + Vite + React Flow
  • Backend: Node.js + Express
  • Analysis: Static regex-based AST parsing

License

MIT