5 releases (3 breaking)
Uses new Rust 2024
| 0.6.0 | Dec 2, 2025 |
|---|---|
| 0.5.1-beta0-js.0 | Dec 1, 2025 |
| 0.5.0 | Nov 30, 2025 |
| 0.4.1 | Aug 17, 2025 |
| 0.1.0 | Apr 11, 2025 |
#808 in Parser implementations
9,511 downloads per month
56KB
1.5K
SLoC
Berry
Berry is a library for parsing and manipulating Berry lockfiles. It's still super WIP
This project is not affiliated with Yarn or the Yarn team, but is a personal project for my own learning and interest!
Berry - High-Performance Yarn Lockfile Parser
A high-performance parser for Yarn v3/v4 lockfiles. This parser focuses on performance, with minimal allocation and ideally_ - future use in WASM or with napi-rs. For a large ~300k line lockfile, we are able to parse it in ~50ms, and future improvements will make that faster 🥳
Layout
crates/
├── berry-core/ # Main parser library
├── berry-test/ # Integration tests
├── berry-bench/ # Criterion microbenchmarks
├── berry-bench-bin/ # CLI benchmarking tool
└── node-bindings/ # Node.js bindings (WIP)
See CONTRIBUTING.md for development guidelines. See BENCHMARKING.md for development guidelines.
License
MIT OR Apache-2.0
Dependencies
~1MB
~18K SLoC