
Harper
Offline, Rust-powered grammar checker
Replaces —
Who it's for
A developer writing documentation, commit messages, or README files in VS Code, Neovim, or Zed can get inline grammar suggestions through harper-ls without switching applications or sending text to a cloud service.
A writer who does not want their drafts processed by a third-party server can use Harper as an offline alternative to Grammarly, keeping all text local while still catching common grammar errors.
User needs advanced style or tone suggestions beyond grammar rules.
Someone managing a personal knowledge base in Obsidian can install the Harper plugin to get grammar checking inside their notes without requiring a cloud account.
A developer building a text editor or writing interface in React or Svelte can integrate Harper via `harper.js` to add client-side grammar checking without a backend service or per-request API cost.
App requires multi-language support.
The problem
Grammar checkers either send your writing to remote servers (Grammarly) or demand gigabytes of RAM and large model downloads to run locally (LanguageTool). Writers who need fast, private grammar checking without cloud dependencies have had no lightweight alternative.
How it works
Harper runs entirely on-device. Your text is never sent to a server, eliminating the privacy concerns associated with cloud grammar checkers that process writing on remote infrastructure.
Documents are linted in milliseconds. The project treats long lint times as bugs, and performance regressions are addressed as first-class issues rather than acceptable trade-offs.
Harper uses less than 1/50th of LanguageTool's memory footprint. It requires no large n-gram dataset downloads, making it practical on machines with limited RAM.
The checker compiles to WebAssembly and can run directly in a browser via the hosted demo at writewithharper.com or embedded in web applications through the `harper.js` package.
`harper-ls` is a Language Server Protocol implementation that brings Harper into Visual Studio Code, Neovim, Helix, Emacs, and Zed. An Obsidian plugin and Chrome extension are also available.
The `harper.js` npm package lets developers integrate grammar checking into Node.js, React, and Svelte applications without requiring a separate process or server.
Features
- Fully offline and private
- Millisecond linting
- Minimal memory footprint
- WebAssembly support
- Language server and editor integrations
- Embeddable via harper.js
How to install
cargo install harper-ls
Recommended for this setup
Strengths
- No data leaves your machine: Unlike Grammarly, which transmits everything you type to its servers, Harper processes text locally. There is no account, no telemetry, and no network round-trip involved in checking a document.
- No large model downloads required: LanguageTool's local mode requires a ~16GB n-gram dataset. Harper ships without any large asset download, making setup fast and storage requirements minimal.
- Works inside developer workflows: Harper integrates directly into editors developers already use, including VS Code, Neovim, Helix, Emacs, and Zed, via a standard Language Server Protocol implementation.
- Backed by Automattic: The repository is maintained under the Automattic GitHub organization, providing organizational backing and contributor infrastructure for an open-source project with 16.7k stars.
Trade-offs
- English only: Harper currently supports English exclusively. The core is designed to be extensible, but no other language support exists yet. Writers working in other languages cannot use it.
- Rule-based, not AI-powered: Harper uses deterministic grammar rules rather than a large language model. It will not catch stylistic or contextual issues that LLM-based tools can sometimes surface, and its suggestions are limited to what its rule set covers.
- Narrower rule set than established tools: As a younger project, Harper's grammar rule coverage is narrower than Grammarly or the full LanguageTool rule set. Professional writers who depend on comprehensive style guidance may find gaps.
Tech stack
FAQ
No. Harper runs entirely offline. Your text is processed locally and never transmitted to a remote server.
Harper supports Visual Studio Code, Neovim, Helix, Emacs, and Zed via harper-ls (a Language Server Protocol implementation). There is also an Obsidian plugin and a Chrome extension.
Not yet. Harper currently supports English only. The core is designed to be extensible, and the project welcomes contributions that add other language support.
Harper uses less than 1/50th of LanguageTool's memory footprint and requires no large dataset downloads. LanguageTool's local mode requires a ~16GB n-gram dataset, while Harper ships without any large assets.
Yes. Harper compiles to WebAssembly and is available as the `harper.js` npm package, which supports Node.js, React, and Svelte. The checker can run client-side in the browser without a backend service.