#identifier #base36 #distributed #smartid

herolib-sid

SmartID - Short, human-readable, collision-free identifiers

1 unstable release

0.1.0 Jan 22, 2026

#1452 in Data structures


Used in 3 crates (via herolib-osis)

Apache-2.0

26KB
495 lines

SmartID (SID) - Distributed, Human-Readable Identifiers

SmartID provides short, human-readable identifiers for distributed systems. This module is used internally by the Context module for ID generation.

Design Targets

  • Human-friendly (chat, voice, memory)
  • Deterministic & auditable
  • Collision-free
  • Offline-capable
  • Scalable (up to 999 contributors)

Alphabet

Base-36: 0123456789abcdefghijklmnopqrstuvwxyz

Formula

global_id = local_counter * num_contributors + contributor_id + 1

Dependencies

~0.3–0.9MB
~20K SLoC