# Install typstyle with Homebrew, apk, Nix, pacman, scoop, winget

Beautiful and reliable typst code formatter. Version 0.15.0 via Homebrew; verified 2026-06-20.

## Install

```sh
sudo av install brew:typstyle
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install typstyle
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add typstyle
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#typstyle
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ty/typstyle/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S typstyle
```

  Evidence: Arch Linux sync databases: typstyle from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Scoop (92%):

```sh
scoop install main/typstyle
```

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

- winget (92%):

```sh
winget install --id Enter-tainer.typstyle -e
```

  Evidence: Windows Package Manager source index: Enter-tainer.typstyle from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:typstyle
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/typstyle>
- **Version:** 0.15.0
- **Source summary:** Beautiful and reliable typst code formatter
- **Homepage:** <https://typstyle-rs.github.io/typstyle/>
- **Repository:** <https://github.com/typstyle-rs/typstyle>
- **Upstream docs:** <https://typstyle-rs.github.io/typstyle>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/typstyle-rs/typstyle/archive/refs/tags/v0.15.0.tar.gz>
- **Last updated:** 2026-06-20T10:13:01Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- typstyle (cli)
- typstyle (alias)

## Build dependencies

- rust

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.15.0
- Package-manager updated: 2026-06-20
- Local data: ok
- Upstream repository: https://github.com/typstyle-rs/typstyle
- Upstream latest detected: v0.15.0 (current)
## Project history and usage

typstyle is an opinionated formatter for Typst source code. It belongs to the familiar package-manager niche of language-specific formatters: small executable, editor and CI integration, check/diff modes, and minimal configuration.

### Project history

The typstyle repository was created in March 2024. Its README says the project was started because existing Typst formatters were not a good fit for experiments with Wadler-style pretty printing, limited configuration, and stronger formatter correctness testing.

The project describes its goals as opinionated formatting, formatting code rather than prose content, convergence after repeated runs, and preserving rendered output. Its documentation and README also present it as a CLI, Rust library, WebAssembly package, playground, editor formatter through Tinymist, GitHub Action, and pre-commit hook.

### Adoption history

The README documents installation from GitHub releases, package managers through Repology, cargo-binstall, and Cargo. The batch package facts show Homebrew, Nix, Arch, Scoop, winget, and apk packaging, which is typical for a formatter that becomes useful once a document language gains enough users.

typstyle's adoption is closely tied to Typst's growth: it formats `.typ` files for local development, editor integrations, pre-commit hooks, and CI checks rather than serving as a standalone document authoring system.

### How it is used

Typical usage is `typstyle -i file.typ` to rewrite files, plain `typstyle file.typ` to print formatted output, `--check` for CI, and `--diff` to inspect changes. The README also documents line width, indent width, import reordering, text wrapping, and escape-hatch comments.

For package-oriented workflows, typstyle is useful because it can be installed as a normal CLI, run in pre-commit, integrated into Tinymist, or invoked through a GitHub Action without adding a larger build framework.

### Why package nerds care

typstyle is significant as part of the maturing Typst ecosystem: once a document language gets package managers, editor support, and CI use, a formatter becomes infrastructure. It is also a good example of Rust CLI distribution spanning crates.io, binary releases, Homebrew, distro packages, and WebAssembly.

### Timeline

- 2024-03-09: typstyle-rs/typstyle GitHub repository created.
- 2025: README documents editor, web, GitHub Action, and pre-commit integration surfaces.
- 2026-06-20: v0.15.0 released after Typst 0.15 support.

### Related projects

- Typst is the source language typstyle formats.
- Tinymist is the editor integration path named by the README.
- typstyle-action, pre-commit-typstyle, and typstyle-tampermonkey are companion projects in the typstyle-rs organization.

### Sources

- <https://api.github.com/repos/typstyle-rs/typstyle>
- <https://api.github.com/repos/typstyle-rs/typstyle/releases>
- <https://github.com/typstyle-rs/typstyle>
- <https://typstyle-rs.github.io/typstyle/>
- source_facts.package-manager


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** typstyle
- **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

## Other Package-Manager Records

- Nix - typstyle: normalized package name match | nixpkgs package indexes: pkgs/by-name/ty/typstyle/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - typstyle - 0.12.14-r0: normalized package name match | Alpine Linux edge package indexes: typstyle from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Beautiful and reliable typst code formatter | https://enter-tainer.github.io/typstyle/
- pacman - typstyle - 0.14.4-3: normalized package name match | Arch Linux sync databases: typstyle from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Beautiful and reliable typst code formatter | https://github.com/typstyle-rs/typstyle
- Scoop - main/typstyle: normalized package name match | Scoop official bucket manifest trees: bucket/typstyle.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Enter-tainer.typstyle: normalized package name match | Windows Package Manager source index: Enter-tainer.typstyle from https://cdn.winget.microsoft.com/cache/source.msix


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [dockerfmt](https://www.automicvault.com/pkg/brew/dockerfmt/) - Shares av.db curated category or tags: cli, code-formatting, developer-tools, formatter, formatters.
- [oxfmt](https://www.automicvault.com/pkg/brew/oxfmt/) - Shares av.db curated category or tags: cli, developer-tools, formatter, formatters, rust.
- [sleek](https://www.automicvault.com/pkg/brew/sleek/) - Shares av.db curated category or tags: cli, developer-tools, formatter, formatters, rust.
- [beautysh](https://www.automicvault.com/pkg/brew/beautysh/) - Shares av.db curated category or tags: cli, developer-tools, formatter, formatters.
- [buildifier](https://www.automicvault.com/pkg/brew/buildifier/) - Shares av.db curated category or tags: cli, developer-tools, formatter, formatters.
- [cljfmt](https://www.automicvault.com/pkg/brew/cljfmt/) - Shares av.db curated category or tags: cli, developer-tools, formatter, formatters.
- [dfmt](https://www.automicvault.com/pkg/brew/dfmt/) - Shares av.db curated category or tags: cli, developer-tools, formatter, formatters.
- [dprint](https://www.automicvault.com/pkg/brew/dprint/) - Shares av.db curated category or tags: cli, developer-tools, formatters, rust.

## Combined YAML source

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


## Sources

- 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
