Packages

The package manager
for the Erlang ecosystem

Getting Started Publish Packages
Elixir
Using with Elixir

Specify your Mix dependencies as two-item tuples like {:plug, "~> 1.19"} in your dependency list, Elixir will ask if you want to install Hex if you haven't already.

Erlang
Using with Erlang

Download rebar3, put it in your PATH and give it executable permissions. Now you can specify Hex dependencies in your rebar.config like {deps, [hackney]} .

Gleam
Using with Gleam

Add the Hex dependency to your gleam.toml file using the lustre = ">= 5.2.0 and < 6.0.0" format. Or use the gleam add lustre@5 command.

Getting started

Fetch dependencies from Hex without creating an account. Hex is usable out of the box in Elixir with Mix and in Erlang with Rebar3 . Check our FAQ for commonly asked questions.

Publish packages

Create an account and follow the publishing guide . Your package will be immediately available to all Elixir and Erlang users and the documentation will be available on HexDocs .

Private packages

Publish private packages by creating an organization . Your private packages will get the same features as public packages such as fast dependency fetching, HexDocs, and run on the same reliable infrastructure that serves millions of packages daily. See our pricing page for more details.

Most Downloaded

  • jason 1.4.4

    A blazing fast JSON parser and generator in pure Elixir.

    4.2M
  • Dynamic dispatching library for metrics and instrumentations

    3.7M
  • ranch 2.2.0

    Socket acceptor pool for TCP protocols.

    3.4M
  • absinthe 1.10.0

    GraphQL for Elixir

    3.3M
  • mime 2.0.7

    A MIME type module for Elixir

    3.2M
  • Crypto-related functionality for the web

    3.2M

New Packages

  • OpenAI Responses API backend for GenAgent, built on Req.

  • Refmon is an Elixir implementation of a reference monitor.

  • Last-writer-wins and observed-remove maps for Gleam — conflict-free replicated map types with g...

    14
  • Grow-only, two-phase, and observed-remove sets for Gleam — conflict-free replicated set types

    13
  • Last-writer-wins and multi-value registers for Gleam — conflict-free replicated register types

    13
  • Grow-only and positive-negative counters for Gleam — conflict-free replicated counter types

    13

Recently Updated

  • yog 6.0.0

    A comprehensive graph algorithm and network analysis library for Gleam.

    680
  • yog_ex 0.96.0

    A comprehensive pure Elixir graph algorithm library

    258
  • alloy 0.10.0

    Model-agnostic agent harness for Elixir

    158K
  • mob_new 0.1.4

    Project generator for the Mob mobile framework

    14
  • mob_new 0.1.3

    Project generator for the Mob mobile framework

    14
  • mob_dev 0.2.0

    Project runner for the Mob mobile framework

    12
Open Source

hex.pm is
open-source

Hex.pm interface
24 484 packages available
236 729 package versions
2 787 096 downloads yesterday
14 867 041 424 downloads all time