Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
Find a file
Elijah Potter 7f98e4cef9
Some checks are pending
Build Chrome Plugin / package (push) Waiting to run
Build Binaries / Release harper-cli - macOS-aarch64 (push) Waiting to run
Build Binaries / Release harper-cli - Linux-aarch64-GNU (push) Waiting to run
Build Binaries / Release harper-cli - Linux-x86_64-GNU (push) Waiting to run
Build Binaries / Release harper-cli - Linux-x86_64-musl (push) Waiting to run
Build Binaries / Release harper-cli - Windows-x86_64 (push) Waiting to run
Build Binaries / Release harper-cli - Linux-aarch64-musl (push) Waiting to run
Build Binaries / Release harper-cli - macOS-x86_64 (push) Waiting to run
Build Binaries / Release harper-ls - Linux-aarch64-GNU (push) Waiting to run
Build Binaries / Release harper-ls - macOS-x86_64 (push) Waiting to run
Build Binaries / Release harper-ls - Linux-x86_64-GNU (push) Waiting to run
Build Binaries / Release harper-ls - Windows-x86_64 (push) Waiting to run
Build Web / build (push) Waiting to run
Package VS Code Plugin / Package - darwin-arm64 (push) Waiting to run
Package VS Code Plugin / Package - darwin-x64 (push) Waiting to run
Package VS Code Plugin / Package - linux-arm64 (push) Waiting to run
Package VS Code Plugin / Package - linux-x64 (push) Waiting to run
Package WordPress Plugin / package (push) Waiting to run
Precommit / precommit (push) Waiting to run
Build Binaries / Release harper-ls - macOS-aarch64 (push) Waiting to run
Build Binaries / Release harper-ls - Linux-aarch64-musl (push) Waiting to run
Build Binaries / Release harper-ls - Linux-x86_64-musl (push) Waiting to run
Package VS Code Plugin / Package - win32-x64 (push) Waiting to run
feat(chrome-ext): use new CSS Highlights API where possible (#1970)
* Revert "feat(chrome-ext): use scroll deltas to minimize perceived lag (#1906)"

This reverts commit cecadad180.

* feat(chrome-ext): use new CSS Highlights API where possible

* fix(core): appease clippy

* fix(chrome-ext): disable on unsupported browsers

* fix(lint-framework): deps

* fix(chrome-ext): crashing service worker

* chore: update lockfile

* fix(chrome-ext): force the fallback since Playwright tests depend on it

* chore: `just format`

* fix(chrome-ext): failure to force fallback

* feat(lint-framework): use nullability as signal

* fix(chrome-ext): remove useless test code

* fix(chrome-ext): remove unnecessary code
2025-09-24 15:57:22 -06:00
.github fix(ci): missing rustfmt 2025-09-24 15:13:52 -06:00
.vscode chore: mostly annotating verbs and nouns (#1874) 2025-09-08 12:20:49 +00:00
harper-brill Release 0.65.0 2025-09-22 14:50:46 -06:00
harper-cli Release 0.65.0 2025-09-22 14:50:46 -06:00
harper-comments Release 0.65.0 2025-09-22 14:50:46 -06:00
harper-core fix(core): nee is not common 2025-09-24 15:45:45 -06:00
harper-html Release 0.65.0 2025-09-22 14:50:46 -06:00
harper-literate-haskell Release 0.65.0 2025-09-22 14:50:46 -06:00
harper-ls Release 0.65.0 2025-09-22 14:50:46 -06:00
harper-pos-utils Release 0.65.0 2025-09-22 14:50:46 -06:00
harper-stats Release 0.65.0 2025-09-22 14:50:46 -06:00
harper-tree-sitter Release 0.65.0 2025-09-22 14:50:46 -06:00
harper-typst Release 0.65.0 2025-09-22 14:50:46 -06:00
harper-wasm Release 0.65.0 2025-09-22 14:50:46 -06:00
packages feat(chrome-ext): use new CSS Highlights API where possible (#1970) 2025-09-24 15:57:22 -06:00
.dockerignore fix: dockerfile issues 2025-03-19 11:51:08 +08:00
.editorconfig feat: enforce LF line endings everywhere 2025-03-10 10:51:39 -06:00
.envrc feat(devshell): init devshell 2025-04-04 16:06:31 -04:00
.gitattributes feat: enforce LF line endings everywhere 2025-03-10 10:51:39 -06:00
.gitignore feat(devshell): init devshell 2025-04-04 16:06:31 -04:00
.node-version chore(node): use lts/* instead of lts/iron 2025-02-03 16:54:14 +08:00
.npmrc fix: dockerfile issues 2025-03-19 11:51:08 +08:00
ARCHITECTURE.md docs: moved architecture document to the web 2024-12-27 12:03:11 -07:00
biome.json feat(chrome-ext): add double-shift hotkey (#1574) 2025-07-21 14:49:11 -06:00
Cargo.lock Release 0.65.0 2025-09-22 14:50:46 -06:00
Cargo.toml Release 0.55.0 2025-08-04 09:59:16 -06:00
COMPARISON.md fix: changed links from elijah-potter/harper to automattic/harper 2024-12-18 08:05:16 -07:00
CONTRIBUTING.md docs: moved contributor documentation to the web 2024-12-27 11:49:08 -07:00
demo.md feat(web): make demo more enticing 2025-09-24 08:09:14 -06:00
Dockerfile Use the Chrome-extension's LintFramework for the web demo (#1893) 2025-09-10 14:24:46 -06:00
flake.lock feat(devshell): remove rust overlay 2025-04-04 16:06:31 -04:00
flake.nix feat(devshell): echo harper logo to terminal when dev environment loads 2025-04-05 01:06:59 -04:00
justfile Use the Chrome-extension's LintFramework for the web demo (#1893) 2025-09-10 14:24:46 -06:00
LICENSE fix: filled in LICENSE 2024-03-25 14:58:52 -06:00
logo.svg feat: added logo to README.md and web client 2024-02-15 20:56:27 -07:00
package.json feat(chrome-ext): add double-shift hotkey (#1574) 2025-07-21 14:49:11 -06:00
pnpm-lock.yaml feat(chrome-ext): use new CSS Highlights API where possible (#1970) 2025-09-24 15:57:22 -06:00
pnpm-workspace.yaml fix: dockerfile issues 2025-03-19 11:51:08 +08:00
README.md docs(readme): fix grammar and minor rephrasing (#1176) 2025-04-29 19:32:54 +00:00
rust-toolchain.toml feat: enforce stable rust with a rust-toolchain.toml 2024-09-27 08:28:57 +02:00
rustfmt.toml feat(core): added Whereas rule 2025-02-06 08:57:02 -07:00

Harper

Harper Binaries Website Precommit Crates.io NPM Version

Harper is an English grammar checker designed to be just right. I created it after years of dealing with the shortcomings of the competition.

Grammarly was too expensive and too overbearing. Its suggestions lacked context, and were often just plain wrong. Not to mention: it's a privacy nightmare. Everything you write with Grammarly is sent to their servers. Their privacy policy claims they don't sell the data, but that doesn't mean they don't use it to train large language models and god knows what else. Not only that, but the round-trip-time of the network request makes revising your work all the more tedious.

LanguageTool is great, if you have gigabytes of RAM to spare and are willing to download the ~16GB n-gram dataset. Besides the memory requirements, I found LanguageTool too slow: it would take several seconds to lint even a moderate-size document.

That's why I created Harper: it is the grammar checker that fits my needs. Not only does it take milliseconds to lint a document, take less than 1/50th of LanguageTool's memory footprint, but it is also completely private.

Harper is even small enough to load via WebAssembly.

Language Support

Harper currently only supports English, but the core is extensible to support other languages, so we welcome contributions that allow for other language support.

Performance Issues

We consider long lint times bugs. If you encounter any significant performance issues, please create an issue on the topic.

If you find a fix to any performance issue, we would appreciate the contribution. Just please make sure to read our contribution guidelines first.

Huge Thanks

This project would not be possible without the hard work from those who contribute.

Harper's logo was designed by Lukas Werner.