Typst Documents

Typst Documents

Compile Typst source text into PDF or SVG documents, with FlowLike-backed assets and Typst Universe package resolution

Free
v0.1.4 3,409 downloads ✓ Verified MIT public

About

Flow-Like Typst Nodes

WASM node package for compiling Typst documents inside FlowLike workflows. The package compiles Typst source text into PDF/SVG artifacts, resolves relative imports/assets from a FlowLike source folder, and returns structured compile metadata.

Nodes

Implemented in this package:

Node

Purpose

Typst Source to PDF

Compile Typst source text into PDF and write the PDF to an output

FlowPath

.

Typst File to PDF

Read a

.typ

file from FlowLike storage and compile it into PDF.

Typst Source to SVG

Compile Typst source text into SVG and write the SVG to an output

FlowPath

.

Validate Typst Source

Compile Typst source text without exporting, returning success, page count, and warnings.

Primary pins:

Pin

Type

Use

source

string

Main Typst source text compiled as

main.typ

by the source/validate nodes.

source_file

FlowPath

Main

.typ

file used by

Typst File to PDF

.

source_folder

FlowPath

Folder used as the root for relative imports and assets referenced by

source

.

output_file

FlowPath

PDF/SVG file to write. Compile nodes always write to this path.

allow_universe_packages

bool

Enables

@preview/...

Typst Universe package downloads through FlowLike host HTTP. Defaults to

true

; displayed as

Packages

.

When source_folder is omitted for Typst File to PDF, relative files resolve from the parent folder of source_file.

When source_folder points to:

reports

then source text can reference files below that folder with relative Typst paths:

#import "templates/styles.typ": *#image("images/logo.png")#let csv = read("data/table.csv")#bibliography("refs.bib")

Typst Universe imports work when allow_universe_packages is enabled and the workflow grants outbound HTTP:

#import "@preview/conchord:0.4.0": smart-chord

Package files are fetched from https://packages.typst.org, decompressed in memory for the current node run, and resolved separately from relative project files.

Typst Package Choices

The implementation uses current Typst Rust crates instead of shelling out to the Typst CLI:

Crate

Role

typst

Core compiler and document model.

typst-as-lib

In-memory source/file resolver around Typst.

typst-assets

Embedded default fonts for sandboxed compilation.

typst-pdf

PDF export.

typst-svg

SVG export.

Typst Universe @preview/... packages are resolved through FlowLike host HTTP, not the native Typst package cache. This keeps the WASM node aligned with FlowLike permissions and avoids depending on a local filesystem cache.

Flow-Like Typst Nodes WASM node package for compiling Typst documents inside FlowLike workflows. The package compiles Typst source text into PDF/SVG artifacts, resolves relative imports/assets from a FlowLike source folder, and returns structured compile metadata. Nodes Implemented in this package: Node Purpose Typst Source to PDF Compile Typst source text into PDF and write the PDF to an output FlowPath . Typst File to PDF Read a .typ file from FlowLike storage and compile it into PDF. Typst Source to SVG Compile Typst source text into SVG and write the SVG to an output FlowPath . Validate Typst Source Compile Typst source text without exporting, returning success, page count, and warnings. Primary pins: Pin Type Use source string Main Typst source text compiled as main.typ by the source/validate nodes. source_file FlowPath Main .typ file used by Typst File to PDF . source_folder FlowPath Folder used as the root for relative imports and assets referenced by source . output_file FlowPath PDF/SVG file to write. Compile nodes always write to this path. allow_universe_packages bool Enables @preview/... Typst Universe package downloads through FlowLike host HTTP. Defaults to true ; displayed as Packages . When source_folder is omitted for Typst File to PDF , relative files resolve from the parent folder of source_file . When source_folder points to: reports then source text can reference files below that folder with relative Typst paths: #import "templates/styles.typ": * #image("images/logo.png") #let csv = read("data/table.csv") #bibliography("refs.bib") Typst Universe imports work when allow_universe_packages is enabled and the workflow grants outbound HTTP: #import "@preview/conchord:0.4.0": smart-chord Package files are fetched from https://packages.typst.org , decompressed in memory for the current node run, and resolved separately from relative project files. Typst Package Choices The implementation uses current Typst Rust crates instead of shelling out to the Typst CLI: Crate Role typst Core compiler and document model. typst-as-lib In-memory source/file resolver around Typst. typst-assets Embedded default fonts for sandboxed compilation. typst-pdf PDF export. typst-svg SVG export. Typst Universe @preview/... packages are resolved through FlowLike host HTTP, not the native Typst package cache. This keeps the WASM node aligned with FlowLike permissions and avoids depending on a local filesystem cache.

Provided Nodes

14 nodes included in this package.

Document / Typst

Typst File to PDF

Reads a Typst source FlowPath, compiles it into PDF, and writes the PDF to storage

network:http storage:read storage:write
Typst File to PDF + SVG

Reads a Typst source FlowPath, compiles it once, and writes both PDF and SVG outputs

network:http storage:read storage:write
Typst File to SVG

Reads a Typst source FlowPath, compiles it into SVG, and writes it to storage

network:http storage:read storage:write
Typst Source to PDF

Compiles Typst source text into PDF and writes it to storage

network:http storage:read storage:write
Typst Source to PDF + SVG

Compiles Typst source text once and writes both PDF and SVG outputs

network:http storage:read storage:write
Typst Source to SVG

Compiles Typst source text into SVG and writes it to storage

network:http storage:read storage:write
Typst Template File to PDF

Reads a Typst template file, applies JSON data, and writes a PDF to storage

network:http storage:read storage:write
Typst Template File to PDF + SVG

Reads a Typst template file, applies JSON data once, and writes both PDF and SVG outputs

network:http storage:read storage:write
Typst Template File to SVG

Reads a Typst template file, applies JSON data, and writes an SVG to storage

network:http storage:read storage:write
Typst Template to PDF

Compiles Typst template source with JSON data into PDF and writes it to storage

network:http storage:read storage:write
Typst Template to PDF + SVG

Compiles Typst template source with JSON data once and writes both PDF and SVG outputs

network:http storage:read storage:write
Typst Template to SVG

Compiles Typst template source with JSON data into SVG and writes it to storage

network:http storage:read storage:write
Validate Typst File

Reads a Typst source FlowPath, compiles it without export, and returns diagnostics metadata

network:http storage:read
Validate Typst Source

Compiles Typst source text without export and returns diagnostics metadata

network:http storage:read

Versions

v0.1.4 May 27, 2026
31182 KB
v0.1.3 May 27, 2026
31182 KB
v0.1.2 May 27, 2026
31182 KB
v0.1.1 May 26, 2026
31182 KB
v0.1.0 May 26, 2026
31176 KB

Have feedback?

Found an issue with this package or have suggestions for improvement? Let us know.