Sqids is an open-source library that allows you to generate YouTube-like IDs using numbers. These IDs are short, visually appealing, and guaranteed to be collision-free. You can use Sqids for various purposes, such as link shortening, safe URLs, event IDs, and one-time passwords. It is not suitable for sensitive data or encryption. Sqids features easy encoding and decoding, ensures that auto-generated IDs are free of profanity, and offers support for custom IDs using a shuffled alphabet. With its compatibility across 40 programming languages, Sqids is a small yet powerful library to consider.
https://sqids.org/