API reference › @evolu/common › local‑first/Timestamp › NodeId
type NodeId = string & import("../Brand.ts").Brand<"NodeId">;
Defined in: packages/common/src/local-first/Timestamp.ts:329
A NodeId identifies the database that stamped a timestamp. It is 64 random bits, generated when the database is created and persisted in its clock.
Only databases that share an owner can collide, so random collisions are negligible. 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. The realistic case is a copied database, described in the Timestamp module's Duplicate node IDs section.