Installation
Umbrella package (recommended)
Section titled “Umbrella package (recommended)”Install lattice_crdt to get every CRDT in one dependency:
gleam add lattice_crdtEven with the umbrella, imports use the sub-package names:
import lattice_core/replica_idimport lattice_counters/g_counterimport lattice_registers/lww_registerimport lattice_maps/or_mapIndividual packages
Section titled “Individual packages”If you only need one category of CRDT, depend on that package directly:
gleam add lattice_countersTransitive 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.
When to choose which
Section titled “When to choose which”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.
Target runtimes
Section titled “Target runtimes”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.