Sqids – Generate Short Unique IDs from Numbers
https://sqids.org/
#ycombinator #sqids #ids #encode #unique #hashids
Sqids (formerly Hashids) · Generate Short Unique IDs

Sqids is a lightweight, customizable library that converts numbers into short, URL-safe IDs. It's a flexible and collision-free solution for generating unique IDs.

the original post wis this cool little algorithm someone came up with to create "Short friendly base32 slugs from time-stamps" (that sort in the same way as the timestamps they came from)

https://brandur.org/fragments/base32-slugs

A commenter pointed to the similar idea of #Hashids https://hashids.org/

and i, and others, have no clue what the point of those is. It seems like just mild obfuscation and ...shortening?

Can anyone explain the point of hashids?

Short, friendly base32 slugs from timestamps — brandur.org

Your preferred method for generating unique identifiers in a medium to large distributed system?

#uuid
#ULID
#snowflakeid
#hashids
#nanoid
#distsys

Pseudo Random based (e.g. UUIDv4, NanoID)
63.9%
Time-based (e.g. UUID v1 & v2, SnowflakeID)
12.5%
Hash-based (e.g. UUID v3 & v5, HashIds)
11.1%
Random+Time or other (e.g. ULID)
12.5%
Poll ended at .