Cloudsmith has added support for the JavaScript Registry (JSR) Upstreams. The JavaScript Registry is a modern package registry for JavaScript and TypeScript. It works with many runtimes (Node.js, Deno, Bun, browsers, and more) and is backwards compatible with npm. JSR modules can be used with any JavaScript package manager and in any project with a node_modules folder.
JSR doesn’t offer its own private registry functionality, but it can be used as an upstream for existing private npm registries (like Cloudsmith repositories). You can now configure your private Cloudsmith repositories to pull and cache packages directly from JSR (https://npm.jsr.io), enabling the use of JSR-hosted packages within your internal workflows.
To enable a JSR upstream, follow the next steps:
- Browse to your desired registry in your workspace:
https://app.cloudsmith.com/MY_WORKSPACE/MY_REPOSITORY
. - Click the Upstreams tab, click + Add Upstream Proxy, and select
npm
. In the form:- Name your upstream. For example:
JSR-testing
. - Update the
Proxy URL
field with the JSR endpoint https://npm.jsr.io
. - Click on + Create Upstream Proxy.
Now you are ready to enjoy all the new packages from JSR with Cloudsmith’s control and security. Reach out to us if you have any questions.