

darnlink
Keeps Markdown links from breaking when you move files: it anchors each link to the target's UUID, so moved links repair themselves. No database, editor-agnostic.
Cost / License
- Free
- Open Source (GPL-3.0)
Platforms
- Windows
- Mac
- Linux
Features
- Command line interface
- Support for MarkDown
darnlink News & Activities
Recent activities
- niksavc liked darnlink
- txemi added darnlink
txemi added darnlink as alternative to LinkChecker
darnlink information
What is darnlink?
darnlink is a small, editor-agnostic command-line tool that stops relative Markdown links from breaking when you reorganize files. It anchors each link to the target file's UUID (an inline comment + a uuid in the target's frontmatter), so when a file is moved or renamed it finds the target by uuid and rewrites the path — deterministically, with no database. It can also upgrade plain links to robust ones, links to directories, and ships a pre-commit hook / GitHub Action to gate broken links in CI. Unlike markdown-link-check or lychee (which only detect broken links), darnlink repairs them. On PyPI: run uvx darnlink <folder> — dry-run by default, --write to apply. GPL-3.0, Python 3.10+.
