Skip to content

Welcome to typst_flutter

Embed the Typst typesetting compiler natively into your Flutter apps via Rust FFI. Compile Typst markup to high-quality PDFs or images on mobile and desktop instantly.

Native Performance

Runs directly on the device using a Rust core, compiling most documents in under 100ms. No WASM overhead, no WebViews, no servers.

One-time Setup

Run dart run typst_flutter:setup once after flutter pub get. This downloads the prebuilt 15MB native binaries from GitHub Releases and caches them locally — no Rust toolchain required.

Instant Live Previews

Includes drop-in TypstDocumentViewer and TypstView widgets that cache compiled pages for butter-smooth scrolling and zooming.

Structured Error Handling

Get detailed TypstDiagnostic error lines when Typst compilation fails, perfect for building in-app editors.