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

Download history 46/week @ 2025-12-24 89/week @ 2025-12-31 599/week @ 2026-01-07 1491/week @ 2026-01-14 1459/week @ 2026-01-21 1748/week @ 2026-01-28 1675/week @ 2026-02-04 2385/week @ 2026-02-11 2154/week @ 2026-02-18 1974/week @ 2026-02-25 2086/week @ 2026-03-04 2525/week @ 2026-03-11 2544/week @ 2026-03-18 1921/week @ 2026-03-25 893/week @ 2026-04-01 3694/week @ 2026-04-08

9,511 downloads per month

MIT/Apache

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