Typst-live

This is a simple utility to watch for changes in your typst file and automaticaly 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

Usage

1. With auto recompilation

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.