Pathfinder.
This tool crawls a website by following navigation links and buttons, taking full-page screenshots at each step. It builds a tree structure showing how pages connect to each other and outputs everything to a folder with an optional HTML report. It's useful for QA testing your own sites, creating visual documentation, detecting broken navigation flows, auditing for design consistency, generating screenshots for stakeholder reviews, or running regression tests after deployments.
Files:
- src/crawler.js — The main crawler class. Handles browser automation, finding navigation elements, taking screenshots, and building the navigation tree.
- src/cli.js — Command-line interface. Parses arguments and runs the crawler from the terminal.
- examples/basic.js — Simple usage example showing how to crawl a URL with default settings.
- examples/advanced.js — Advanced example demonstrating authentication, rate limiting, custom selectors, and other options.