{"repo":"typstyle-rs/typstyle","free":true,"listed":false,"github":"https://github.com/typstyle-rs/typstyle","clone":"git clone https://github.com/typstyle-rs/typstyle.git","description":"Beautiful and reliable typst code formatter","language":"Rust","stars":877,"topics":["typst","typstfmt","formatter"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"typstyle A beautiful and reliable code formatter for Typst. Try Online First Try typstyle instantly in your browser: 🎮 Playground The playground runs the latest version of typstyle with live formatting. Perfect for testing formatting behavior before installing locally. Installation and Usage Use as a CLI Installation You can install typstyle using any of the following methods: 1. Download the binary from the release page. 2. Install it from your package manager: . 1. Notably, typstyle is available in Archlinux CN repo. 3. Install using cargo-binstall : 4. Install it with cargo : CLI Usage Examples - Format a file in place: - Format a file and print the result to stdout: - Format multiple files in place: - Format all files in a directory: - Read from stdin and print the result to stdout: Use in your editor Typstyle has been integrated into tinymist. You can use it in your editor by installing the tinymist plugin and set tinymist.formatterMode to typstyle . Use in typst.app Checkout typstyle-tampermonkey, a userscript that integrates typstyle into the typst.app editor. Use as a web app Try the playground at: The playground integrates the latest version of typstyle. If you encounter formatting issues, please verify them in the playground first before reporting bugs. Use as a Library - Rust : - WebAssembly : Use as a GitHub Action The typstyle-action maintained by @grayespinoza can install and run typstyle in a GitHub Action. Use with pre-commit Add this to your .pre-commit-conf","default_branch":null,"files":null,"tree":[],"storefront":"/r/typstyle-rs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/typstyle-rs/typstyle/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}