Skip to content

Configurable Typst registry URL #7602

Open

Description

@podsvirov

Description

Mirroring Typst registry is very simple:

git clone http://github.com/typst/packages.git
cd packages
cargo build --release --manifest-path bundler/Cargo.toml
./bundler/target/release/bundler

Packages tarballs now available in dist subdirectory. Just share it as static content:

cargo install miniserve
~/.cargo/bin/miniserve dist

Now mirror available on adress http://localhost:8080.
But currently the registry URL is hardcoded there and there.

Use Case

With #7596 or similar solution we can customize registry URL:

export TYPST_REGISTRY_URL=http://localhost:8080
typst compile ...

And typst compiler will download packages from the mirror that your configure.

Activity

  1. added
    feature request
    on Dec 18, 2025
  2. mewmew commented on Jan 8, 2026

    @mewmew
    Contributor

    Being able to specify where to download packages from would be very useful in environments where no access to the Internet is available.

    In particular for air gapped networks.

    Also, for having a functional offline-mode access to the registry (e.g. when on flights).

  3. added
    cli
    packages
    on Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    clifeature requestpackages

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions