Skip to content
2 min read
Bearkit

logo

A companion CLI for Bear notes. It started as a small Markdown linter and turned into a proper toolkit: orphan and duplicate reports, dangling wikilink detection, a literal find-and-replace, a random-note opener, and the original linter, all in one binary.

This is a from-scratch Go rewrite of the Python original. Same commands, but now it’s a single binary with no runtime dependencies, and it talks to Bear through bearcli, Bear’s own bundled CLI.

Commands

  • bearkit lint - checks and fixes Markdown inconsistencies: bullet markers, emphasis style, checklist syntax, heading structure, and more
  • bearkit orphans - notes with no incoming [[wikilinks]]
  • bearkit duplicates - notes that share the same title
  • bearkit wikilinks - dangling [[wikilinks]] whose target doesn’t exist, with --mark to flag them in the note itself
  • bearkit replace - literal find-and-replace across notes
  • bearkit random - open one or more random notes in Bear

Run bearkit with no arguments and it walks you through everything in the terminal. Pass any flag and it runs non-interactively, which is what you want for scripts, cron jobs, and launchd agents.

Docs & full command reference

Visit the project website for the full flag reference, guides, and getting started.

Download and links

Interested in this project? Check it out below.


Like what you're seeing?

If you're interested in my work and think we can collaborate on a cool project, get in touch with me!