Add interactive Next.js dependency-graph explorer (/explore)#154
Merged
Conversation
Add a /explore page that renders the Next.js framework core (packages/next/src) as a force-directed module dependency graph, parsed with the graph-sitter Rust backend (~4.9s, 1,680 files). - d3-force layout + hand-rolled HTML5 canvas renderer (Aura-themed, hover/drag/zoom, dark & light), no heavy charting deps - reproducible data pipeline: scripts/gen-nextjs-depgraph.py emits lib/data/nextjs-depgraph.json (91 modules, 710 edges) - homepage nav link to /explore Co-authored-by: Cursor <cursoragent@cursor.com>
3 tasks
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Resolves the Vercel build-time security gate flagging next-mdx-remote 5.0.0 as vulnerable. v6 is API-compatible with the existing next-mdx-remote/rsc MDXRemote usage; docs build (305 pages) and render unchanged. Co-authored-by: Cursor <cursoragent@cursor.com>
Two coupled Vercel fixes for this subdirectory app:
- framework: "nextjs" — the project's framework preset was unset
("Other"), so Vercel ran the build but served the default static
output dir instead of wiring up Next.js routing, producing a 404 on
every route. Pinning the framework restores correct Next.js serving.
- ignoreCommand — only build/deploy when site/** or docs/** change
(docs are sourced from the repo-root docs/ dir at build time), so
unrelated Python edits no longer trigger preview deployments.
Root Directory is already site/ (root package.json has no build script;
build logs show the graph-sitter-site build running), so no dashboard
change is required.
Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a single new page —
/explore— on top ofdevelop. It renders theNext.js framework core (
packages/next/src) as a force-directed moduledependency graph, parsed with the graph-sitter Rust backend (~4.9s, 1,680
files / 16k symbols).
This is the focused, net-new slice of the earlier docs branch — the docs-site
UI itself already lives on
develop, so this PR only adds what's missing.What's included
site/app/explore/page.tsx— the showcase page (graph + top import hubs + theuvx graph-sitter parserecipe).site/components/visualizations/dependency-graph.tsx—d3-forcelayout + hand-rolled HTML5 canvas renderer (Aura-themed, hover/drag/zoom, dark & light); no heavy charting deps.site/lib/data/nextjs-depgraph.json— generated graph data (91 modules, 710 edges).site/scripts/gen-nextjs-depgraph.py— reproducible generator (re-run to refresh the data).site/app/page.tsx— adds an "Explore" link to the homepage nav.d3-forceadded tosite/package.json.Test plan
npm --prefix site run build(Node 22) — clean, 305 static pages incl./explore./explorein dark and light; confirm graph renders and hover/drag/zoom work.Made with Cursor