TypstEdit
A lightweight, native macOS editor for Typst.
Install / Use
/learn @SuperMegaFort/TypstEditREADME
TypstEdit
<p align="center"> <img src="TypstEdit/AppIcon.icns" alt="TypstEdit Icon" width="128" /> </p> <p align="center"> <b>A lightweight, native macOS editor for Typst.</b> </p> <p align="center"> <a href="#installation">Download</a> • <a href="#features">Features</a> • <a href="#building-from-source">Build</a> </p>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.

✨ Features
- ⚡️ Live Preview: Real-time compilation and preview of your document as you type.
- 🚀 Project Templates: Start quickly with built-in templates for Articles, Reports, Presentations, and Resumes.
- 🧩 Smart Snippets: Quickly insert complex elements like Tables, Charts, and Timelines with one click.
- 🎨 Syntax Highlighting: Native syntax highlighting for Typst code.
- 🍎 Native macOS Experience: Built with SwiftUI. 100% Native, fast, and lightweight.
- 🐞 Error Reporting: Integrated error panel to quickly spot compilation issues.
- 🔢 Line Numbers: Helpful ruler for code navigation.
- 📁 Project Sidebar: Easily navigate through your project files.
- 🌑 Dark Mode Optimized: Designed for a comfortable, eye-friendly dark editing environment.
📥 Installation
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.
🛠️ Building from Source
If you want to contribute or build the app yourself:
Prerequisites
- macOS 13.0+ (Ventura) or later.
- Xcode 15+ installed.
- Swift 5.9+.
Steps
-
Clone the repository:
git clone [https://github.com/votre-nom-utilisateur/TypstEdit.git](https://github.com/votre-nom-utilisateur/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
⚠️ "App is damaged" Error
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!
📄 License
This project is open source.
MIT License
Copyright (c) 2024 SuperMegaFort
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.
❤️ Credits
- Built for Typst.
- Uses the official Typst CLI binary.
Related Skills
node-connect
342.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.7kCommit, push, and open a PR
