MCPcopy Index your code
hub / github.com/ItsEthra/typst-live

github.com/ItsEthra/typst-live @v0.7.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.7.0 ↗ · + Follow
10 symbols 14 edges 4 files 1 documented · 10% updated 4mo ago★ 1356 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Typst-live

This is a simple utility to watch for changes in your typst file and automatically recompile them for live feedback. typst-live allows you to open a tab in your browser with typst generated pdf and have it automatically reload whenever your source .typ files are changed.

Difference from --watch flag

typst-live hosts a webserver that automatically refreshes the page so you don't have to manually reload it with typst --watch

Installation

If you have rust setup use the following command:

cargo install typst-live

If you use Nix, you can run typst-live directly from the GitHub repository using the following command:

nix run github:ItsEthra/typst-live

Usage

1. With auto recompilation

  • Launch typst-live from your terminal:
$ ./typst-live <file.typ>
Server is listening on http://127.0.0.1:5599/
  • Go to http://127.0.0.1:5599/ in your browser.
  • Now edit your file.typ and watch changes appear in browser tab.

2. With manual recompilation

You can use typst-live to reload pdf files without recompilation of source files. For that you want to use --no-recompile option which disables recompilation and just hosts your pdf file in browser tab, you will need to specify filename as pdf instead of source .typ file. Whenever pdf file changes browser tab will be refreshed.

Core symbols most depended-on inside this repo

run
called by 1
src/main.rs
graceful_shutdown
called by 1
src/main.rs
setup_watching_typst
called by 1
src/watcher.rs
handler
called by 1
src/routes.rs
main
called by 0
src/main.rs
root
called by 0
src/routes.rs
target
called by 0
src/routes.rs
listen
called by 0
src/routes.rs

Shape

Function 8
Class 2

Languages

Rust100%

Modules by API surface

src/routes.rs4 symbols
src/main.rs4 symbols
src/watcher.rs1 symbols
src/state.rs1 symbols

For agents

$ claude mcp add typst-live \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page