Color as Identify – ColorID.js (11.19% Faster – With 2^96 Results)
github.comColor as Identify - The ColorID in JavaScript
ColorID consists by 4 colors in the RGB channel from 12 unsigned 8 bits numbers (u8), so the theoretical total of ColorID is (2^8)^12 = 2^96 ≈ 7*10^28, which means that even if the ColorID is generated for every 7.8 billion people in the world every second, it will take 300 billion years to use up all ColorID.
If we use ColorID to represent identities in social networks, we can easily generate personalized social information for users, such as avatars, NFTs, etc.
ColorID performance is better than uuid and nanoid (The algorithm of ColorID is actually very similar to the uuid.v4)
Because the Four-Colors-Theorem, four colors is enough!