| .github/workflows | ||
| assets | ||
| fixtures | ||
| src | ||
| tests | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| lychee.example.toml | ||
| README.md | ||
A fast, async, resource-friendly link checker written in Rust.
For GitHub links, it can optionally use a GITHUB_TOKEN to avoid getting blocked by the rate
limiter.
Features
This comparison is made on a best-effort basis. Please create a PR to fix outdated information.
Planned features. Please help out!
- report output in HTML, SQL, CSV, XML, JSON, YAML... format
- report extended statistics: request latency
- recursion
- use colored output (https://crates.io/crates/colored)
- skip duplicate urls
- request throttling
Users
- https://github.com/analysis-tools-dev/static-analysis (soon)
- https://github.com/mre/idiomatic-rust (soon)
How?
cargo install lychee
Optional (to avoid being rate limited for GitHub links): set an environment variable with your token
like so GITHUB_TOKEN=xxxx, or use the --github-token CLI option. This can also be set in the
config file.
Run it inside a repository with a README.md or specify a file with
lychee <yourfile>
CLI exit codes
0for success (all links checked successfully or excluded/skipped as configured)1for any unexpected runtime failures or config errors2for link check failures (if any non-excluded link failed the check)
Comparison
Collecting other link checkers here to crush them in comparison. :P
- https://github.com/dkhamsing/awesome_bot
- https://github.com/tcort/markdown-link-check
- https://github.com/raviqqe/liche
- https://github.com/raviqqe/muffet
- https://github.com/stevenvachon/broken-link-checker
- https://github.com/JustinBeckwith/linkinator
- https://github.com/linkchecker/linkchecker
- https://github.com/dantleech/fink
- https://github.com/bartdag/pylinkvalidator
- https://github.com/victoriadrake/hydra-link-checker
Thanks
...to my Github sponsors and Patreon sponsors for supporting these projects. If you want to help out as well, go here.
[custom headers]: https://github.com/rust-lang/crates.io/issues/788)
[filter status code]: https://github.com/tcort/markdown-link-check/issues/94
[skip private domains]: a5102b0bf9/url_checker.go
[use as lib]: https://github.com/raviqqe/liche/issues/13

