lychee
$ lychee Community Low Risklychee (lychee) checks broken HTTP links, relative file paths, and anchors across Markdown, HTML, reST, and source directories at high async concurrency. With --format json output and --offline mode, coding agents can validate documentation links reliably without external network flakiness.
brew install lychee lychee --format json checks thousands of local file references and external URLs concurrently straight from the shell.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports --format json, --offline, --no-progress, --include-fragments, and deterministic exit codes (0 ok, 2 link failures).
--format json/junit/markdown/detailed--no-progresskeeps stdout clean for automated parsing
Strictly read-only verification tool with --offline mode to prevent unexpected outbound HTTP requests.
- Zero local file mutation
--offlineskips all external HTTP/HTTPS requests
Single Rust binary distributed via Homebrew, Cargo, Docker, and GitHub releases across macOS, Linux, and Windows.
brew install lycheeandcargo install lychee
Async Tokio concurrency checks hundreds of docs files in seconds; catches broken relative links and anchors immediately.
- Supports Markdown, HTML, reST, plaintext, and fragment checking
Actively maintained community project (lycheeverse/lychee) dual-licensed MIT OR Apache-2.0.
- Frequent releases and official GitHub Action (
lycheeverse/lychee-action)
Well-organized docs site at lychee.cli.rs covering all CLI flags and troubleshooting.
- Official docs at lychee.cli.rs/usage/cli/
Security, Auth & Guardrails
No credentials needed for standard checks; optional GITHUB_TOKEN prevents GitHub API rate limiting when verifying GitHub links.
Free open-source software (MIT OR Apache-2.0).
# lychee Agent Rules - Prefer `lychee --offline --format json` in sandboxed or CI environments without outbound internet. - Pass `--no-progress --format json` so spinner ANSI frames do not pollute stdout. - Use `--exclude` for localhost example URLs (`http://localhost:*`) that are intentionally unreachable.
Agent-Ready Command Recipes
Safe Read-Only Queries
lychee --offline --format json docs/
Validates relative file paths and local Markdown/HTML links in docs/ without making network requests.
lychee --format json --no-progress README.md
Checks both local and external links in README.md and outputs structured JSON results.
Strengths for Agents
- +
--format json --no-progressproduces crisp structured link-check reports. - +
--offlinemode validates local file links and fragments cleanly in sandboxed environments. - + Fast single Rust binary with async concurrency and GitHub token rate-limit support.
Caveats & Pitfalls
- ! External URL checks can flake on anti-bot protected sites (HTTP 403/429) unless excluded or retried.
- ! Example URLs like
localhostin docs trigger false positives unless filtered via--exclude.