UUIDv7 with Base 62 encoding

In a Phoenix (Postgres) app I’m currently using standard numeric IDs, but I’d like to switch to UUIDv7 as ordered identifiers with Base62 encoding for short, readable urls, and support for route interpolation, so ~p"/user/#{@user}" still works.

I’ve found a few libraries and blog posts from around 2023, but most have not been updated since, so I’m wondering if I missed something built-in, or if we’re still mostly using either integer IDs, or UUIDv4 with dashed 32-digit hex strings?

Thank you!

There’s not really much to update though. Ecto and phoenix could be customized in that regard for ages. UUIDv7 and Base62 calculations also aren’t randomly changing, but quite stable algorithms.

The answer is that no, nothing has changed. There is a Base module but it does not support Base62 (only 64), and Ecto has UUIDv4 but still no UUIDv7 built in.

The TypeID library is built on UUIDv7, if it’s of any help to you.