Skip to main content

typvend

PyPI PyVersions Tests License

typvend is a lightweight Python CLI utility designed to vendor official Typst packages locally for offline development, sandboxed builds, or containerized production CI/CD workflows.

Why?

Typst downloads packages on the fly at compile time with no official way to pre-download them. This can be problematic for offline compilation and read-only production environments (like containers). The solution is to either run the compilation once to fetch the packages or download them manually.

typvend simplifies this, downloading packages to the default Typst cache path or any directory you choose (then point Typst to it via --package-cache-path), in two ways:

  • Explicit: add <pkg>[@<version>] — download specific packages by name, with a version or @latest.
  • Scan: recursively find all @preview/<pkg>:<version> imports in .typ files and vendor them in one go.

Usage

You can run typvend directly using uv.

uvx typvend --help

Global options:

  • -o, --output DIR — Custom directory to extract packages (defaults to native OS Typst search path).
  • --namespace NS — Custom namespace (defaults to preview).
  • -f, --force — Re-download package even if it already exists.
  • -v, --verbose — Enable verbose output logs.

1. Adding Packages Explicitly

# Download latest version of fontawesome
uvx typvend add fontawesome

# Download specific versions
uvx typvend add fontawesome@0.5.0 cetz

2. Scanning Project Directories

Recursively searches a file or directory for package imports and vendors all discovered packages in one command:

# Scan a templates directory and output packages to typst cache folder
uvx typvend scan ./templates

# Scan and output to a custom directory (e.g. for Docker cache stages)
uvx typvend scan ./templates --output /typst-packages

Metadata

Release files for typvend 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for typvend 0.1.1
File Size Uploaded Provenance Actions
typvend-0.1.1.tar.gz 37.9 kB With provenance Details for typvend-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for typvend 0.1.1
File Interpreter ABI Platform Actions
typvend-0.1.1-py3-none-any.whl Python 3 none any Details for typvend-0.1.1-py3-none-any.whl

Total release size: 47.9 kB

Release files / typvend-0.1.1.tar.gz

Download URL typvend-0.1.1.tar.gz
Size 37.9 kB
Tags Source
SHA-256 checksum
How to use checksums
688e4edf44c19fafc0de1770e30ec351ce41fdb21309575bbc658f0a6d255f1e
BLAKE2b-256 checksum
How to use checksums
73420a7b515b899d829d2db45092babaafdf5f5101e1575451f27966e2395528
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 24, 2026.

Transparency log

Release files / typvend-0.1.1-py3-none-any.whl

Download URL typvend-0.1.1-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce3af7f0303ceeeddeb968af5cd30940325363c23396dc212691ed0d596bb73e
BLAKE2b-256 checksum
How to use checksums
adfba58ed4c2f26b234c35675badb6eeab9901bf70923077c5fa357cfa15c5cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 24, 2026.

Transparency log

Security for typvend 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for typvend-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page