# 使用 Homebrew, apk, Nix, pacman, scoop, winget 安装 harper

查看 harper 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:harper
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install harper
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add harper
```

  证据: Alpine Linux edge package indexes: harper from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#harper
```

  证据: nixpkgs package indexes: pkgs/by-name/ha/harper/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S harper
```

  证据: Arch Linux sync databases: harper from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Scoop (92%):

```sh
scoop install main/harper
```

  证据: Scoop official bucket manifest trees: bucket/harper.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Automattic.harper-ls -e
```

  证据: Windows Package Manager source index: Automattic.harper-ls from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:harper
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/harper>
- **版本:** 2.6.0
- **来源摘要:** Grammar Checker for Developers
- **主页:** <https://writewithharper.com>
- **仓库:** <https://github.com/Automattic/harper>
- **上游文档:** <https://writewithharper.com/docs/integrations/language-server>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/Automattic/harper/archive/refs/tags/v2.6.0.tar.gz>
- **最后更新:** 2026-06-24T19:03:05Z
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- harper-cli (cli)
- harper-ls (cli)
- harper-cli (别名)
- harper-ls (别名)

## 构建依赖

- rust

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 2.6.0
- 管理器更新时间: 2026-06-24
- 本地数据: OK
- 上游仓库: https://github.com/Automattic/harper
- 检测到的最新版本: v2.6.0 (当前)
## 项目历史与用法

Harper is an offline, privacy-oriented English grammar checker for developers and technical writers. It began as a Rust-powered grammar and spell-checking engine, then grew into a multi-surface project with a language server, CLI, WebAssembly package, browser extensions, editor integrations, and an Obsidian integration.

### 项目历史

The repository history begins in October 2023 with experiments around highlighting, spelling, capitalization, and a Wagner-Fischer edit-distance implementation. By January 2024 the project was tagging early releases and packaging separate components such as harper-core and harper-ls.

Harper's README explains its design motivation as a response to expensive, network-bound, and heavy grammar checkers. The author describes Harper as a private tool that runs locally, lints quickly, and avoids sending writing to remote services. The project later moved under the Automattic GitHub organization, while the public repository retained its Rust workspace structure and developer-facing integrations.

### 采用历史

Harper reached users through developer tools rather than only through a standalone writing app. Official language-server docs list package-manager and ecosystem distribution through Homebrew, Scoop, Arch, Nixpkgs, Cargo, and GitHub release binaries. The same docs show editor-oriented adoption through LSP support and integrations for Visual Studio Code, Neovim, Helix, Emacs, Zed, Sublime Text, Markdown, comments in programming languages, and related writing surfaces.

The 1.0.0 release notes framed the milestone around a stable API and noted significant pre-1.0 usage across Chrome, Obsidian, VS Code, Neovim, and other integrations. That release made Harper more credible as a library and embedded grammar-checking component, not only as an end-user binary.

### 使用方式

The Homebrew package exposes `harper-cli` and `harper-ls`. In editor workflows, `harper-ls` provides Language Server Protocol diagnostics, dictionaries, code actions, ignore comments, rule configuration, dialect selection, and support for many programming and markup languages.

Harper's architecture makes it useful in both interactive and embedded contexts: the language server serves editors, the CLI fits scripts and package-manager installs, and `harper.js`/WebAssembly supports local linting in web or desktop applications.

### 为什么软件包爱好者会关心

Harper is a useful package-manager case because it is simultaneously a Rust CLI, a language server, and a library ecosystem. A package needs to expose developer-facing executables while matching the upstream release cadence and keeping integrations compatible with editor/LSP expectations.

It also represents a broader packaging trend: privacy-preserving local AI-adjacent writing tools that avoid hosted services but still integrate into developer editors, docs workflows, and programmable text-processing environments.

### 时间线

- 2023-10: Repository history begins with grammar-checking and highlighting experiments.
- 2024-01: Early public tags, including v0.2.0, appear for the Rust workspace packages.
- 2025-11: Version 1.0.0 is released as an API-stability milestone after broad editor and extension adoption.
- 2026-04: Version 2.0.0 is released with breaking changes for harper.js binary imports and additional smaller improvements.
- 2026-06: Version 2.6.0 is tagged in the upstream repository.

### Related projects

- LanguageTool and Grammarly are explicit comparison points in Harper's README motivation.
- harper-ls is the language-server frontend used by editor integrations.
- harper.js is the WebAssembly/JavaScript-facing package for embedding local linting.

### 来源

- Official Harper repository README, release notes, and language-server documentation.
- Upstream git tag history for public release timing.


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** harper
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Nix - harper: normalized package name match | nixpkgs package indexes: pkgs/by-name/ha/harper/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - harper - 2.1.0-r0: normalized package name match | Alpine Linux edge package indexes: harper from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | English grammar checker | https://github.com/Automattic/harper
- pacman - harper - 2.4.0-1: normalized package name match | Arch Linux sync databases: harper from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | The Grammar Checker for Developers | https://github.com/Automattic/harper
- Scoop - main/harper: normalized package name match | Scoop official bucket manifest trees: bucket/harper.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Automattic.harper-ls: normalized package name match | Windows Package Manager source index: Automattic.harper-ls from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://www.automicvault.com/zh-hans/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [rust](https://www.automicvault.com/zh-hans/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [ansible-language-server](https://www.automicvault.com/zh-hans/pkg/brew/ansible-language-server/) - Shares av.db curated category or tags: cli, developer-tools, language-server.
- [expert](https://www.automicvault.com/zh-hans/pkg/brew/expert/) - Shares av.db curated category or tags: cli, developer-tools, language-server.
- [fennel-ls](https://www.automicvault.com/zh-hans/pkg/brew/fennel-ls/) - Shares av.db curated category or tags: cli, developer-tools, language-server.
- [fortls](https://www.automicvault.com/zh-hans/pkg/brew/fortls/) - Shares av.db curated category or tags: cli, developer-tools, language-server.
- [gopls](https://www.automicvault.com/zh-hans/pkg/brew/gopls/) - Shares av.db curated category or tags: cli, developer-tools, language-server.
- [haskell-language-server](https://www.automicvault.com/zh-hans/pkg/brew/haskell-language-server/) - Shares av.db curated category or tags: cli, developer-tools, language-server.
- [helm-ls](https://www.automicvault.com/zh-hans/pkg/brew/helm-ls/) - Shares av.db curated category or tags: cli, developer-tools, language-server.
- [jq-lsp](https://www.automicvault.com/zh-hans/pkg/brew/jq-lsp/) - Shares av.db curated category or tags: cli, developer-tools, language-server.
- [ltex-ls](https://www.automicvault.com/zh-hans/pkg/brew/ltex-ls/) - Local metadata places this package in an adjacent workflow. Shared terms: checker, cli, developer, developer-tools, grammar.
- [ltex-ls-plus](https://www.automicvault.com/zh-hans/pkg/brew/ltex-ls-plus/) - Local metadata places this package in an adjacent workflow. Shared terms: checker, cli, developer, developer-tools, grammar.
- [zuban](https://www.automicvault.com/zh-hans/pkg/brew/zuban/) - Both packages touch the same language runtime or ecosystem. Shared terms: checker, cli, developer, developer-tools, language.
- [harper](https://www.automicvault.com/zh-hans/pkg/npm/harper/) - Same normalized package name in another local ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/harper.yml](https://github.com/automic-vault/db/blob/main/combined/harper.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
