A lightweight, native macOS editor for Typst.
TypstEdit is a native SwiftUI application designed to make writing Typst documents on macOS seamless and efficient. It combines a robust text editor with a live preview, leveraging the speed of the native Typst CLI.
- ⚡️ Save Preview: Real-time compilation and preview of your document as you save the document.
- 🎨 Advanced Syntax Highlighting: Refined native syntax highlighting for Typst with accurate keyword, function, and markup styling.
- 🔍 Find and Replace: Powerful search functionality with editor scrolling to results.
- 🔢 Line Numbers: Helpful ruler for code navigation.
- 📝 Rich Text Formatting: Support for bold, italic, underline, strikethrough, highlight, subscript, and superscript.
- 📋 List Support: Bullet lists, numbered lists, and description lists with one-click insertion.
- 💬 Code Blocks & Quotes: Inline code, code blocks, and block quotes with syntax support.
- 🔄 Markdown Auto-Conversion: Paste Markdown directly into your
.typfiles and it will automatically convert to native Typst syntax! (Note: Highly complex Markdown syntax may occasionally fail to convert perfectly, so please review and correct the output after pasting).
- 🧮 Visual Equation Editor: Interactive equation editor with live LaTeX preview for mathematical expressions.
- 🖼️ Figure Editor: Visual interface for inserting and editing figures with captions and references.
- 🔧 Foundation Item Picker: Drill-down navigation for Typst foundation items (arrays, strings, datetime, calc, etc.) with searchable methods and properties.
- 🎯 Contextual Editing: Smart "Edit at Cursor" feature that detects and opens appropriate editors for tables, links, equations, and more.
- 🚀 Project Templates: Start quickly with built-in templates for Articles, Reports, Presentations, and Resumes.
- 📁 Project Sidebar: Easily navigate through your project files.
- 📥 LyX Import: Convert LyX documents to Typst format with automatic font, page size, and heading detection.
- 📤 Export Options: Export to PDF, PNG, or SVG formats.
- 💾 Project Backup: One-click project backup functionality.
- 🧩 Smart Snippets: Quickly insert complex elements like Tables, Charts, Timelines, and Outlines with one click.
- 🔗 Quick Insert Menu: Easy access to symbols, external data, document styles, and more.
- ⌨️ Comprehensive Keyboard Shortcuts: Full keyboard shortcuts for all insert menu items and formatting options.
- 🔄 Typst Compiler Updates: Built-in updater to download and install the latest Typst compiler.
- ⚙️ Flexible Update Modes: Choose between stable pre-compiled binaries or bleeding-edge source builds.
- 🛠️ Custom Compiler Path: Support for custom Typst binary locations.
- 🍎 Native macOS Experience: Built with SwiftUI. 100% Native, fast, and lightweight.
- 🐞 Error Reporting: Integrated error panel to quickly spot compilation issues.
- 🌑 Dark Mode Optimized: Designed for a comfortable, eye-friendly dark editing environment.
- ♿️ Accessibility Features: Color blindness simulation modes (Protanopia, Deuteranopia, Tritanopia).
- 📐 Flexible Layout: Split views vertically or horizontally, editor-only, preview-only, or both panels.
TypstEdit is available for both Apple Silicon (M1/M2/M3) and Intel Macs.
- Go to the Releases page.
- Download the correct installer for your Mac:
- Apple Silicon (M1/M2/M3): Download
TypstEdit_AppleSilicon.dmg - Intel Macs: Download
TypstEdit_Intel.dmg
- Apple Silicon (M1/M2/M3): Download
- Open the
.dmgand drag the app to your Applications folder.
If you want to contribute or build the app yourself:
- macOS 13.0+ (Ventura) or later.
- Xcode 15+ installed.
- Swift 5.9+.
-
Clone the repository:
git clone [https://github.com/tmagri/TypstEdit.git](https://github.com/tmagri/TypstEdit.git) cd TypstEdit -
Ensure the Typst binary is present: The app requires the
typstbinary. Place the appropriate binary for your architecture inTypstEdit/typst-aarch64-apple-darwin/typst(or allow the script to handle it if configured). -
Bundle and Build: Use the included script to compile and create the bundle:
chmod +x bundle.sh ./bundle.sh
-
Create Installer (Optional): To generate the
.dmgfile:chmod +x create_dmg.sh ./create_dmg.sh
Since this app is open-source and not signed with a paid Apple Developer ID, macOS Gatekeeper might show a message saying "TypstEdit is damaged and can't be opened" on the first launch.
To fix this (you only need to do it once):
- Open your Terminal app.
- Paste the following command and press Enter:
xattr -cr /Applications/TypstEdit.app
- You can now open the app normally!
This project is open source.
MIT License
Copyright (c) 2024-2026 SuperMegaFort, tmagri
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- Built for Typst.
- Uses the official Typst CLI binary.

