Skip to content

typst

Version 2026.144.1443
Repo superproject

Typst document processor binary (fetched from GitHub releases) Fetches the latest Typst release for the build arch (the ${BUILD_ARCH}-unknown-linux-musl static tarball) from GitHub and installs the single typst binary at /usr/local/bin/typst. Typst is a markup-based typesetting system that compiles .typ source into PDF. Verifiable end to end: the binary lands at a fixed path, typst --version prints a parseable version on stdout, and typst compile turns a minimal .typ source into a real PDF whose bytes start with the %PDF magic.

This candy’s plan: — the runnable spec charly check executes against a live deployment. check: steps are idempotent probes; run: steps change state.

Intent Step
run command=VER=$(curl -fsSL https://api.github.com/repos/typst/typst/releases/latest | grep ‘“tag_name”:’ | sed -E ‘s/.“v([^”]+)“./\1/’) curl -fsSL “https://github.com/typst/typst/releases/download/v${VER}/typst-${BUILD_ARCH}-unknown-linux-musl.tar.xz” -o /tmp/typst.tar.xz tar -xJf /tmp/typst.tar.xz -C /tmp/ find /tmp -name “typst” -type f -executable | head -1 | xargs -I{} mv {} /usr/local/bin/typst chmod +x /usr/local/bin/typst rm -rf /tmp/typst.tar.xz /tmp/typst-*
check the typst binary is installed at /usr/local/bin/typst
check typst reports a parseable version on stdout
check typst compiles a minimal .typ source into a real PDF whose bytes start with the %PDF magic