Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Replace npmjs.com links with npmx.dev#17847

Open
nicolo-ribaudo wants to merge 1 commit intobabel:mainfrom
nicolo-ribaudo:npmx
Open

Replace npmjs.com links with npmx.dev#17847
nicolo-ribaudo wants to merge 1 commit intobabel:mainfrom
nicolo-ribaudo:npmx

Conversation

@nicolo-ribaudo
Copy link
Member

@nicolo-ribaudo nicolo-ribaudo commented Mar 2, 2026

Q                       A
Fixed Issues? Fixes #1, Fixes #2
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

https://npmx.dev/ yet is a new frontend for the npm registry, created by people close to the vite community. It's officially launching tomorrow, but I have been using it for the past few weeks and it's so much better than npmjs.org.

Some cool things:

  • it has auto-generated docs from the TS types, for example https://npmx.dev/package-docs/@babel%2Ftypes/v/8.0.0-rc.2. If we add JSDoc descriptions, they will show up there too. It might be worth getting good enough JSDoc that we can stop, for example, maintaining the @babel/types docs on our website. We'll probably need to work with npmx.dev folks to help them better support our needs for it to happen though.
  • it lets users click on a little drop down to see the install command with all the various package manager CLIs, rather than showing only install instructions for npm. This aligns with what we did on our website, to give "fair treatment" to all the clients.
  • the code viewer is much nicer than the npm one, and you can link to files in it: https://npmx.dev/package-code/@babel/core/v/7.29.0 (and the browser back button works!)

npmx.dev still has multiple bugs, but there is almost nothing that npmjs.com does better then it so I think it's worth changing our links.

I did not update two links:

  • for example, https://www.npmjs.com/package/@babel/types?activeTab=versions is the URL for `@babel/types`

    npmx.dev does not have a page to show all the versions of a package. I think this is the only feature that npmjs.com does better than npmx.dev: we should keep the npmjs.com URL there. I opened Linkable package page to show list of versions npmx-dev/npmx.dev#1846 to track implementing this on the npmx.dev side.
  • the scripts/ensure-package-exists.ts script. I think npmx.dev is going to also have better package admin management than npm, but I have not explored yet how it works. It will require adding a dependency to the monorepo so that npmx.dev can talk locally to it to do admin stuff (rather than sending your password to their server), but that package has not been published yet.

This PR also slightly reorganizes the badges in our main readme, removing the GitPod and v6 downloads ones.

@nicolo-ribaudo nicolo-ribaudo added the PR: Docs 📝 A type of pull request used for our changelog categories label Mar 2, 2026
Plugins are the heart of Babel and what make it work.

> You can find community plugins on [npm](https://www.npmjs.com/search?q=babel-plugin).
> You can find community plugins on [npm](https://npmx.dev/search?q=babel-plugin).
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have gone back and forth here, but I think it's good to use npm as the label for the URL, as npmx.dev is a browser for the npm registry, where the packages actually are.

@babel-bot
Copy link
Collaborator

babel-bot commented Mar 2, 2026

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/61084

@nicolo-ribaudo
Copy link
Member Author

@Aslemammad Is the URL we are using for the pkg.pr.new badge meant to work? It loads forever for me. https://pkg.pr.new/~/babel/babel

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 2, 2026

Open in StackBlitz

commit: 0ddf43d

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

Labels

PR: Docs 📝 A type of pull request used for our changelog categories

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants