pnpm-viz
v1.0.16
Published
Visual companion for pnpm
Maintainers
Readme
pnpm-viz
Visual companion for pnpm
pnpm-viz parses your pnpm-lock.yaml and pnpm-workspace.yaml to generate interactive dependency graphs, version conflict heatmaps, and workspace flow diagrams.
Features
- Interactive CLI: View workspace structure and duplicate stats directly in your terminal.
- Heatmap Analysis: Identify duplicate packages and potential version conflicts.
- Web Dashboard: Explore your dependency graph interactively in the browser.
- Export: Export your dependency graph to JSON for further analysis.
Installation
npm install -g pnpm-viz
# OR run directly
npx pnpm-vizUsage
CLI Overview
Run in your project root:
pnpm-viz .Heatmap Mode
View duplicate packages in the terminal:
pnpm-viz . --heatmapWeb Dashboard
Launch the interactive web visualization:
pnpm-viz serveExport Data
Export the parsed graph to JSON:
pnpm-viz export . -o graph.jsonDevelopment
- Clone the repo.
- Install dependencies:
npm install - Build the project:
npm run build - Run locally:
node dist/cli/index.js .
Publishing
To publish a new version to npm:
Login to npm (if not already logged in):
npm loginBump the version:
npm version patch # or minor, majorPublish:
npm publish(This will automatically run
npm run buildbefore publishing)
License
MIT
