patch-package
Make and preserve fixes to npm dependencies.
- Status
- Not yet determined
- Last checked
- Aging · Sep 1, 2026
- License
- Open source
- Pricing
- Free tier · from $0
What it is
Patch-package is a tool that allows developers to make changes to their npm dependencies and keep those changes when the dependency updates. This ensures that custom modifications are not lost during package upgrades, streamlining maintenance in complex projects.
Patch-package uniquely addresses the challenge of maintaining custom changes in npm dependencies by automatically generating and applying patches during updates, ensuring that modifications persist without manual intervention.
When it fits — and when it doesn’t
A good fit for
Developers who need to maintain custom changes to npm packages without losing them on updates.
Projects with heavily customized third-party libraries that require continuous maintenance.
Look elsewhere if
Scenarios where dependencies are not frequently updated and do not require customization.
Teams preferring a more isolated approach to dependency management, avoiding external patches.
Known weaknesses
Each one links to the public issue, changelog or docs page it came from, where we have one.
- 01
Steep learning curve for non-JavaScript developers
The tool is deeply integrated with npm and JavaScript ecosystems, requiring a good understanding of these to use effectively.
- 02
Limited documentation and community support
While the core functionality is well-documented, advanced use cases and troubleshooting guides are sparse, leading to difficulties in resolving complex issues.
- 03
Potential for human error in patch management
Manual intervention is required to maintain and apply patches correctly, which can lead to errors if not managed carefully.
- 04
Complex setup process
Setting up patch-package requires modifying package.json scripts and ensuring that the tool runs at appropriate times during development cycles, adding complexity to project setup.
What it does well
Preserves custom changes to npm dependencies
Automatically generates patches for dependency updates
Simplifies maintenance of modified dependencies
Pricing
- Free tier
- YesOpen source — free to use
- Paid from
- $0
- Model
- Flat rate
- Enterprise plan
- No
Pricing not independently confirmed — check the vendor’s page.
Performance benchmarks
How Fast Is It?
Set up patch-package
Setup steps, common gotchas and what to check after 30 days.