macOS
brew install topiarylocal Homebrew formula metadata
brew
Uniform formatter for simple languages, as part of the Tree-sitter ecosystem. Version 0.7.3 via Homebrew; verified 2026-07-04.
install
brew install topiarylocal Homebrew formula metadata
nix profile install nixpkgs#topiarynixpkgs package indexes · pkgs/by-name/to/topiary/package.nix · source: api.github.com
winget install --id Tweag.Topiary -eWindows Package Manager source index · Tweag.Topiary · source: cdn.winget.microsoft.com
overview
Uniform formatter for simple languages, as part of the Tree-sitter ecosystem
history
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.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
topiary | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/topiary/topiary
install metadata
| Package key | brew:topiary |
|---|---|
| Version | 0.7.3 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/topiary |
| Homepage | https://topiary.tweag.io/ |
| Repository | https://github.com/topiary/topiary |
| Upstream docs | https://topiary.tweag.io/book |
| License | MIT |
| Source archive | https://github.com/topiary/topiary/archive/refs/tags/v0.7.3.tar.gz |
| Last updated | 2026-07-04T16:53:46+09:00 |
| Pulse | updated |
| Build dependencies | rust |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | topiary |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
topiary
nix profile install nixpkgs#topiaryTweag.Topiary
winget install --id Tweag.Topiary -esource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.