Skip to content
SPECIFICTION
Get listed

CPAN vs Hex

CPAN

cpan.org

Hex

hex.pm

Side by side

FigureCPANHex
Price fromFree$7.50/mo
Free planYesYes
Free trial—Yes
Open source——
WebYesYes
WindowsYes—
macOSYes—
LinuxYes—
API—Yes
Self-hosted—Yes
Plans published15
Spec score · Package Registries8.1 (#12)8.3 (#10)
SupportThe FAQ says CPAN is not a helpdesk for debugging users’ code, but handles questions and problems related directly to CPAN’s operation.Hex directs users to [email protected] for direct contact with the core team and general support.

Plans

CPAN

  • CPANFree

CPAN pricing →

Hex

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

Hex pricing →

In their own words

CPAN

CPAN is a free archive of Perl software and documentation, with ways to find, download, and install modules. Its homepage lists 33,464,960 modules in 47,830 distributions from 14,750 authors; the archive has been online since October 1995. Visitors can search through MetaCPAN or browse modules, authors, and recent uploads. Modules can be installed with CPAN.pm, and manual installation instructions are available. Dependencies can require other modules, a particular version, or a C compiler. The site also provides Perl source archives and instructions for compiling and installing Perl. Authors submit uploads through PAUSE, which inspects, validates, and indexes them before they propagate to CPAN and its mirrors. For existing package namespaces, PAUSE indexes uploads only from the owner or an authorized maintainer. Its documentation says uploaded modules are tested across dozens of architectures by CPAN Testers. The Ports page lists Perl support for over 100 platforms, including Windows, macOS, and Linux. CPAN is backed by a CDN. The FAQ says CPAN handles questions about its own operation, not debugging users’ code.

Visit cpan.org

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