API reference › @evolu/common › local‑first/Timestamp › NodeId
const NodeId: regex("NodeId", /^[a-f0-9]{16}$/u)(String);
Defined in: packages/common/src/local-first/Timestamp.ts:302
A NodeId identifies the session that stamped a timestamp. It is 64 random bits, which the SharedWorker generates when it starts using a database, so it identifies neither a device nor a database.
Identical timestamps (same millis, counter, and NodeId) are the same message to sync: one of the changes is lost, and the affected devices see different data while they appear synced. Only sessions that write for one owner can collide, so random collisions are negligible; see the Timestamp module's Duplicate node IDs section.