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

dmapper

v0.0.1-aplha.3

Published

[![npm version](https://img.shields.io/npm/v/dmapper.svg?style=flat-square)](https://www.npmjs.com/package/dmapper) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square)](LICENSE) [![CI Status](https://img.shields.io/github

Readme

Monorepo Dependency Mapper 🗺️

npm version License: MIT CI Status

📦 功能特性

  • 智能依赖识别
    自动识别 workspace: 协议和隐式依赖
  • 多格式输出
    支持生成 DOT / Mermaid / JSON 格式
  • 深度分析
    区分开发依赖与生产依赖
  • 质量保障
    严格模式校验依赖有效性
  • 可视化支持
    生成可直接渲染的架构图

🚀 快速开始

安装

npm install -g dmapper
# 或
npx dmapper [command]

基础使用

# 生成依赖图(默认DOT格式)
dmapper analyze -p ./packages

# 生成Mermaid流程图
dmapper analyze -f mermaid > architecture.md

# 生成JSON报告
dmapper analyze -f json > dependencies.json

⚙️ 配置选项

| 参数 | 说明 | 默认值 | |---------------|-------------------------------|-----------| | -p, --path | monorepo 包目录路径 | ./packages| | -f, --format| 输出格式 (dot/mermaid/json) | dot | | -t, --type | 依赖类型 (prod/dev/all) | all | | -s, --strict| 启用严格模式校验 | false | | -e, --externals | 包含外部依赖 | false | | -v, --verbose | 显示详细日志 | false |


🌟 使用示例

1. 生成交互式架构图

dmapper analyze -f dot | dot -Tsvg > graph.svg

2. 检测无效依赖

dmapper analyze --strict -t dev

3. CI 集成示例

# 检查循环依赖
dmapper analyze -f json | jq 'if .warnings|length > 0 then exit 1 else exit 0 end'

output

cd vuejs/core && ./dmapper > graph.dot

vue


📜 开源协议

本项目采用 MIT License

可视化

https://edotor.net/