Hi HN. I paid for Grammarly for years and never liked that every sentence I type goes to a server. Nib is my attempt at the same thing with nothing leaving the Mac. How it works: a menu bar app reads the focused text field through the Accessibility API, and a Chromium extension does the same inside web pages. Each sentence goes through fixed rules, the macOS spell checker, and a small language model: Apple's on-device model by default, or any model you serve locally with Ollama or LM Studio. The part I spent the most time on is the guard. A small model likes to rewrite. So every answer is compared with the original sentence word by word, and it is dropped if it flips a negation, swaps a look-alike word (legal/illegal), changes a number or a name, or replaces a short sentence. The cost is that some correct fixes get refused. I think that is the right trade for a tool that edits your text. Honest limits: the default model is small and misses things a cloud model catches. On a held-out set of 16 sentences with errors it fixes 13, with 0 false alarms on 12 clean ones; the sets are small. Google Docs draws text on a canvas, so there Nib can only list fixes for the whole document on a click. The installer is not notarized, so macOS blocks the first launch. Full disclosure: almost all of the code was written by an AI model (Claude) over three days, with me testing in real apps and reporting what broke. Before the release I had it run three independent reviews of the codebase; that found, among other things, a shortcut that could have copied a password out of a password manager. That is fixed, and the findings are in the changelog. I would like to know where it gives wrong suggestions. Wrong sentences are the most useful bug reports.
Repository
demirelo/nib
Nib
demirelo/nib
Nib
Private, on-device grammar and spelling checker for macOS. Runs as a menu bar app and includes a Chromium browser extension. All processing stays on your Mac.
Visit project- First shared
- Nov 11, 2026
- HN activity
- 11
Show HN@xeroqNov 11, 2026
Show HN: Nib – an on-device grammar checker for macOS (open source)
Community