Audit a page or crawl a site
Use sonjoo audit to collect findings immediately. Add --crawl to follow internal links up to a page limit. For a crawl you want to pause, resume, or analyze again, run sonjoo crawl and then sonjoo analyze. The crawl command stores fetched snapshots and the analyze command applies rules to those snapshots.
| Task | Command | Result |
|---|---|---|
| Inspect one URL | sonjoo audit <url> |
Report for the starting page |
| Inspect a bounded set of linked pages | sonjoo audit <url> --crawl --max-pages 50 |
Crawl findings, URL evidence, and page and rule coverage |
| Resume fetching or reevaluate a snapshot | sonjoo crawl <url> --max-pages 2000, then sonjoo analyze <crawl-id> |
Stored crawl and a report you can regenerate |
The --max-pages flag accepts up to 1,000 pages with audit --crawl and up to 10,000 pages with crawl. Both read crawler.max_pages when the flag is omitted. That setting defaults to 10 and accepts up to 10,000. The dashboard also supports auditing a fixed URL list. See MCP crawl limits when running through an agent.
Run a bounded crawl
Section titled “Run a bounded crawl”Choose a page limit and run budget that fit the site. Follow the site’s crawl directives and keep concurrency low until you know the site can sustain the request rate. Replace the example URL with your own target.
sonjoo audit https://example.com/ --crawl --max-pages 50 --max-duration 120 \ --concurrency 2 --no-save --format html --output audit.htmlOpen the HTML report to inspect findings and page coverage. If the time budget ends the crawl, read the reported stop reason and inspect which URLs were measured before deciding whether to rerun. See Read findings and coverage.
Resume a crawl
Section titled “Resume a crawl”Save the crawl ID printed after Crawl ID:. When resuming, supply the ID in place of the URL. Sonjoo uses the stored start URL and crawl settings, keeps the same ID, and continues from the stored frontier. A resume may increase the page limit. Use the same --output directory on both crawl commands and run analyze from that directory. Without a custom output directory, rerun commands from the original project directory.
To reproduce this workflow, start the local fixture and run these commands from an empty directory. The first crawl stores one page. The second uses the same ID and increases the limit to three.
target="${SONJOO_DOCS_TARGET:-http://127.0.0.1:18765}"crawl_log=$(sonjoo crawl "$target/crawl-branch/" --max-pages 1 --output crawl-data)printf '%s\n' "$crawl_log"crawl_id=$(printf '%s\n' "$crawl_log" | sed -n 's/^ Crawl ID: //p' | sed -n '1p')sonjoo crawl --resume "$crawl_id" --max-pages 3 --output crawl-data(cd crawl-data && sonjoo analyze "$crawl_id" --categories core --no-save \ --fail-under 0 --json > ../crawl-report.json)Open crawl-report.json and check crawledPages. The fixture has three linked pages in total, including the start URL. The CLI preserves the saved crawl when you use --no-save with analyze. This flag controls whether the analysis is added to audit history.
Rerun rules on the latest snapshot
Section titled “Rerun rules on the latest snapshot”Use sonjoo analyze --latest --no-save --json from the directory containing the crawls. This reevaluates the saved HTML using the current analysis configuration. Selected rules can still probe URLs for auxiliary evidence. Use a fresh audit when you need new page content, a new crawl graph or Chromium rendering. See stored crawl behavior.
