About Lerna
Lerna manages and publishes multiple JavaScript and TypeScript packages that live in the same repository. It runs a command against any number of projects in the right order and in parallel, and it relies on caching so that tasks already run are not repeated. It is built on Nx and the site is copyrighted by Nx.
Publishing to npm is a main use, whether packages have independent versions or not. Other pieces include target dependencies between npm scripts, a shared cache for developers and CI machines, distributed execution across machines, and an interactive workspace visualizer. It starts with npx lerna init and needs little configuration; MIT licensed.
Key features
- Builds and publishes many packages from one repo
- Shared cache across developers and CI
- Dependencies between npm scripts
- Distributed execution on several machines
- Interactive workspace graph
- Publishes packages to npm
Good fit for
- Monorepo task running
- Publishing multiple npm packages
- Speeding up CI with a shared cache
Lerna: questions and answers
- What is Lerna used for?
- Lerna is a build system, powered by Nx, for running tasks and publishing many JavaScript or TypeScript packages from one repository. It is a good fit for monorepo task running, publishing multiple npm packages and speeding up CI with a shared cache.
- Is Lerna open source?
- Yes. Lerna is open source under the MIT licence. Its source code is on GitHub at lerna/lerna and is written mainly in TypeScript.
- Is Lerna free?
- Yes. Lerna is open source, so the software itself is free to use.
- Can I self-host Lerna?
- Yes. Lerna can be self-hosted on your own server or infrastructure.
- What is Lerna an alternative to?
- Lerna is an open-source alternative to Patchwork. Other open-source alternatives to Patchwork include Turborepo, Rushstack and Webpack.
- Is Lerna actively maintained?
- Yes. The most recent commit to Lerna was on 11 November 2026, and the latest release is v10.1.2, published on 6 November 2026. The project has 36k stars on GitHub.
Open-source alternatives to Lerna
See all
Turborepo
Open source
Build system optimized for JavaScript and TypeScript, written in Rust
MITvs Patchwork★ 31k
Rushstack
Forums & Communities
Monorepo for tools developed by the Rush Stack community
OSSvs Patchwork★ 6.5k
Webpack
Open source
A bundler for javascript and friends. Packs many modules into a few bundled assets. Code S
MITvs Patchwork★ 66k
ERPNext
ERP
Free and Open Source Enterprise Resource Planning (ERP)
GPL-3.0vs NetSuite★ 41k

Patchwork