Crawl Wikipedia with BFS graph traversal and visualize.
- Node.js 18+
- npm
npm installUse the default start page from .env:
npm run crawlUse a specific start page:
npm run crawl /wiki/Barack_ObamaStop early anytime with Ctrl+C. A partial artifact is still written.
Set values in .env (or copy from .env.example):
OUTPUT_DIR(default:output)MAX_LINKS_PER_PAGE(default:5)MAX_CRAWL_PAGES(default:50)START_PAGE(default:/wiki/Barack_Obama)
CLI start-page argument (npm run crawl <path>) overrides START_PAGE.
Each crawl creates a run folder:
output/run-<timestamp>__<start-page>/
Inside each run folder:
graph.json(adjacency list)index.html(visualizer)
Serve a specific run folder:
npm run preview output/run-<timestamp>__<start-page>Then open the local URL printed by serve (typically http://localhost:3000).
npm testThis starts a temporary local fixture server (test/fixtures), runs the crawler, and writes an
artifact to output/.
Frontend vibes by Claude: https://claude.ai/