DeadLinkFinder

A zero-dependency Markdown integrity checker for local links, images, heading anchors and external URLs.

Package:PyPI: deadlinkfinderRuntime:Python >= 3.10Engine:Async IO / HTTPDependencies:0 (Stdlib)License:MIT
RUN LOCALLY
pip install deadlinkfinder && deadlinkfinder check .

Broken relative links and missing #anchors slip through review because nobody clicks every link in every doc.

DeadLinkFinder verifies local links, image assets and heading anchors fully offline, with a GitHub-compatible anchor engine covering punctuation, Unicode, emojis and duplicate headings.

Python standard library only (re, pathlib, difflib, urllib); optional external URL checks, SARIF v2.1.0 reports with line fingerprints.

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.

  • 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