npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

shiftpack

v0.1.4

Published

Free and Open Source package and library version migrator for React (based on jscodeshift).

Readme

🚀 Shiftpack

Free and Open Source package and library version migrator for React (based on jscodeshift).

Shiftpack helps developers migrate React projects between major versions (e.g., React Router v5 → v6) or update third-party libraries with minimal manual work.
It provides ready-to-use codemods, so you can quickly apply official or community-recommended migrations.


✨ Features

  • 📦 Pre-built migrations for React ecosystem libraries.
  • 🔧 Codemod powered by jscodeshift.
  • 📚 Organized migration collections by library and version.
  • 🌐 Community & official migrations: supports both Shiftpack’s built-in migrations and external recommended codemods.
  • 🛠 Custom migration support: extend with your own codemods.

📂 Repository Structure

Migrations are organized by library and version:

shiftpack/
├── react/
│   ├── v5-to-v6/
│   │   ├── useEffectMigration.js
│   │   ├── useRouteMatchMigration.js
│   │   └── ...
│   └── ...
├── redux/
│   ├── v3-to-v4/
│   │   ├── connectToHooks.js
│   │   └── ...
│   └── ...
└── ...
  • react/v5-to-v6/useEffectMigration.js → Example migration for useEffect usage in React Router v6.
  • redux/v3-to-v4/... → Redux upgrade codemods.
  • Each migration is modular and can be run individually.

🚀 Getting Started

1. Install

npm install -g shiftpack

or use npx directly:

npx shiftpack <options>

2. Run a Migration

shiftpack migrate react/v5-to-v6/useEffectMigration --path src/

You can also apply an entire migration set:

shiftpack migrate react/v5-to-v6 --path src/

3. Using Official Migrations

If a library provides its own recommended codemods, Shiftpack links them in the repo.
For example:


📖 Example

Before (React Router v5):

import { useRouteMatch } from "react-router-dom";

const Profile = () => {
  const match = useRouteMatch();
  return <Link to={`${match.url}/settings`}>Settings</Link>;
};

After running:

import { useResolvedPath } from "react-router-dom";

const Profile = () => {
  const match = useResolvedPath("");
  return <Link to={`${match.pathname}/settings`}>Settings</Link>;
};

📌 Roadmap

  • [ ] Add more React Router v5 → v6 migrations
  • [ ] Redux migrations
  • [ ] Material UI v4 → v5 codemods
  • [ ] Vue ecosystem support (future)
  • [ ] CLI improvements & interactive mode

🤝 Contributing

Contributions are welcome! 🎉

  • Fork the repo
  • Add or improve a migration
  • Open a PR with clear description and tests

📜 License

MIT License © 2025 Shiftpack Contributors
Free to use, modify, and distribute.