Self-host Typst
v0.15.1Markup typesetting system that compiles to PDF and HTML
docker run ghcr.io/typst/typst:latest --help- Stars
- 57 083
ghcr.io/typst/typstWhat is Typst?
Typst is a markup-based typesetting system built to deliver LaTeX-level power with a much gentler learning curve, which makes it popular for papers, theses, reports, books, invoices and other structured documents. Its compiler reads .typ sources and emits PDFs, PNG or SVG images, HTML pages, or bundles, handling headings, tables, figures, mathematical notation, citations and syntax-highlighted code, while an embedded scripting language with variables, functions and document introspection lets you generate whole documents from CSV or JSON data. Compilation is incremental, so typst watch re-renders after each save in milliseconds; packages and templates are downloaded from Typst Universe and cached locally, and a project can be scaffolded from a template with the init command. Fonts are discovered system-wide or from extra directories, output can be forced to conform to PDF/A and PDF/UA-1 standards for archiving and accessibility, and documents build inside a sandbox that allows no network requests beyond the package registry and no file reads outside the project root; native capabilities come only through sandboxed WebAssembly plugins. You run it yourself as a single static binary (Windows, macOS and Linux builds for x86_64, ARM, ARMv7 and RISC-V), through package managers such as Homebrew, winget, Snap and distro repos, a Nix flake, cargo install, or the published ghcr.io container, and the same engine is available as a Rust crate to embed in your own tooling. The compiler is Apache-2.0 licensed; it ships no editor or GUI, since the collaborative web app with instant preview, teams and comments is proprietary commercial software with Free, Pro and On-Premises tiers, and CLI documentation is delivered through typst help and man pages.
Typst alternatives
texlyreSelf-hosted open-source web editor for LaTeX and Typst with real-time co-editing, offline-first design, and in-browser compilation.Comparetexlyre with Typst
StackResumeSelf-hosted AI resume builder with multi-agent pipeline, JD tailoring, and export to PDF, Word, and OpenDocument.CompareStackResume with Typst
TypemillOpen-source, self-hosted flat-file CMS for documentation sites, manuals and knowledge bases: write Markdown, publish websites, PDFs and EPUBs, no database needed.CompareTypemill with Typst
collabstSelf-hosted, open-source collaborative workspace for Typst documents with real-time editing, comments, and live preview — built for research labs and personal projects.Comparecollabst with Typst
folderhostA self-hosted, open-source cloud platform offering file sharing, real-time collaboration, and user management in a ~19MB binary as a lightweight Nextcloud alternativeComparefolderhost with Typst
simonSimon is a self-hosted, open-source system monitor in Rust with real-time metrics, Docker monitoring, file browser, and alerting via webhooks — all in a single binary.Comparesimon with Typst
GitingestOpen-source tool that turns a Git repository into one prompt-ready text digest for LLMs. Use the CLI, the Python package, or a self-hosted Docker web server.CompareGitingest with Typst
AizenAizen is a self-hosted AI coding agent as a single 34 MB Rust binary. Connects to any OpenAI-compatible endpoint, reads/edits code, runs tests, verifies work.CompareAizen with Typst
All self-hosted alternatives to LaTeX → All self-hosted alternatives to Word and Google Docs →
Should you self-host Typst?
Typst scores 82/100 on selfhost.directory (how scoring works) and ranks #1 of 2 in Publishing. It has 57 083 GitHub stars, +354 in the last 30 days.
It shipped 4 stable releases in the past year. The latest, v0.15.1, came out on 17 July 2026. New versions land roughly every 5 weeks.
Setup is easy: most people get it running in one sitting. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Rust.
Its closest alternative on selfhost.directory is OJS (62/100, 1 051 stars). Typst scores higher overall. See Typst vs OJS side by side.
Features
- Accessible and archivable PDF output
- Bibliography management
- Data loading (CSV/JSON)
- Embedded scripting
- HTML ExportDescribed as in preview; html is an in-development CLI feature flag.
- Image export (PNG, SVG)The PPI used for PNG export defaults to 144.
- Incremental compilation
- Math typesetting
- Package manager
- PDF Export
- Template scaffolding
- Usable as a library
- Watch mode with auto-recompile
- WebAssembly plugins
Typst README
Typst is a new markup-based typesetting system that is designed to be as powerful as LaTeX while being much easier to learn and use. Typst has:
- Built-in markup for the most common formatting tasks
- Flexible functions for everything else
- A tightly integrated scripting system
- Math typesetting, bibliography management, and more
- Fast compile times thanks to incremental compilation
- Friendly error messages in case something goes wrong
FAQ
Why is the Typst web app not open-source?
The company argues the project needs financial resources to sustain full-time development, so the web app and other commercial products fund the compiler while users can compile documents entirely with free software.
How can I support Typst's development?
Adopting Typst at your company or university, subscribing to Typst Pro, or sponsoring via GitHub Sponsors all help; contributors to the compiler and its dependencies also set up ways to be supported directly.
Will Typst remain open-source?
The team commits to keeping the compiler open-source and to not adding proprietary language extensions, so markup that compiles in the web app also compiles with the compiler.
Is Typst open-source?
The compiler is free open-source software under Apache-2.0 and is all you need to compile markup to PDFs and other files; the collaborative web app is proprietary commercial software, which can be licensed for self-hosting through Typst On-Premises.
Where do I find documentation for the Typst compiler?
The CLI documents itself through typst help, optionally with a subcommand such as compile, and package-manager installs usually also provide man pages. A dedicated online CLI section is planned for the future.
How do I use packages with the Typst compiler?
Import them with an @namespace/name:version statement and the compiler downloads and caches the package locally. Templates can be initialized with typst init, and you can also add your own local packages.
Can I use the open-source Typst compiler in my company?
Yes, both the CLI and the Rust library are Apache-2.0 licensed and free for commercial use, subject to the NOTICE file and the Typst brand guidelines for the name and logo. Commercial expert support for production compiler use is offered separately.
How do I update the Typst compiler?
Use your package manager's update mechanism if you installed that way; with a prebuilt binary you run typst update to fetch the newest release.
Can I embed the Typst compiler in my application?
Yes, under the permissive Apache-2.0 licence (a NOTICE file must be redistributed). It is available as a Rust crate on crates.io, and embedders implement the World trait that governs how the sandbox reads files and retrieves packages.
Can I use Typst in my code editor?
Yes, community plugins exist for VS Code, Neovim, Emacs, Helix and Zed, with Tinymist being the most popular language server. You can also skip the language server entirely and compile .typ files from the command line.
How do I install the Typst compiler?
Depending on your operating system and CPU architecture you can use your package manager or download one of the prebuilt binaries, which then must live in a directory on your PATH; if no binary exists for your platform you can build it with Rust and Cargo.
Is Typst safe to use?
Documents compile in a sandbox: they can only read files inside the project root, cannot use other applications, and the only network access allowed is fetching packages from the official registry. Native functionality has to come in through sandboxed WebAssembly plugins.
How do I get started with Typst?
Pick web app or compiler: online you sign up and create a project; locally you install the compiler, put markup in a file such as main.typ and run typst watch main.typ to regenerate the PDF on every save. The project's tutorial then walks through the language.
Should I use the Typst compiler or the Typst web app?
The web app suits newcomers, collaboration and a no-install setup; the compiler is the right choice when you want to use your own editor or drive Typst from a program or script. Both produce the same output for markup that does not depend on private packages.
What is the difference between the Typst compiler and the Typst web app?
The compiler is the open-source engine that turns Typst markup into PDFs, HTML pages or images and runs as a command-line tool, while the web app is a collaborative cloud environment with an editor, preview and team features built on top of it.
More in Publishing
VonCMSVonCMS is a self-hosted, open-source CMS for publishers. Runs on PHP/MySQL with no Node.js, offering editorial workflow, bundled themes, built-in SEO, GPL-3.0-only.
WeChat Markdown EditorOpen-source WeChat Markdown editor turning plain Markdown into styled Official Account posts with image hosts, themes and AI; run it self-hosted via Docker or npm.
amusewikiSelf-hosted wiki engine using Emacs Muse markup with Git backend, multi-site support, EPUB/PDF output via LaTeX, OPDS server, and bookbuilder.
CookCLIA self-hosted, open-source recipe manager in one binary: it parses plain .cook files, builds shopping lists and meal plans, and serves a browsable cookbook web UI.
CoralSelf-hosted, open-source comment platform from Vox Media for news sites: moderation queues, banned-word lists, Perspective toxicity and Akismet spam filters, SSO.
cStateAn open-source, self-hosted status page built with Hugo: Markdown incidents, a read-only JSON API, RSS/Atom feeds, SVG badges, and auto dark mode.
HyphanetFred, the open-source Hyphanet/Freenet reference node, is a self-hosted encrypted P2P network for anonymous freesites, forums, microblogging and file sharing.
OJSOpen Journal Systems (OJS) is a self-hosted, open-source platform for managing scholarly journals with manuscript submission, peer review, and publishing workflows.
outstaticA self-hosted Git-based CMS: Outstatic adds an editing dashboard for the Markdown and MDX files in your GitHub repository, with no database and no hosted CMS backend.
SuperdeskSuperdesk is a self-hosted, open-source digital newsroom platform for news organizations, combining headless CMS with editorial workflows and multi-channel publishing.
TextpatternSelf-hosted, open-source PHP/MySQL CMS with a tag-based template language, themes, plugins, multi-site support, and an admin panel in 50+ languages.

0 comments