Skip to content
SPECIFICTION
Get listed

Hex vs Yarn

Hex

hex.pm

Yarn

yarnpkg.com

Side by side

FigureHexYarn
Price from$7.50/moFree
Free planYesYes
Free trialYes—
Open source——
WebYes—
Windows—Yes
macOS—Yes
Linux—Yes
APIYes—
Self-hostedYes—
Plans published51
Spec score · Package Managers8.3 (#26)8.7 (#10)
Free planYesYes

Plans

Hex

  • Open SourceFree
  • Private Packages$9 a month
  • Open SourceFree
  • Private Packages (annual)$90 a year
  • EnterprisePriced on request

Hex pricing →

Yarn

  • YarnFree

Yarn pricing →

In their own words

Hex

Hex is a package manager for the BEAM ecosystem, including Elixir and Erlang. Its services include an HTTP API, a website, a package and index repository, HexDocs, Mix integration, and other components. Packages work with Mix, Rebar, and erlang.mk, and the site provides usage guidance for Gleam. Developers can fetch dependencies without creating an account.

Organizations can publish and retrieve private packages and manage which users can access them. Free organizations can publish public dependency policies; paid organizations can make policies private and apply them to public and private packages. A private package can depend only on packages in its organization’s repository and the global hexpm repository. Documentation explains how to build and serve a repository on infrastructure an organization operates. Hex supports organization authentication keys for CI, and its source code is licensed under the Apache 2 License. The Open Source plan is free. Private Packages are listed at $9 / user / month, with an annual option at $90 / per user / per year. Enterprise pricing is by contacting sales. Hex lists API, self-hosted, and web platforms.

Visit hex.pm

Yarn

Yarn is a package manager and project manager for JavaScript projects, serving uses from simple projects to industry monorepos. It resolves dependencies, maintains lockfiles and provides workspaces that install and link packages within a project. Modern Yarn uses Plug'n'Play by default, generating a Node.js loader file instead of a typical node_modules folder; users can choose node_modules or pnpm-style symlink installs instead. Yarn caches installed packages and shares them among projects on the same machine. Its offline mirror and zero-installs workflow can keep cached packages in a repository and reduce reliance on the npm registry. Plugins can extend resolvers, fetchers, linkers, commands and lifecycle hooks. Generated editor SDKs and settings support VSCode, Vim, Emacs and Neovim. Yarn runs on Linux, macOS and Windows and is free, with no paid plans or usage limits stated. Its documentation notes that React Native and Expo require typical node_modules installs. Yarn does not run audits during installation by default; users can run yarn npm audit separately.

Visit yarnpkg.com