metro VS nx

Compare metro vs nx and see what are their differences.

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
metro nx
16 344
5,048 21,907
0.8% 2.4%
9.4 10.0
10 days ago about 19 hours ago
JavaScript 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.

metro

Posts with mentions or reviews of metro. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-26.
  • Dynamic imports supported in react native
    3 projects | dev.to | 26 Jul 2023
    For details on the implementation you can see Evan's PR to metro here.
  • React vs React Native: How Different Are They, Really?
    12 projects | dev.to | 19 Dec 2022
    Some development tools for the web are similar (Chrome debugger, mostly) to those for React Native, but other aspects are very different (working with the metro bundler, using Flipper, AsyncStorage debugging, more). Some techniques developers will use are the same (breakpoints and console logging), but others are different (knowing when to restart the packager vs reinstall the app on device).
  • Setting up React Native Monorepo with Yarn Workspaces
    3 projects | dev.to | 14 Oct 2022
    We’re almost done with setting up the project. The last thing in the React Native app is to add watchFolders so metro knows where the linked node_modules are. The shared modules are symlinked by yarn, and since metro doesn’t follow symlinks we need to explicitly say it where the linked node_modules are.
  • Debugging RN + Expo bare using WebStorm? Would I be better off just killing myself now?
    2 projects | /r/reactnative | 15 Sep 2022
    Unfortunately it is what it is... I use intellij instead of webstorm since they're the same thing basically. I spent a shitton of time figuring out how to link a local package i was creating for my app only to discover about this issue that is almost as old as react native itself. (luckily there's rnx-kit that solves the problem). Not to talk about the impossibility to have one goddamn IDE to write both typescript, java and c++. Currently i have to write ts/js in intellij, then i have to switch to android studio to write java/c++.
  • React Native Monorepo
    2 projects | /r/reactnative | 22 Jan 2022
    React Native doesn't play nicely with most monorepo tools out of the box as Metro doesn't support symlinking.
  • Running React Native everywhere: The Web
    12 projects | dev.to | 26 Sep 2021
    Because React Native for Web is a React website, you can use front-end tools to build and run it. For example, you can build it with Webpack or Rollup instead of Metro bundler.
  • Running React Native everywhere: Android & iOS
    3 projects | dev.to | 21 Sep 2021
    Before we can run the app, we still need do one more thing: make metro bundler compatible with Yarn workspaces' hoisting.
    3 projects | dev.to | 21 Sep 2021
    Metro bundler is the JavaScript bundler currently used by React Native. One of metro's most famous limitations (and issue number #1 in its GitHub repository) is its inability to follow symlinks. Therefore, since all hoisted libraries (basically all libraries not specified in the nohoist list) are installed in mobile/node_modules as symlinks from /node_modules, metro won't be able to detect them. Additionally, because of this issue, metro won't even be able to resolve other workspaces (e.g., @my-app/app) since they're outside of the mobile directory.
  • Running React Native everywhere: Yarn Workspaces monorepo
    6 projects | dev.to | 16 Sep 2021
    Second, sharing code with other projects (e.g., backend code, web apps) may get complicated. Out-of-the-box, React Native's metro bundler cannot reference code outside of the project's root directory. You can configure it to do so (and we'll do it as well later on). Still, once you do it, you'll also need to ensure dependencies resolution works correctly (to avoid loading two different versions of the same library, for example); which might not be as easy as it may sound.
    6 projects | dev.to | 16 Sep 2021
    While it might appear that we can access all modules from the project’s root node_modules, the reality is that build processes sometimes aren't able to traverse symlinks. This problem is especially prominent in React Native apps, where both the metro bundler and the native code can't follow symlinks.

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-04-16.
  • Pitfalls of Deploying Hono Js App on Vercel
    3 projects | dev.to | 16 Apr 2024
    Hono does have a template application for Vercel, but in my case, my requirements were different (aren't they always 😅). I was working in a monorepo (using nx) because I wanted to manage my libs, tests, and examples all together in a single place, instead of having different repos.
  • How to setup semantic release with GitHub Actions.
    2 projects | dev.to | 29 Mar 2024
    Recently, My coworker is using Nx to automate his workflow, including automated release using semantic version. I found this method quite useful, so I want to re-implement on single GitHub repositories (without Nx).
  • Things I learned while building projects with NX
    5 projects | dev.to | 18 Mar 2024
    Nx
  • Episode 24/09: Testing without TestBed, SSR & Hydration
    3 projects | dev.to | 16 Mar 2024
  • Announcing AnalogJS 1.0 🚀
    5 projects | dev.to | 14 Mar 2024
    We are looking for companies to partner with on the Analog project to support development of the project. Thanks to Snyder Technologies for being an early adopter and promoter of Analog, Nx for joining us as a sponsor, House of Angular, and many other backers of the project.
  • Storybook 8
    6 projects | dev.to | 12 Mar 2024
    Additionally, thank you to all our community launch partners across the frontend ecosystem for helping us bring Storybook 8 to the world! Thanks to Chromatic, Figma, ViteConf, Omlet, DivRiots, story.to.design, StackBlitz, UXpin, Nx, Mock Service Worker, Anima, Zeplin, zeroheight, kickstartDS, and Kendo UI.
  • ⏰ It’s time to talk about Import Map, Micro Frontend, and Nx Monorepo
    9 projects | dev.to | 11 Mar 2024
    The advent of esbuild, the native support for ES Modules in browsers, the widespread adoption of import map, the emergence of tools like Native Federation, and the Nx ecosystem all combine to forge a flexible and well-maintained Micro Frontend Architecture.
  • 👑 Top Open Source Projects of 2023 🚀
    6 projects | dev.to | 3 Mar 2024
    Nx is a set of DevTools to make it simpler for software dev teams to work within a monorepo, which is a version-controlled code repository that contains several projects. Think of Nx as a VSCode of build tools.
  • Ask HN: Cleanest way to manage Windows OS?
    4 projects | news.ycombinator.com | 22 Feb 2024
    On Nix, you can declare everything necessary to build a package so you don't need to install packages on your system by yourself. I don't want to put myself into a dependency hell anymore. But I have an idea for this: using docker. Docker separates developing environment from host's system so there would be no pre-installed dependencies. It would be good and I'm considering learning docker. Next thing I'm considering is to use something like [nx](https://nx.dev/). If you have better ideas, please tell me.

    This is pretty much everything I need for my next Windows environment. Every small tips or tricks are welcome.

  • Unit Testing Expo Apps With Jest
    7 projects | dev.to | 20 Feb 2024
    In my latest blog, I successfully navigated through the steps of setting up an Expo Monorepo with Nx. The next challenge? Testing! This blog dives into:

What are some alternatives?

When comparing metro 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]

single-spa - The router for easy microfrontends

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

lerna - :dragon: Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository.

expo-cli - Tools for creating, running, and deploying universal Expo and React Native apps

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

pnpm - Fast, disk space efficient package manager

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

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

Nest - A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀

Playwright - Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

nx-go - 🍈 Nx plugin to use Go in a Nx Workspace