### Description Mirroring Typst registry is very simple: ```shell 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: ```shell cargo install miniserve ~/.cargo/bin/miniserve dist ``` Now mirror available on adress http://localhost:8080. But currently the registry URL is hardcoded [there](https://github.com/typst/typst/blob/v0.14.2/crates/typst-kit/src/package.rs#L165) and [there](https://github.com/typst/typst/blob/v0.14.2/crates/typst-kit/src/package.rs#L192). ### Use Case With #7596 or similar solution we can customize registry URL: ```shell export TYPST_REGISTRY_URL=http://localhost:8080 typst compile ... ``` And `typst` compiler will download packages from the mirror that your configure.
Activity
mewmew commentedon Jan 8, 2026
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).