Wilbur51 downloadsCompile Typst files, preview PDFs, and add source-mode Typst formatting and template tools.
Typster is an Obsidian desktop plugin for writers and typesetters who keep Typst projects inside a vault. It compiles a configured .typ or .typ.md entry file with the local Typst CLI, previews the generated PDF in Obsidian, and adds a compact Typst toolbar above source-mode Typst notes.
.typ or .typ.md note as the main file.The default Typst command is typst. If that is not available in the environment used by the app, set Typst CLI command to the absolute path of the Typst executable.
After downloading a release, create this folder in your vault if it does not exist:
.obsidian/plugins/typst-book-preview/
Copy these files from the release into that folder:
manifest.json
main.js
styles.css
Then open Settings > Community plugins, disable restricted mode if needed, and enable Typster.
Settings > Typster.Main Typst file to the vault-relative path of your entry file.Choose file to search existing .typ and .typ.md files.Open preview from the command palette or the ribbon icon.Compile, or run Compile.With a vault like this:
My Book/
book.typ
book.pdf
chapters/
01-introduction.typ
media/
cover.png
Set Main Typst file to My Book/book.typ. The output PDF is written next to it as My Book/book.pdf.
If Obsidian created the source as book.typ.md, the plugin treats it as Typst source and writes book.pdf. If your tab title says book.typ but the plugin cannot find it, use Choose file or run Use active file as main file.
The toolbar appears only above source-mode .typ and .typ.md notes. It wraps selected text when possible, and inserts snippets at the cursor when there is no selection.
Toolbar groups can be enabled or disabled in settings:
Use Typst-native image syntax for vault files:
#image("media/cover.png", width: 100%)
#image("/My Book/media/cover.png", width: 100%)
Relative paths are resolved from the main Typst file. Paths that start with / are resolved from the vault root because the plugin compiles with --root set to the vault folder.
This plugin is desktop-only because it runs the local Typst CLI. It does not make network requests.
typst compile. Arguments are passed with execFile, not through a shell string.--root, the selected Typst source file, and the output PDF path. The plugin validates configured paths as vault-relative before compiling.Choose file setting lists .typ and .typ.md files so you can select a main Typst file.ENOENT, set Typst CLI command to the absolute path of the Typst executable.Choose file in settings or run Use active file as main file..typ.md file, remember that the plugin sends the file directly to Typst. The file contents need to be valid Typst.Compile manually and check the diagnostics shown in the preview pane.Install dependencies and rebuild the runtime bundle:
npm install
npm run build
For a release, build the plugin and attach these files to a GitHub release whose tag matches manifest.json:
main.js
manifest.json
styles.css