Hacker News new | ask | show | jobs
by erlendellingsen 1019 days ago
I usually go for Nano Id for new projects https://github.com/ai/nanoid
2 comments

I generate uuidv7 as PK and have a publicId "slug" with a 13 character nanoId to display in the URL

not sure if this is duplicative but down the road i figure I can navigate whichever direction i need to go in

+1 for nanoid, which matches what I used to implement myself as a lib function in new projects