Skip to content

About

Collaborative Typst editor in the browser: code on the left, live PDF on the right. FastAPI + SQLite, self-hostable.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

4 stars

Watchers

1 watching

Forks

Latest commit

 

History

439 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Typst Editor logo

Typst Editor

Collaborative Typst editing on your own server.
Source and live PDF side by side, projects the whole team can work in, and review tools for people who shouldn't touch the source.

Install · Docs · Contributing · Security · License

CI Docker License

Typst Editor with Typst source on the left and a live PDF preview on the right

Typst Editor is a browser-based workspace for Typst documents that several people work on at once. Edits sync live, and the PDF is compiled in your own browser with Typst as WebAssembly, so there is no compile service to run or trust. On the server it is a single process: FastAPI for the API, Yjs for sync, SQLite for storage, and no Node at runtime.

  • Live editing and preview. Everyone sees changes as they are typed, with presence indicators. The PDF rebuilds locally in each browser.
  • Projects, not loose files. A project is one file tree: several documents that compile independently from their folder, next to the modules, bibliographies, images and other files they use. Versions let you compare and roll back, and can be mirrored to a Git repository.
  • Roles and review. Owners, editors and reviewers. Reviewers read, comment on lines, @-mention people and propose changes; owners and editors decide what gets accepted. Mentions and proposals arrive in an inbox.
  • Export. Each document as .typ, PDF, SVG or PNG, or a whole project as ZIP.
  • Agent access. API keys with their own role and mode (direct, proposal or automatic) and an MCP endpoint for Claude Code, OpenCode and similar clients. Agents work on paths like /Project/Folder/Document, edit the live text without disturbing people typing, hand in changes as proposal packages that humans accept hunk by hunk, and move big files through one-time curl links. A short skill lives in skills/typst-editor.
  • Built for self-hosting. Invite-only signup, per-user quotas and per-endpoint rate limits.

Installation

You need Docker. Both setups keep data in a volume and listen on loopback only.

docker run -d --name typst-editor \
  --restart unless-stopped \
  -p 127.0.0.1:8978:8978 \
  -v typst-data:/app/data \
  ghcr.io/fl-grtg/typst-editor:main

Or with Compose: grab compose.yml and start it.

curl -fsSLO https://raw.githubusercontent.com/fl-grtg/typst-editor/main/compose.yml
docker compose up -d

The image tracks the rolling main build, so run docker compose pull (or docker pull) before upgrading. To reach the app from other machines, change the port mapping and put a reverse proxy with TLS in front of it. For a locked-down container, the repo also ships compose.hardened.yml, an overlay with a read-only filesystem, dropped capabilities and no-new-privileges.

Open http://127.0.0.1:8978 and sign up with the invite code from the logs:

docker logs typst-editor 2>&1 | grep "invite code"   # docker run
docker compose logs app | grep "invite code"         # docker compose

The code is generated on first start and saved to DATA_DIR/.invite_token. For a public server, set REGISTRATION_INVITE_TOKEN before the first start.

For more information, read this README and the documentation.

Documentation

The full documentation lives in docs/. The most important pages:

  • Installation: Docker, Compose, the first account and running without Docker.
  • Configuration: every setting with its default, quotas, rate limits and startup checks.
  • Reverse proxy and TLS: Caddy and nginx examples, proxy trust and cookies.
  • Single Sign-On (OIDC): Authentik, Authelia, Kanidm and other OpenID Connect providers.
  • Agents and MCP: API keys, key modes and connecting Claude Code, OpenCode and other clients.

Contributing

Small, focused changes are easiest to review; open an issue first for anything larger and run make check before a PR. Details are in CONTRIBUTING.md, and security reports go through SECURITY.md.

License

Apache-2.0, see LICENSE. Third-party components are listed in NOTICE.

About

Collaborative Typst editor in the browser: code on the left, live PDF on the right. FastAPI + SQLite, self-hostable.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages