Skip to content

Customize Typst registry URL - #7596

Closed
podsvirov wants to merge 2 commits into
typst:mainfrom
podsvirov:typst-registry-url
Closed

podsvirov wants to merge 2 commits into
typst:mainfrom
podsvirov:typst-registry-url

Conversation

@podsvirov

@podsvirov podsvirov commented Dec 17, 2025 •

Copy link
Copy Markdown

Support for configuring the Typst registry URL from the TYPST_REGISTRY_URL environment variable.

Closes: #7602

Support customize Types registry url from `TYPST_REGISTRY_URL`
environment variable.
Comment thread crates/typst-kit/src/package.rs Resolved
@podsvirov podsvirov changed the title Customize Typst registry url Customize Typst registry URL Dec 18, 2025
@laurmaedje

laurmaedje commented Dec 18, 2025 •

Copy link
Copy Markdown
Member

Thanks for the PR. We do want to support custom registries and richer configuration down the road, but with a proper comprehensive design rather than with an ad-hoc env var that overrides the meaning of @preview.

@laurmaedje laurmaedje closed this Dec 18, 2025
@podsvirov

Copy link
Copy Markdown
Author

We do want to support custom registries

This PR is not about that. I did not want create custom registry. I want to allow Typst users configure URL of the Typst registry mirror.

@laurmaedje

Copy link
Copy Markdown
Member

That's also in scope of the design work I'm talking about. I would just prefer to not ship a band-aid design.

@podsvirov

Copy link
Copy Markdown
Author

I may have been a bit hasty in suggesting changes, but this solution is very simple and it works well.

Can you provide links to discuss issues or other suggestions for implementing this functionality?

@laurmaedje

laurmaedje commented Dec 18, 2025 •

Copy link
Copy Markdown
Member

There's not a ton of concrete stuff yet, but most of what is there is spread out over the issues with the packages label (in particular #1982) and the Packages, Templates forge thread on Discord.

As for why not merge the simple solution: It's a general design philosophy of us to avoid shipping a band-aid fix in an area where we want to have richer functionality down the road. In my experience, it tends to invite many more small changes, which accumulate to an inconsistent design while also reducing the urgency to design a comprehensive solution (for mirrors / custom non-preview registries, Git dependencies, etc.)

@podsvirov

Copy link
Copy Markdown
Author

Thanks for the links and additional description of the principles of this project.

I hope that waiting of the functionality that we have been talking about will not take very long. Judging by #1982, users already waiting for this for more than two years.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Configurable Typst registry URL

3 participants