Home

verycracked / starbase

publicverycracked/Starbase
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

Add repo parser that builds dependency graphs from source code

7 months ago

9e80dd7
Authored
V.C. Billingsley2/20/2026, 5:44:24 AM
parse-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

2 files changed
  • public/repo-graph.json+19722−0
  • scripts/parse-repo.mjs+410−0