lerna VS nx

Compare lerna vs nx and see what are their differences.

lerna

Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository. (by lerna)
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
lerna nx
165 360
35,770 23,933
0.2% 1.3%
8.4 10.0
6 days ago 26 minutes ago
TypeScript TypeScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

lerna

Posts with mentions or reviews of lerna. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-11-13.
  • How to Create an NPM Packages using Rollup.js + Lerna.js + Jfrog Artifactory
    2 projects | dev.to | 13 Nov 2024
    Lerna.js is a popular tool for managing JavaScript projects with multiple packages, often referred to as monorepos. It simplifies the process of versioning, publishing, and managing dependencies across various packages within a single repository.
  • Starting the Console front-end for Rainbow Platform
    6 projects | dev.to | 22 Oct 2024
    For dependency and workflow management in Gaia, we can use any tool available in the Node ecosystem. You might suggest Lerna or even Turborepo. For our needs, the default npm workspaces will suffice.
  • My Journey to Building Flexilla: Headless interactive component library
    2 projects | dev.to | 9 Oct 2024
    That’s how I ended up with the library at version 2.x.x. From that point, I stopped making those mistakes. With Lerna, I no longer have to worry about changing package versions that haven’t been updated; Lerna takes care of that for me.
  • Add Step-up Authentication Using Angular and NestJS
    4 projects | dev.to | 28 Mar 2024
    Open the project up in your favorite IDE. Let's take a quick look at the project organization. The project has an Angular frontend and NestJS API backend housed in a Lerna monorepo. If you are curious about how to recreate the project, check out the repo's README file. I'll include all the npx commands, CLI commands, and the manual steps used to create the project.
  • Things I learned while building projects with NX
    5 projects | dev.to | 18 Mar 2024
    Lerna currently maintained by Nx team
  • tsParticles 3.0.0 is out. Breaking changes ahead.
    3 projects | dev.to | 4 Dec 2023
  • Nx 16.8 Release!!!
    5 projects | dev.to | 6 Sep 2023
    On Netlify's enterprise tier, approximately 46% of builds are monorepos, with the majority leveraging Nx and Lerna. Recognizing this trend, Netlify has focused on enhancing the setup and deployment experiences for monorepo projects. In particular they worked on an "automatic monorepo detection" feature. When you connect your project to GitHub, Netlify automatically detects if it's part of a monorepo, reads the relevant settings, and pre-configures your project. This eliminates the need for manual setup. This feature also extends to local development via the Netlify CLI.
  • Mocha/Chai with TypeScript (2023 update)
    3 projects | dev.to | 12 Aug 2023
  • Help with library implementation in a big webapp
    2 projects | /r/webdev | 26 Jun 2023
    This is the exact problem monorepos were born to solve. Not only will a monorepo let you share UI components, you'll be able to gradually add shared application logic as well (for instance, do all of your apps have their own logic for connecting to a database? you could roll that into a shared library with a monorepo). There are a lot of tools for accomplishing this in JS, but probably the most popular is lerna, which is built on top of NX (though lots of teams roll their own monorepo in nx without lerna, which IMO is a totally valid option).
  • How to Build and Publish Your First React NPM Package
    8 projects | dev.to | 9 Jun 2023
    To begin, you need to prepare your environment. A few ways to build a React package include tools like Bit, Storybook, Lerna, and TSDX. However, for this tutorial, you will use a zero-configuration bundler for tiny modules called Microbundle.

nx

