by xeol-io
bumpgen is an AI agent that upgrades npm packages
# Add to your Claude Code skills
git clone https://github.com/xeol-io/bumpgenbumpgen bumps your TypeScript / TSX dependencies and makes code changes for you if anything breaks.
.gif)
Here's a common scenario:
you: "I should upgrade to the latest version of x, it has banging new features and impressive performance improvements"
you (5 minutes later): nevermind, that broke a bunch of stuff
Then use bumpgen!
How does it work?
bumpgen builds your project to understand what broke when a dependency was bumpedbumpgen uses ts-morph to create an abstract syntax tree from your code, to understand the relationships between statementsbumpgen then creates a plan graph DAG to execute things in the correct order to handle propagating changes (ref: arxiv 2309.12499)[!NOTE]
bumpgenonly supports typescript and tsx at the moment, but we're working on adding support for other strongly typed languages. Hit the emoji button on our open issues for Java, golang, C# and Python to request support.
To get started, you'll need an OpenAI API key. gpt-4-turbo-preview from OpenAI is the only supported model at this time, though we plan on supporting more soon.
Then, run bumpgen:
> export LLM_API_KEY="<openai-api-key>"
> cd ~/my-repository
> npm install -g bumpgen
> bumpgen @tanstack/react-query 5.28.14
where @tanstack/react-query is the package you want to bump and 5.28.14 is the version you want to bump to.
You can also run bumpgen without arguments and select which package to upgrade from the menu. Use bumpgen --help for a complete list of options.
...