linkcheck
3.1.0, released a year ago by filiph.net
A very fast link-checker that crawls websites and checks integrity of links in HTML and CSS.
Quiet but busy
What it does
Crawls static or local sites to check the integrity of links in HTML and CSS files. It detects broken links, missing anchors, and reports warnings or errors with specific line and column locations.
AI-written summary of version 3.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to run link checking on your CI or before every deployment
- You need to check static sites or local development servers for broken links and missing anchors
Skip it when
- You need to validate Single Page Applications (SPAs) that require rendering JavaScript
- You need to validate non-HTTP/HTTPS protocols such as FTP or telnet
Strengths
- Significantly faster than many alternative link checkers
- Correctly parses both HTML and CSS for URLs
- Provides brief and meaningful output with POSIX compliance and CI exit codes
Weaknesses
- Does not attempt to render JavaScript
- Does not validate non-HTTP/HTTPS link schemes like FTP or mailto
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 9
Can be downloaded directly, run via Docker, or activated globally via Dart pub (`dart pub global activate linkcheck`).
linkcheck :8080Works with
Packages commonly used together with linkcheck: ones it builds on, ones built on it, and its own family.
- globlinkcheck depends on itA file and directory globbing library that supports Bash-style path matching and listing.
- source_spanlinkcheck depends on itStandard representation for source code locations, spans, and human-friendly error messages.
- htmllinkcheck depends on itA Dart implementation of an HTML5 parser for strings and bytes.
- argslinkcheck depends on itLibrary for parsing raw command-line arguments into options and values using GNU and POSIX styles.
- stream_channellinkcheck depends on itAn abstraction for two-way communication channels based on the Dart Stream class.
- cssliblinkcheck depends on itA Dart library that parses CSS strings or byte lists into an AST.
- consolelinkcheck depends on itConsole library for ANSI colors, keyboard input, progress bars, and more