Automic VaultAutomic Vault

brew

Install topiary with Homebrew, Nix, winget

Uniform formatter for simple languages, as part of the Tree-sitter ecosystem. Version 0.7.3 via Homebrew; verified 2026-07-04.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install topiary

local Homebrew formula metadata

Linux

Nixverified · 92%
nix profile install nixpkgs#topiary

nixpkgs package indexes · pkgs/by-name/to/topiary/package.nix · source: api.github.com

Windows

Windows Package Managerverified · 92%
winget install --id Tweag.Topiary -e

Windows Package Manager source index · Tweag.Topiary · source: cdn.winget.microsoft.com

overview

Package summary

Uniform formatter for simple languages, as part of the Tree-sitter ecosystem

Commands and aliases

  • topiary

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 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.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
topiarycliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version0.7.3
manager updated2026-07-04
local dataok
upstreamcurrent
latest detectedv0.7.3

https://github.com/topiary/topiary

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:topiary
Version0.7.3
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/topiary
Homepagehttps://topiary.tweag.io/
Repositoryhttps://github.com/topiary/topiary
Upstream docshttps://topiary.tweag.io/book
LicenseMIT
Source archivehttps://github.com/topiary/topiary/archive/refs/tags/v0.7.3.tar.gz
Last updated2026-07-04T16:53:46+09:00
Pulseupdated
Build dependenciesrust
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nametopiary
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

topiary

nix profile install nixpkgs#topiary
  • normalized package name match
  • Matched by: Topiary
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/to/topiary/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
winget95%

Tweag.Topiary

winget install --id Tweag.Topiary -e
  • normalized package name match
  • Matched by: Topiary
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: Tweag.Topiary from https://cdn.winget.microsoft.com/cache/source.msix

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

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