7 months ago
9e80dd7parse-repo.mjs clones a GitHub repo (sparse checkout for speed), uses es-module-lexer to extract ES module imports, and builds a force-graph-compatible JSON with nodes, links, categories, and metadata. Supports --repo and --sparse-dir flags for CLI usage and is also called programmatically by server.mjs's /api/parse endpoint. Include a sample repo-graph.json so the app has data to render before any repo is parsed.
Parent47739c6