GeezerVison is showing github.com — Dependency graph visualization for monorepos (like nx graph) · Issue #1182 · voidzero-dev/vite-plus
Dependency graph visualization for monorepos (like nx graph) #1182DescriptionFeature Request
Problem
While migrating TresJS (a monorepo with 15 workspace packages) to Vite+, running vp run build -r only picked up 9 of the 15 packages. There was no way to check which packages Vite+ actually sees in its dependency graph, making it hard to tell whether the missing packages were misconfigured, not recognized as part of the workspace, or just not connected in the dependency tree.
Without a way to visualize what Vite+ understands about the monorepo structure, debugging this kind of issue becomes trial and error.
Proposed Solution
Add a vp graph command (similar to nx graph) that shows the monorepo's dependency graph as Vite+ sees it.
Core features:
- Interactive web UI — opens a browser with a visual DAG of all workspace packages and their internal dependencies
- Filter by package — focus on a specific package to see its dependents/dependencies
- Affected view — highlight which packages are affected by changes
- Export options — JSON output for CI/tooling integration (
vp graph --json)
Example (Nx reference)
nx graph opens an interactive browser UI showing:
- All projects as nodes
- Dependencies as directed edges
- Filtering, searching, and grouping capabilities
- "Affected" overlay showing what changed
Why
Validations
- Read the Contributing Guidelines.
- Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
- Check that there isn't already an issue requesting the same feature.
Reacted by Eli, CatBraaain, Filip Falcon, Patrick Ludewig and Bruno Antunes Activitycpojer commented on Mar 30, 2026 cc @branchseer – I don't know what's the best solution like yet, but I do think we'll need this over time. wan9chi commented on Mar 31, 2026
cc @branchseer – I don't know what's the best solution like yet, but I do think we'll need this over time.
@cpojer I think both Interactive web UI and --json are useful: the first for humans and the second for AI (and also humans).
We already have serialized graph in tests, so --json would be easy to implement. I suggest to start a RFC for --json first. Web UI still has a long way to go. Reacted by Christoph Nakazawa and Bruno Antunes filipfalcon commented on Jul 26, 2026 Replacing Nx with Vite+ in our monorepo, its package graph was the only capability with no Vite+ equivalent. Nothing in the CLI shows how workspace packages relate. Answering "what depends on what" in a Vite+ monorepo means reaching for another tool. Crimson341 commented on Oct 12, 2026 Prototype for the --json half: vp graph prints the workspace packages and the dependencies between them, using the same package graph vp run builds (vt_workspace). Text by default, --json for tools and agents. No web UI, filters or affected view yet.
monorepo (.)
@acme/web (apps/web)
@acme/ui
@acme/utils (dev)
Global CLI only for now. Happy to change the JSON shape or fold this into vp run --plan (#2848) if you prefer. Branch: https://github.com/Crimson341/vite-plus/tree/feat/vp-graph
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|