2020-08-04 23:06:27 +00:00
|
|
|
|

|
|
|
|
|
|
|
2020-08-07 22:10:30 +00:00
|
|
|
|

|
|
|
|
|
|
|
2020-11-05 23:22:14 +00:00
|
|
|
|
A fast, async, resource-friendly link checker written in Rust.
|
2020-10-26 22:31:31 +00:00
|
|
|
|
For GitHub links, it can optionally use a `GITHUB_TOKEN` to avoid getting blocked by the rate
|
2020-08-14 13:24:41 +00:00
|
|
|
|
limiter.
|
2020-08-04 23:06:27 +00:00
|
|
|
|
|
2020-10-20 08:40:45 +00:00
|
|
|
|

|
2020-08-17 18:14:46 +00:00
|
|
|
|
|
2020-10-18 22:09:53 +00:00
|
|
|
|
## Features
|
|
|
|
|
|
|
2020-10-20 22:21:11 +00:00
|
|
|
|
This comparison is made on a best-effort basis. Please create a PR to fix outdated information.
|
|
|
|
|
|
|
2020-11-09 11:12:57 +00:00
|
|
|
|
| | lychee | [awesome_bot] | [muffet] | [broken-link-checker] | [linkinator] | [linkchecker] | [markdown-link-check] | [fink] |
|
2020-11-09 10:46:45 +00:00
|
|
|
|
| -------------------- | ------- | ----------- | -------- | ------------------- | ---------- | ----------- | ------------------- | ------ |
|
|
|
|
|
|
| Language | Rust | Ruby | Go | JS | TypeScript | Python | JS | PHP |
|
|
|
|
|
|
| Async/Parallel | ![yes] | ![yes] | ![yes] | ![yes] | ![yes] | ![yes] | ![yes] | ![yes] |
|
|
|
|
|
|
| Static binary | ![yes] | ![no] | ![yes] | ![no] | ![no] | ️ ![no] | ![no] | ![no] |
|
|
|
|
|
|
| Markdown files | ![yes] | ![yes] | ![no] | ![no] | ![no] | ![no] | ️ ![yes] | ![no] |
|
|
|
|
|
|
| HTML files | ![yes] | ![no] | ![no] | ![yes] | ![yes] | ![no] | ![no] | ![no] |
|
|
|
|
|
|
| Txt files | ![yes] | ![no] | ![no] | ![no] | ![no] | ![no] | ![no] | ![no] |
|
|
|
|
|
|
| Website support | ![yes] | ![no] | ![yes] | ![yes] | ![yes] | ![yes] | ![no] | ![yes] |
|
|
|
|
|
|
| Chunked encodings | ![yes] | ![maybe] | ![maybe] | ![maybe] | ![maybe] | ![no] | ![yes] | ![yes] |
|
|
|
|
|
|
| GZIP compression | ![yes] | ![maybe] | ![maybe] | ![yes] | ![maybe] | ![yes] | ![maybe] | ![no] |
|
|
|
|
|
|
| Basic Auth | ![yes] | ![no] | ![no] | ![yes] | ![no] | ![yes] | ![no] | ![no] |
|
|
|
|
|
|
| Custom user agent | ![yes] | ![no] | ![no] | ![yes] | ![no] | ![yes] | ![no] | ![no] |
|
|
|
|
|
|
| Relative URLs | ![yes] | ![yes] | ![no] | ![yes] | ![yes] | ![yes] | ![yes] | ![yes] |
|
|
|
|
|
|
| Skip relative URLs | ![yes] | ![no] | ![no] | ![maybe] | ![no] | ![no] | ![no] | ![no] |
|
|
|
|
|
|
| Include patterns | ![yes]️ | ![yes] | ![no] | ![yes] | ![no] | ![no] | ![no] | ![no] |
|
|
|
|
|
|
| Exclude patterns | ![yes] | ![no] | ![yes] | ![yes] | ![yes] | ![yes] | ![yes] | ![yes] |
|
|
|
|
|
|
| Handle redirects | ![yes] | ![yes] | ![yes] | ![yes] | ![yes] | ![yes] | ![yes] | ![yes] |
|
|
|
|
|
|
| Ignore insecure SSL | ![yes] | ![yes] | ![yes] | ![no] | ![no] | ![yes] | ![no] | ![yes] |
|
|
|
|
|
|
| File globbing | ![yes] | ![yes] | ![no] | ![no] | ![yes] | ![no] | ![yes] | ![no] |
|
|
|
|
|
|
| Limit scheme | ![yes] | ![no] | ![no] | ![yes] | ![no] | ![yes] | ![no] | ![no] |
|
|
|
|
|
|
| [Custom headers] | ![yes] | ![no] | ![yes] | ![no] | ![no] | ![no] | ![yes] | ![yes] |
|
|
|
|
|
|
| Summary | ![yes] | ![yes] | ![yes] | ![maybe] | ![yes] | ![yes] | ![no] | ![yes] |
|
|
|
|
|
|
| `HEAD` requests | ![yes] | ![yes] | ![no] | ![yes] | ![yes] | ![yes] | ![no] | ![no] |
|
|
|
|
|
|
| Colored output | ![yes] | ![maybe] | ![yes] | ![maybe] | ![yes] | ![yes] | ![no] | ![yes] |
|
|
|
|
|
|
| [Filter status code] | ![yes] | ![yes] | ![no] | ![no] | ![no] | ![no] | ![yes] | ![no] |
|
|
|
|
|
|
| Custom timeout | ![yes] | ![yes] | ![yes] | ![no] | ![yes] | ![yes] | ![no] | ![yes] |
|
|
|
|
|
|
| E-mail links | ![yes] | ![no] | ![no] | ![no] | ![no] | ![yes] | ![no] | ![no] |
|
|
|
|
|
|
| Progress bar | ![yes] | ![yes] | ![no] | ![no] | ![no] | ![yes] | ![yes] | ![yes] |
|
|
|
|
|
|
| Retry and backoff | ![yes] | ![no] | ![no] | ![no] | ![yes] | ![no] | ![yes] | ![no] |
|
|
|
|
|
|
| Skip private domains | ![yes] | ![no] | ![no] | ![no] | ![no] | ![no] | ![no] | ![no] |
|
|
|
|
|
|
| [Use as lib] | ![no] | ![yes] | ![no] | ![yes] | ![yes] | ![no] | ![yes] | ![no] |
|
|
|
|
|
|
| Quiet mode | ![yes] | ![no] | ![no] | ![no] | ![yes] | ![yes] | ![yes] | ![yes] |
|
|
|
|
|
|
| Amazing lychee logo | ![yes] | ![no] | ![no] | ![no] | ![no] | ![no] | ![no] | ![no] |
|
|
|
|
|
|
| Config file | ![yes] | ![no] | ![no] | ![no] | ![yes] | ![yes] | ![yes] | ![no] |
|
2020-10-20 08:40:45 +00:00
|
|
|
|
|
2020-11-09 11:12:57 +00:00
|
|
|
|
[awesome_bot]: https://github.com/dkhamsing/awesome_bot
|
|
|
|
|
|
[muffet]: https://github.com/raviqqe/muffet
|
|
|
|
|
|
[broken-link-checker]: https://github.com/stevenvachon/broken-link-checker
|
|
|
|
|
|
[linkinator]: https://github.com/JustinBeckwith/linkinator
|
|
|
|
|
|
[linkchecker]: https://github.com/linkchecker/linkchecker
|
|
|
|
|
|
[markdown-link-check]: https://github.com/tcort/markdown-link-check
|
|
|
|
|
|
[fink]: https://github.com/dantleech/fink
|
2020-11-09 10:49:32 +00:00
|
|
|
|
[yes]: ./assets/yes.svg
|
|
|
|
|
|
[no]: ./assets/no.svg
|
|
|
|
|
|
[maybe]: ./assets/maybe.svg
|
2020-11-09 11:12:57 +00:00
|
|
|
|
[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]: https://github.com/appscodelabs/liche/blob/a5102b0bf90203b467a4f3b4597d22cd83d94f99/url_checker.go
|
|
|
|
|
|
[use as lib]: https://github.com/raviqqe/liche/issues/13
|
2020-11-09 10:49:32 +00:00
|
|
|
|
|
2020-11-05 23:22:14 +00:00
|
|
|
|
## Planned features. Please help out!
|
2020-10-20 08:40:45 +00:00
|
|
|
|
|
|
|
|
|
|
- report output in HTML, SQL, CSV, XML, JSON, YAML... format
|
|
|
|
|
|
- report extended statistics: request latency
|
|
|
|
|
|
- recursion
|
2020-08-26 13:31:29 +00:00
|
|
|
|
- use colored output (https://crates.io/crates/colored)
|
2020-10-20 08:40:45 +00:00
|
|
|
|
- skip duplicate urls
|
2020-10-20 22:21:11 +00:00
|
|
|
|
- request throttling
|
2020-08-19 23:08:04 +00:00
|
|
|
|
|
|
|
|
|
|
## Users
|
|
|
|
|
|
|
2020-10-20 21:13:45 +00:00
|
|
|
|
- https://github.com/analysis-tools-dev/static-analysis (soon)
|
|
|
|
|
|
- https://github.com/mre/idiomatic-rust (soon)
|
2020-08-17 18:14:46 +00:00
|
|
|
|
|
2020-08-04 23:06:27 +00:00
|
|
|
|
## How?
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
cargo install lychee
|
|
|
|
|
|
```
|
|
|
|
|
|
|
2020-10-26 22:31:31 +00:00
|
|
|
|
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.
|
2020-08-04 23:06:27 +00:00
|
|
|
|
|
2020-10-20 08:40:45 +00:00
|
|
|
|
Run it inside a repository with a `README.md` or specify a file with
|
2020-08-04 23:44:16 +00:00
|
|
|
|
|
|
|
|
|
|
```
|
2020-08-13 21:01:30 +00:00
|
|
|
|
lychee <yourfile>
|
2020-08-04 23:44:16 +00:00
|
|
|
|
```
|
2020-08-04 23:06:27 +00:00
|
|
|
|
|
2020-10-26 22:31:31 +00:00
|
|
|
|
### CLI exit codes
|
|
|
|
|
|
|
|
|
|
|
|
- `0` for success (all links checked successfully or excluded/skipped as configured)
|
|
|
|
|
|
- `1` for any unexpected runtime failures or config errors
|
|
|
|
|
|
- `2` for link check failures (if any non-excluded link failed the check)
|
|
|
|
|
|
|
2020-08-14 13:24:41 +00:00
|
|
|
|
## Comparison
|
|
|
|
|
|
|
2020-11-09 11:12:57 +00:00
|
|
|
|
Collecting more link checkers here for comparison:
|
2020-08-14 13:24:41 +00:00
|
|
|
|
|
2020-10-17 22:15:11 +00:00
|
|
|
|
- https://github.com/bartdag/pylinkvalidator
|
|
|
|
|
|
- https://github.com/victoriadrake/hydra-link-checker
|
2020-08-14 13:24:41 +00:00
|
|
|
|
|
2020-08-04 23:06:27 +00:00
|
|
|
|
## Thanks
|
|
|
|
|
|
|
2020-08-04 23:44:16 +00:00
|
|
|
|
...to my Github sponsors and Patreon sponsors for supporting these projects. If
|
|
|
|
|
|
you want to help out as well, [go here](https://github.com/sponsors/mre/).
|
2020-10-20 08:40:45 +00:00
|
|
|
|
|
2020-11-09 10:49:32 +00:00
|
|
|
|
|