Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Typst

$ typst Official Low Risk
Typst GmbH · Design & Docs · Apache-2.0 · macos / linux / windows

Typst (typst) is a fast, programmable typesetting system replacing LaTeX for reports, papers, and invoices. Written in Rust, it compiles .typ files to PDF, SVG, or PNG with millisecond incremental builds and includes typst query to extract document metadata or headings as JSON.

FCRS-1.0 Score
93 /100
Excellent
Medium Confidence
Zero-Friction Install
brew install typst
CLI vs MCP Decision CLI Only

Typst compiles local .typ files to PDF/SVG/PNG in milliseconds with deterministic exit codes and typst query JSON extraction—ideal directly as a CLI.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 23 / 25

Single-pass typst compile and typst query (JSON stdout) with clean diagnostics, non-zero exit codes on errors, and zero interactive prompts.

  • typst query emits structured JSON for any selector
  • Deterministic millisecond compilation without multi-pass LaTeX reruns
Trust & Safety 23 / 25

Sandboxed filesystem access rooted at --root and purely local compilation with no arbitrary shell execution like LaTeX --shell-escape.

  • No --shell-escape arbitrary code execution risk
  • --root confines file reads to the project directory
Setup & Portability 15 / 15

Single self-contained Rust binary (~30 MB) needing no multi-gigabyte TeX distribution; installs via Homebrew, Cargo, or binary.

  • brew install typst and cargo install --locked typst-cli
Utility & Efficiency 14 / 15

Dramatically faster and cleaner for agents generating PDFs, reports, and diagrams than LaTeX.

  • Supports PDF, SVG, PNG output and structured query introspection
Maintenance & Lineage 9 / 10

Official Typst GmbH repository (typst/typst) actively developed under Apache-2.0.

  • Official Typst GitHub organization
Docs & Verifiability 9 / 10

Crisp, modern official documentation at typst.app/docs and clear compiler error diagnostics.

  • Official docs at typst.app/docs/

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

No credentials required; offline compiler with optional local package cache in OS cache directories.

Side Effects
Read-Only Local Write
Cost & Quotas

CLI is free and open-source (Apache-2.0); Typst's optional collaborative web app has free and paid tiers.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Typst CLI Agent Rules
- Run `typst compile` rather than `typst watch` in synchronous agent turns.
- Pin `--root` to the project directory when compiling untrusted `.typ` files.
- Use `typst query` to verify document structure or metadata programmatically.

Agent-Ready Command Recipes

Safe Read-Only Queries

Query document headings as JSON
typst query main.typ "heading"

Evaluates a Typst document and outputs matching elements/headings as structured JSON without writing files.

List available system and bundled fonts
typst fonts

Lists font families discovered by Typst locally.

Controlled Writes & Previews

Compile a Typst document to PDF
typst compile main.typ dist/main.pdf

Compiles main.typ deterministically into dist/main.pdf.

Strengths for Agents

  • + Millisecond single-binary Rust compiler replaces multi-gigabyte TeX Live installs.
  • + typst query extracts headings, labels, and metadata as clean JSON.
  • + Project-rooted sandbox prevents arbitrary shell execution during document builds.

Caveats & Pitfalls

  • ! typst watch blocks continuously until terminated.
  • ! First-time compilation using @preview/... Universe packages requires network access to fetch packages into cache.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI