Skip to content

Installation

Install lattice_crdt to get every CRDT in one dependency:

Terminal window
gleam add lattice_crdt

Even with the umbrella, imports use the sub-package names:

import lattice_core/replica_id
import lattice_counters/g_counter
import lattice_registers/lww_register
import lattice_maps/or_map

If you only need one category of CRDT, depend on that package directly:

Terminal window
gleam add lattice_counters

Transitive dependencies are pulled in automatically. For example, lattice_counters depends on lattice_core, so you can import lattice_core/replica_id without adding lattice_core explicitly.

See Packages for the full list and dependency diagram.

  • lattice_crdt — getting started, prototyping, or using CRDTs from multiple categories.
  • Individual packages — production deployments where you want to minimize dependency count or binary size.

All packages target both Erlang and JavaScript runtimes, so the same API works across both Gleam targets.

After installing, continue with the Quick Start or browse the guides.