DeadLink Checker
Find broken links in markdown files - CLI + GUI in a single file
Features
- 🖥️ Dual Mode: CLI (with args) or GUI (no args) in one file
- 🔗 Local Links: Check relative file paths in markdown
- 🌐 Web URLs: Validate HTTP/HTTPS links with caching
- 📝 Wiki Links: Support for Obsidian-style
[[links]] - 🔄 Watch Mode: Continuous monitoring with auto-refresh
- 📤 Export: Save results to JSON/Markdown
- ⚡ Fast: Go version is 20x faster than Python
Quick Start
Python Version
# GUI mode (no arguments)
python3 dead_link_checker.py
# CLI mode
python3 dead_link_checker.py /path/to/markdown
# Check only web URLs
python3 dead_link_checker.py --web /path/to/markdown
# Watch mode (refresh every 5 seconds)
python3 dead_link_checker.py --interval 5s /path/to/markdown
Go Version (Recommended)
# Build
go build -o deadlink dead_link_checker.go
# GUI mode
./deadlink
# CLI mode
./deadlink /path/to/markdown
# Check only local file links
./deadlink --no-web /path/to/markdown
# Watch mode
./deadlink --interval 5s /path/to/docs
CLI Options
| Flag | Description | Default |
|---|---|---|
--web |
Check web URLs | true |
--no-web |
Skip web URL checking | false |
--file, --local |
Check local file links | true |
--no-file |
Skip local file link checking | false |
--timeout |
HTTP timeout in seconds | 10 |
--rate-limit |
Rate limit between requests | 0.1 |
--ignore |
Regex patterns to ignore | - |
--interval |
Watch mode refresh interval (e.g., 5s) |
- |
Screenshots
GUI Mode
┌─────────────────────────────────────────────────────────┐
│ Dead Link Checker │
├─────────────────────────────────────────────────────────┤
│ Directory: [/path/to/markdown ] [Browse...] │
│ │
│ ☑ Check Web URLs ☑ Check Local Links │
│ │
│ [Start] [Stop] [Clear] [Export] │
│ │
│ Progress: ████████████░░░░░░░░ 65% (130/200) │
│ Checking: README.md │
│ │
│ ┌───────────────────────────────────────────────────┐ │
│ │ Results │ │
│ │ SUMMARY │ │
│ │ Total links: 150 │ │
│ │ Broken links: 5 │ │
│ └───────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────┘
CLI Output
Scanning: /path/to/markdown
Mode: web=true, local=true
============================================================
SUMMARY
============================================================
Total links: 150
By type: {'local': 120, 'web': 25, 'anchor': 5}
By status: {'ok': 145, 'broken': 5}
⚠️ BROKEN LINKS (5):
------------------------------------------------------------
File Line Type Status URL
----------------------------------------------------------------------------------------------------
/Users/project/README.md 42 local broken not_found: ./missing-file.md
/Users/project/docs/guide.md 18 web broken HTTP 404
Installation
Python
# Optional dependencies for better output
pip install httpx rich
Go
go get github.com/rivo/tview
go build -o deadlink dead_link_checker.go
Supported Link Types
| Type | Example | Verified |
|---|---|---|
| Standard markdown | [text](url) |
✅ |
| Images |  |
✅ |
| Wiki/Obsidian | [[page]] |
✅ |
| HTML links | <a href="url"> |
✅ |
| Reference links | [text][ref] |
✅ |
| Anchors | #section |
⚠️ (not verified) |
Performance
| Metric | Python | Go |
|---|---|---|
| Startup | ~200ms | ~10ms |
| 1000 files | ~30s | ~1.5s |
| Binary size | N/A | ~12MB |
Examples
Check a project for broken links
./deadlink /path/to/project
Continuous monitoring during editing
./deadlink --interval 10s /path/to/docs
Export results for CI/CD
./deadlink --no-web /path/to/project
# Results saved to dead_link_report.json
Project Structure
deadlink/
├── dead_link_checker.py # Python version
├── dead_link_checker.go # Go version
├── README.md # This file
└── LICENSE # MIT License
Why Two Versions?
- Python: Quick scripting, easy to modify, familiar to most developers
- Go: Single binary, 20x faster, no runtime dependencies, production-ready
Choose based on your needs - both have identical features!
Contributing
- Fork the repo
- Create a feature branch
- Make your changes
- Submit a PR
License
MIT License - see LICENSE for details.
Related Projects
- markdown-link-check - Node.js link checker
- lychee - Fast link checker in Rust
- muffet - Website link checker in Go
Made with ❤️ for maintaining clean documentation
Metadata
Release files for md-deadlink 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| md_deadlink-0.1.0.tar.gz | 14.7 kB | Without provenance | Details for md_deadlink-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| md_deadlink-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for md_deadlink-0.1.0-py3-none-any.whl |
Total release size: 27.4 kB
Release files / md_deadlink-0.1.0.tar.gz
| Download URL | md_deadlink-0.1.0.tar.gz |
|---|---|
| Size | 14.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e3efd61743cff8e1dfc0d8c282917984a33519145c4134279099b4226749b9b7
|
|
BLAKE2b-256 checksum How to use checksums |
55224f48a855538c376ef61e235e03c729d4112bed0787cc87792bb447b1e065
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / md_deadlink-0.1.0-py3-none-any.whl
| Download URL | md_deadlink-0.1.0-py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
44d2ca5e5bc10641cf3d78ba691ba251d6155d8cfaa667e3e33be6b6b4ecb0d7
|
|
BLAKE2b-256 checksum How to use checksums |
3f215989a4518e3f3f47bdd0697f2a4a7e751259cac4f892a9a64fa2b3b7146f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Security for md-deadlink 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.