# topiary を Homebrew, Nix, winget でインストール

topiary のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:topiary
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install topiary
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#topiary
```

  証拠: nixpkgs package indexes: pkgs/by-name/to/topiary/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- winget (92%):

```sh
winget install --id Tweag.Topiary -e
```

  証拠: Windows Package Manager source index: Tweag.Topiary from https://cdn.winget.microsoft.com/cache/source.msix

## パッケージ情報

- **パッケージキー:** brew:topiary
- **パッケージマネージャ:** Homebrew
- **バージョン:** 0.7.3
- **ソース概要:** Uniform formatter for simple languages, as part of the Tree-sitter ecosystem
- **ホームページ:** <https://topiary.tweag.io/>
- **リポジトリ:** <https://github.com/topiary/topiary>
- **最終更新:** 2026-07-04T16:53:46+09:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- topiary (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 0.7.3
## プロジェクトの歴史と使われ方

Topiary is a Rust code-formatting tool from Tweag that uses Tree-sitter grammars and query files to build formatters for multiple languages. Its project identity is a 'uniform formatter for simple languages' in the Tree-sitter ecosystem.

### プロジェクトの歴史

Topiary's changelog records an early prototype release in June 2022 and v0.1.0 in March 2023. Tweag announced the project publicly in March 2023 as a universal formatter engine aimed at both formatter authors and end users: authors write declarative formatting queries rather than a parser and engine, while users get consistent style from a single tool.

The Topiary Book explains the core architecture: Topiary relies on Tree-sitter parse trees and Tree-sitter query captures to decide where to add spacing, line breaks, and formatting actions. This makes the project part of the broader editor and parser ecosystem rather than a standalone formatter for only one language.

Through 2024 and 2025, releases added packaging, a CLI crate, dynamically fetched grammars, coverage and query tooling, OpenSCAD, WIT, SDML, Nickel and OCaml work, prefetching, man pages, and Tree-sitter upgrades. The changelog shows v0.7.3 at the end of 2025, while crates.io lists topiary-cli 0.7.3 as the current published CLI package in early 2026.

### 採用の歴史

Topiary is still a specialist formatter rather than a universal default, but it has package-manager reach in the input metadata through Homebrew, Nix, and Winget. Its audience overlaps with Nix/Tweag/Tree-sitter users, formatter authors, language-tooling maintainers, and developers working on languages that lack a mature dedicated formatter.

### 使われ方

Topiary is used either as a CLI formatter or as a framework for defining formatting behavior. Formatter authors provide Tree-sitter grammars and query files; users can run the CLI to format supported languages, prefetch grammars, check formatting in CI, and inspect coverage of formatting queries.

### パッケージ好きにとっての重要性

Topiary matters to package nerds because it turns formatting support into packageable language data: grammars, query files, and CLI releases can be distributed separately from language compilers. That fits ecosystems such as Nix, Homebrew, Winget, Tree-sitter, and editor tooling, where small language tools are composed from reusable packages.

### タイムライン

- 2022: v0.0.1 prototype recorded in the changelog.
- 2023: v0.1.0 released and Tweag announced Topiary.
- 2024: v0.5.1 era adds dynamic grammar handling and topiary-cli packaging appears on crates.io.
- 2025: v0.6.x and v0.7.x add language support, Topiary Book documentation, man pages, and Tree-sitter upgrades.
- 2026: crates.io lists topiary-cli 0.7.3 as the current published CLI release.

### Related projects

- Tree-sitter, Nickel, OCaml, OpenSCAD, WIT, SDML, Nix, Homebrew, Winget, formatter tooling.

### ソース

- <https://crates.io/crates/topiary-cli>
- <https://github.com/tweag/topiary#readme>
- <https://raw.githubusercontent.com/tweag/topiary/main/CHANGELOG.md>
- <https://topiary.tweag.io/>
- <https://topiary.tweag.io/book/>
- <https://topiary.tweag.io/book/getting-started/on-tree-sitter.html>
- <https://tweag.io/blog/2023-03-09-announcing-topiary/>
- source_facts.package-manager


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## 他のパッケージマネージャ記録

- Nix - topiary: normalized package name match | nixpkgs package indexes: pkgs/by-name/to/topiary/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- winget - Tweag.Topiary: normalized package name match | Windows Package Manager source index: Tweag.Topiary from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/topiary.yml](https://github.com/mxcl/pkgdb/blob/main/combined/topiary.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
