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

@getmikk/diagram-generator

v1.9.0

Published

> 7 Mermaid architecture diagrams generated from your lock file.

Readme

@getmikk/diagram-generator

7 Mermaid architecture diagrams generated from your lock file.

npm License: Apache-2.0

Generates Mermaid .mmd files from mikk.lock.json and mikk.json. All metrics are derived from the actual call graph — no manual input.

Part of Mikk — live architectural context for your AI agent.


Usage

Generated automatically by mikk init and mikk analyze. Or regenerate manually:

mikk visualize all          # all 7 diagrams
mikk visualize module <id>  # one module diagram

Programmatically:

import { DiagramOrchestrator } from '@getmikk/diagram-generator'

const orchestrator = new DiagramOrchestrator(contract, lock, projectRoot)
const { generated } = await orchestrator.generateAll()
// generated: string[] — paths of written .mmd files

Diagrams

All files are written to .mikk/diagrams/.

main.mmd

Full architecture overview. All modules as nodes, inter-module dependencies as directed edges. Entry points marked distinctly.

health.mmd

Module health dashboard. For each module, shows:

  • Cohesion — ratio of internal calls to total calls (higher = more self-contained)
  • Coupling — count of external function calls + cross-module file imports (lower = more independent)
  • Function count
  • Health indicator — 🟢 healthy (> 70%), 🟡 warning (40–70%), 🔴 critical (< 40%)

Metrics are computed directly from the call graph in the lock file — not estimated.

matrix.mmd

Dependency matrix. Grid of which modules depend on which. Identifies tight coupling and potential circular dependencies at a glance.

flow-entrypoints.mmd

Entry point call flow. Traces how calls propagate from declared entry functions into the rest of the codebase.

impact-<file>.mmd

Blast radius visualization for a specific file change. Generated by mikk context impact <file>. Shows the change origin and all impacted nodes.

modules/<id>.mmd

Per-module internal call graph. All functions in the module as nodes, internal function calls as edges. Exported functions marked distinctly.

capsules/<id>.mmd

Per-module public API capsule. Shows only the exported surface — function names, params, return types — without internal implementation detail.


Viewing Diagrams

Any Mermaid-compatible renderer works. Recommended:

  • VS Code: install the "Mermaid Preview" extension, then open any .mmd file
  • GitHub: Mermaid renders natively in .md files — embed with ```mermaid fences
  • Mermaid Live: paste at https://mermaid.live