Posts with mentions or reviews of nx. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-12-03.
  • We switched from Next.js to Astro (and why it might interest you)
    4 projects | news.ycombinator.com | 3 Dec 2024
    Just use react.... That's what I do - it is so much easier than trying to fight with Next.js.

    I have a large application and I use next.js for the landing pages (landing, tos, privacy, blog, login, etc..) - but for the core application after login, I just use vanilla react with react router. For me I keep these as separate applications as I don't want to load the entire app just for the landing page or login box.

    Every time I need to work in the nextjs part of the app I always run into problems and have to read the docs and troubleshoot, sift through which part of the docs apply to my setup versus the app router.

    If your entire application needs to be indexed as a static site (e.g. content based versus a web application), then vanilla react isn't a good fit - so it depends on your needs.

    Unrelated - but shout out to https://nx.dev. I always prefer using this for all of my projects - made it super easy to have my node backend, react frontend, nextjs landing page, chrome extension, cron jobs, etc.. all in the same codebase where I can share code between all of them via non-publishable libraries.

  • A Practical guide to building cross-platform apps with Angular, Ionic, Capacitor, and Nx
    3 projects | dev.to | 29 Nov 2024
    Nx Documentation
  • Nx 20: Exploring the new TS preset and TypeScript project references
    1 project | dev.to | 23 Nov 2024
    However, the potential for future improvements make it a promising approach for large-scale monorepos. As the Nx team works on supporting TypeScript better (see Nx 2025 roadmap), we can expect progress in this area.
  • Nx Powerpack Moves Previously Free Feature Behind Paywall
    1 project | news.ycombinator.com | 21 Oct 2024
  • Why You Should TRUST Frameworks (And What It Takes to Build One From Scratch)
    7 projects | dev.to | 16 Oct 2024
    Finally, NX allows us to extend its capabilities with custom plugins and generators to automate workflows, create boilerplates, and manage continuous migrations. This helps developers evolve the codebase over time with minimal effort as new features are introduced or technologies change.
  • AnalogJS 🤝 Zerops: Official Deployment Partners
    1 project | dev.to | 15 Oct 2024
    Analog is excited to have Zerops as our new official deployment partner. We are thankful for the trust and support of the entire Zerops team. Because of their support, in addition to our other sponsors, SnyderTech, Jonathan Gamble, and Nx that we are able to receive ongoing maintenance and keep developing Analog for the long term in a financially sustainable way.
  • Hacktoberfest 2024 with Ghostfolio
    9 projects | dev.to | 26 Sep 2024
    The software is fully written in TypeScript and organized as an Nx workspace, utilizing the latest framework releases. The backend is based on NestJS in combination with PostgreSQL as a database together with Prisma and Redis for caching. The frontend is built with Angular.
  • Using Storybook with Angular and Vite 🎨
    2 projects | dev.to | 26 Sep 2024
    If you're using Nx, update your project.json storybook targets to run the Storybook commands:
  • Ask HN: Best Tools for Monorepo?
    13 projects | news.ycombinator.com | 31 Jul 2024
    I've been using (Nx)[https://nx.dev/] for a while now, but primarily on a front end set of apps currently. While it started as a TS/JS monorepo tool, it has evolved into something that (they claim) can be used for just about any language. You will probably still see it's roots as a TS/JS based tool though. It's not been without it's challenges, but overall I'm fairly happy with it.
  • Ask HN: Compiler speed-up or Build Caching tool. Hard to find?
    1 project | news.ycombinator.com | 8 Jun 2024
    For others searching (alternative) generic build caching tool supporting mono-repos:

    Nx - https://nx.dev/.

What are some alternatives?

When comparing lerna and nx you can also consider the following projects:

turborepo - Incremental bundler and build system optimized for JavaScript and TypeScript, written in Rust – including Turborepo and Turbopack. [Moved to: https://github.com/vercel/turbo]

changesets - 🦋 A way to manage your versioning and changelogs with a focus on monorepos

single-spa - The router for easy microfrontends

pnpm - Fast, disk space efficient package manager

vite - Next generation frontend tooling. It's fast!

webpack - A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.

create-react-app - Set up a modern web app by running one command.

husky - Git hooks made easy 🐶 woof!

Bazel - a fast, scalable, multi-language and extensible build system

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured

Did you konow that TypeScript is
the 1st most popular programming language
based on number of metions?