
prefID
Stripe-style, prefixed IDs for TypeScript & JavaScript
3 followers
Stripe-style, prefixed IDs for TypeScript & JavaScript
3 followers
prefID generates type-safe, prefixed IDs like user_a1b2c3 with zero dependencies. Secure, tiny, and universal with distributed ID support. With more control than UUID.


Love the zero-dependency approach and the prefixed format makes debugging so much easier than raw UUIDs. One thing I'd love to see is a built-in parser that can take a prefixed ID and return both the prefix and raw ID separately, so I don't have to write that regex every time.
@aminet52n yeah good addition . thanks . Also do you know how can i make a npm package a bit famous like known to a good amount of people ?