Sqids (pronounced "squids") is an open-source library that lets you generate YouTube-looking IDs from numbers. These IDs are short, can be generated from a custom alphabet and are guaranteed to be collision-free. Read more .
This is what they look like:
Sqids for OCaml is not ready [yet].
Please star the repo to move it up our todo list: https://github.com/sqids/sqids-ocaml
If you'd like to help bring this version to life , please ping @4kimov with your Github username or let one of the maintainers know.
If you're looking for the original Hashids OCaml, you can find it here . Please note that it will not be compatible with the current algorithm once this version is done.
The main use of Sqids is purely visual. If you'd like to use IDs instead of numbers in your webapp, Sqids could be a good choice: