Typstyle is a source code formatter written in Rust for the Typst typesetting and document preparation language. It automatically restructures source code to maintain consistent formatting and improve readability. The formatter is designed to preserve document content and rendered appearance while normalizing code structure. Users can configure indentation, line width, text wrapping, and mathematical expression formatting. It supports formatting individual files, entire directories, and selected line ranges. Integration with Tinymist enables formatting directly within compatible code editors. The project also provides Rust and WebAssembly libraries, browser-based formatting, and integration with automated development workflows.

Features

  • Automatic Typst source code formatting with consistent styling conventions
  • Configurable indentation, line width, text wrapping, and mathematical formatting
  • Selective formatting of individual files, directories, and specific line ranges
  • Editor integration through the Tinymist Typst language server
  • Formatting verification and difference reporting for automated development workflows
  • Rust and WebAssembly libraries for embedding formatting capabilities into applications

Project Samples

Project Activity

See All Activity >

Categories

Code Formatters

License

Apache License V2.0

Follow typstyle

typstyle Web Site

Other Useful Business Software
Ship Agents Faster Icon
Ship Agents Faster

Transform your applications and workflows into powerful agentic systems at global scale.

Gemini platform lets you rapidly build, scale, govern and optimize production-ready agents grounded in your organization's data. The platform enables developers to build custom or pre-built agents for virtually any use case. Developers get access to both Gemini and third-party models.
Get started
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of typstyle!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Rust

Related Categories

Rust Code Formatters

Registered

11 hours ago