ferrocv 0.2.1

Render JSON Resume documents to PDF, HTML, and plain text via embedded Typst.
Documentation

ferrocv

Render JSON Resume to PDF, HTML, and text via Typst — single static binary, no Node or TeX required.

Status

Early. PDF rendering via the typst-jsonresume-cv theme works today. HTML and plain-text output, additional themes, and native-theme tooling are tracked as GitHub issues and organized into phase milestones. The non-negotiable design principles live in CONSTITUTION.md.

Why

The JSON Resume schema is a sound single-source-of-truth for resume data, but its JavaScript theme ecosystem is thin and fragile (many themes are abandoned, others ship with broken dependencies). This project keeps the schema and replaces the rendering pipeline with something more robust:

  • Rust for a single-binary CLI with no runtime dependencies.
  • Typst for modern typesetting — embeddable as a crate, no TeX distro needed, with a growing ecosystem of resume templates.
  • JSON Resume v1.0.0 remains the canonical input format.

Goals

  • Validate resume.json against the JSON Resume schema.
  • Compile to PDF in-process via the typst crate (no subprocess).
  • Emit HTML and plain text as first-class outputs, not afterthoughts.
  • Ship adapters over popular Typst Universe templates so users have visual variety from day one.
  • Define a native theme contract so new themes can target JSON Resume directly.

Usage

# Validate a resume against the JSON Resume schema
ferrocv validate resume.json

# Render to PDF using the typst-jsonresume-cv theme
ferrocv render resume.json --theme typst-jsonresume-cv --output resume.pdf

render defaults to --format pdf (the only format in Phase 1; HTML and plain text are coming). When --output is omitted, the PDF is written to dist/resume.pdf; parent directories are created as needed. Both subcommands read from stdin if no path is given.

Exit codes (same for both subcommands):

  • 0 — success
  • 1 — JSON parsed but failed schema validation (diagnostics on stderr)
  • 2 — IO error, JSON parse error, unknown theme/format, or render error

No network is touched — the schema, theme, and fonts are all compiled into the binary.

Development

Run the full CI check suite locally before pushing:

make preflight

This mirrors .github/workflows/ci.yml and runs cargo fmt --check, cargo clippy -D warnings, cargo test, cargo-deny, cargo-audit, and typos. Individual checks are available as their own targets (make clippy, make test, ...); run make help for the full list.

First-time setup installs the non-cargo-stock tools:

make install-tools

Non-goals

  • Replacing the JSON Resume schema or project.
  • Supporting arbitrary input formats (Markdown, YAML, etc.).
  • Becoming a general-purpose Typst build tool.

Prior art

License

Dual-licensed under either of:

at your option. This is the standard Rust ecosystem dual license.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual-licensed as above, without any additional terms or conditions.