macOS
brew install typstylelocal Homebrew formula metadata
安装
brew install typstylelocal Homebrew formula metadata
sudo apk add typstyleAlpine Linux edge package indexes · typstyle · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#typstylenixpkgs package indexes · pkgs/by-name/ty/typstyle/package.nix · 来源: api.github.com
sudo pacman -S typstyleArch Linux sync databases · typstyle · 来源: geo.mirror.pkgbuild.com
scoop install main/typstyleScoop official bucket manifest trees · bucket/typstyle.json · 来源: api.github.com
winget install --id Enter-tainer.typstyle -eWindows Package Manager source index · Enter-tainer.typstyle · 来源: cdn.winget.microsoft.com
概览
Beautiful and reliable typst code formatter
历史
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.
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.
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.
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.
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
typstyle | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:typstyle |
|---|---|
| 版本 | 0.15.1 |
| 软件包管理器 | Homebrew |
| 主页 | https://typstyle-rs.github.io/typstyle/ |
| 仓库 | https://github.com/typstyle-rs/typstyle |
| 最后更新 | 2026-08-02T07:22:36Z |
| Pulse | updated |
| Bottle | 未记录 |
| 服务 | 未声明 |
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
typstyle
nix profile install nixpkgs#typstyletypstyle 0.12.14-r0
Beautiful and reliable typst code formatter
https://enter-tainer.github.io/typstyle/
sudo apk add typstyletypstyle 0.15.0-1
Beautiful and reliable typst code formatter
https://github.com/typstyle-rs/typstyle
sudo pacman -S typstylemain/typstyle
scoop install main/typstyleEnter-tainer.typstyle
winget install --id Enter-tainer.typstyle -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.