Open source project / 2026
DeadLinkFinder
A zero-dependency Markdown integrity checker for local links, images, heading anchors and external URLs.
The problem
Broken relative links and missing #anchors slip through review because nobody clicks every link in every doc.
Approach
DeadLinkFinder verifies local links, image assets and heading anchors fully offline, with a GitHub-compatible anchor engine covering punctuation, Unicode, emojis and duplicate headings.
System architecture
Python standard library only (re, pathlib, difflib, urllib); optional external URL checks, SARIF v2.1.0 reports with line fingerprints.
Decisions & outcome
Every broken target comes with a 'did you mean' suggestion powered by difflib — diagnosis, not just detection. Available on PyPI as deadlinkfinder. It reports broken local Markdown links, missing images and heading anchors, with JSON or SARIF output. External URL checks require the optional network mode.
Use Cases & CLI Reference
- Catching broken relative file links, missing images, and invalid #heading anchors across READMEs, wikis, and Markdown docs in CI.
- Validating GitHub-compatible Unicode and emoji heading anchors offline with difflib-powered 'did you mean' fix suggestions.
- Generating line-fingerprinted OASIS SARIF v2.1.0 reports for GitHub Code Scanning or structured JSON for CI automation.
# Install and check local Markdown links + #heading anchors
pip install deadlinkfinder
deadlinkfinder check .
# Emit SARIF v2.1.0 for CI with optional external URL check
deadlinkfinder check docs/ --format sarif --external