Skip to content

LeopoldLabs/typst-server

Repository files navigation

Typst Server

Python HTTP Server that renders typst documents to pdf.

Deployment

Example docker compose file:

services:
  typst:
    image: "ghcr.io/leopoldlabs/typst-server"
    ports:
      - 8000:8000
    environment:
      - TOKEN=<replace-with-your-token>

Usage/Examples

curl -X POST http://localhost:8000/ \
  -H "Authorization: Bearer <replace-with-your-token>" \
  -d "= Hello world" \
  -o response.pdf

There is also an example JS client in client.mjs.

About

HTTP Server for typst

Resources

Stars

Watchers

Forks

Packages

No packages published