sou1118

sou1118 / typdiff

Public

A diff tool for Typst documents, similar to latexdiff for LaTeX

11
2
100% credibility
Found Feb 23, 2026 at 10 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Rust
AI Summary

typdiff compares two Typst document files and generates a new Typst file with markup that highlights added and deleted content when compiled to PDF.

How It Works

1
📚 Discover the change highlighter

You're editing a document and want an easy way to show what's new or gone between versions, so you find this helpful tool.

2
💻 Get the tool ready

Download and set up the change highlighter on your computer so it's ready to use.

3
📄 Gather your document versions

Place your old document and the updated one in the same folder for easy access.

4
🔍 Spot the differences

Run the tool on your two files, and it creates a new document with additions in blue underlines and deletions in red strikethroughs.

5
💾 Save the highlighted version

Choose a name for your new marked-up document and save it right away.

6
🖨️ Turn it into a PDF

Use your document compiler to create a polished PDF where changes pop visually.

🎉 Review and share changes

Open the PDF to see exactly what's changed, making it simple to review revisions or share with others.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 10 to 11 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is typdiff?

typdiff is a Rust CLI tool for diffing Typst documents, outputting a new Typst file with visual markup—added text in blue underlines, deleted in red strikethroughs. Run `typdiff old.typ new.typ` to generate a compilable file, then `typst compile` for a PDF review, mimicking latexdiff for LaTeX. It handles diff github files, diff github commits, or diff github branches directly from Typst sources.

Why is it gaining traction?

Unlike generic diff github online tools or diff github markdown viewers, typdiff understands Typst structure: block-level changes for headings/lists, word-level granularity inside paragraphs, and character-level for CJK text. Atomic blocks like equations and raw code stay intact, with safe escaping to avoid compile errors. Simple cargo install makes it a quick diff tool download for git workflows on linux, macos, windows, or ubuntu.

Who should use this?

Typst writers reviewing pull requests via github diff between branches or github diff between two commits. Academic teams or docs maintainers needing precise change tracking beyond vscode diff tool. Git users wanting a native diff tool git integration for Typst documents over online alternatives.

Verdict

Early alpha with 10 stars and 1.0% credibility score—docs are clear, tests solid, but expect rough edges in complex docs. Grab it if Typst diffs block your workflow; pairs well with diff tool vscode for daily use.

(178 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.