Python HTTP Server that renders typst documents to pdf.
Example docker compose file:
services:
typst:
image: "ghcr.io/leopoldlabs/typst-server"
ports:
- 8000:8000
environment:
- TOKEN=<replace-with-your-token>curl -X POST http://localhost:8000/ \
-H "Authorization: Bearer <replace-with-your-token>" \
-d "= Hello world" \
-o response.pdfThere is also an example JS client in client.mjs.