squuid
Semi-sequential universally unique identifiers
// generate base64-lex-encoded v1 UUID var id = // 'Wjmi85Wy4UMVUHybSVnKU0--' // generate another var id2 = // 'Wjmi8LWy4UMVUHybSVnKU0--' // ids will be monotonically increasing per process id2 > id // true // you can pass
TODO: node-uuid
looks to be encoding the time bit in little-endian, which marginally decreases the monotonicity properties you want for optimal btree inserts.