Repository navigation
v0.2.0
Endpoint Moved: The POST /fonts/refresh endpoint has been moved to POST /admin/fonts/refresh.
New Features
New endpoints to manage Typst packages cache:
- GET /admin/packages: List cached packages and their total size
- POST /admin/packages/preload: Add to the cache a specific list of packages
- POST /admin/packages/sync-all: Download (or update) the entire Typst registry in the background
- DELETE /admin/packages/cache: Clear all downloaded packages
Admin Authentication:
- New ADMIN_TOKEN environment variable. If set, it secures /admin endpoints. If not set it falls back to AUTH_TOKEN.
New configuration options (in the env file):
- PRELOAD_PACKAGES to set a list of packages that need to be available on start up
- CACHE_ALL_PACKAGES downloads the entire Typst registry in the background, which is around 1.5-2GB. Later on one can use the sync-all endpoint for keeping up to date with package updates.
Internal/technical
- Added a typst-packages Docker named volume (for the cache to persist across container restarts).
- Refactored main.rs into separate files and moved the request handling logic into a handlers directory.