| Crates.io | typst-live |
| lib.rs | typst-live |
| version | 0.8.0 |
| created_at | 2023-03-26 14:10:53.387872+00 |
| updated_at | 2024-04-21 11:12:24.507476+00 |
| description | Hot reloading for your typst files |
| homepage | |
| repository | https://github.com/ItsEthra/typst-live |
| max_upload_size | |
| id | 821208 |
| size | 55,100 |
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.
--watch flagtypst-live hosts a webserver that automatically refreshes the page so you don't have to manually reload it with typst --watch
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
typst-live from your terminal:$ ./typst-live <file.typ>
Server is listening on http://127.0.0.1:5599/
http://127.0.0.1:5599/ in your browser.file.typ and watch changes appear in browser tab.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.