Skip to main content

A local manager for Typst templates and packages

Project description

Typst Forge

Typst Forge is a small local manager for Typst packages and templates.

It can:

  • scaffold a new Typst repo with git, typst.toml, src, and template/ when needed
  • install local development repos into Typst's package directory
  • install release repos from GitHub or any git URL
  • manage installed packages/templates with versioned registry entries
  • fall back between symlink and copy modes for platform-friendly installs

Install

This repo is meant to be run with uv:

uv run typst-forge --help

To run it without installing from a checkout, use uvx:

uvx --from . typst-forge --help

You can also install directly from GitHub:

uvx --from git+https://github.com/<owner>/typst-forge typst-forge --help

Commands

typst-forge init ./my-template --kind template --name my-template --version 0.1.0
typst-forge init ./my-package --kind package --name my-package --version 0.1.0
typst-forge install ./my-package --link-mode copy
typst-forge install github:owner/repo@v1.2.3
typst-forge list
typst-forge status my-package
typst-forge update my-package
typst-forge remove my-package

Versioning

  • local repos use the typst.toml package version unless a matching git tag is present at HEAD
  • GitHub and other git URLs install from release tags
  • tags can be written as v1.2.3 or 1.2.3; the stored Typst version is normalized to 1.2.3
  • installed entries live under ~/.local/share/typst/packages/<namespace>/<package>/<version>

Tests

Run the in-repo test suite with:

PYTHONPATH=src python3 -m unittest discover -s tests -v

Publishing

The GitHub Actions workflow in .github/workflows/publish.yml publishes tagged releases to PyPI with trusted publishing.

Create and push a version tag like v0.1.0 to trigger it.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

typst_forge-0.1.0.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

typst_forge-0.1.0-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file typst_forge-0.1.0.tar.gz.

File metadata

  • Download URL: typst_forge-0.1.0.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for typst_forge-0.1.0.tar.gz
Algorithm Hash digest
SHA256 314cf42298cc3f487c3b434ad071026efac1ece7d892155a919b0656408daf42
MD5 e6b868f86fd3cbdf8248df8fb694fdae
BLAKE2b-256 df35c9739d9a4b0a171bf584aa5b4463541cd0eb221cadc77b360677eac501e8

See more details on using hashes here.

Provenance

The following attestation bundles were made for typst_forge-0.1.0.tar.gz:

Publisher: publish.yml on marcosousapoza/typst-forge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file typst_forge-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: typst_forge-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for typst_forge-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 42587ecbb74d0f1aee7613c722ec8a73f05db07fc623e0722e578fdc9d45a40b
MD5 4c1caab2fdd230f884cc2787cc0d5155
BLAKE2b-256 ce563be3b4d7ddf9a0c40f3016e9e059dbbdde198286950413f336bb4ed3a096

See more details on using hashes here.

Provenance

The following attestation bundles were made for typst_forge-0.1.0-py3-none-any.whl:

Publisher: publish.yml on marcosousapoza/typst-forge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page