`justmytyp`: an HTTP server that renders Typst templates with JSON input

Hey everyone! I’ve been working on justmytyp (GitHub - trespaul/justmytyp: An HTTP server that renders Typst templates with JSON input. · GitHub / trespaul.com/justmytyp at main), and it’s reached minimum viable prototype stage (i.e., if you do everything correctly, it works). And I think I’ve managed to keep it comparable in speed to typst watch (but please do let me know if I’ve been benchmarking it wrong haha).

I had the idea for a Typst server because a client that I’m consulting for renders invoices in bulk, which they’re currently doing by converting HTML and CSS to PDF with a PHP library. Out of interest, I searched for a Typst HTTP server, but found only typst-http-api, a Python project which has been archived. I have also been looking for an excuse to learn Rust, but previously all my ideas worth building were above my skill level, and everything within my skill level was not worth building.

This is the first Rust code I’ve ever written, so I would really appreciate any hints, comments, advice, or contributions you may have (also including if you think you have a better idea for a name).

2 Likes