dxid is an easier way to identify all the things stored in your
application.
Instead of using numbers like Action #13672, you'll
use shorter codes like Action prpl
Key Advantages for your users
- Shorter, clearer references in communications
- Fewer mistakes when sharing IDs
- No confusion between IDs and metrics/counts
- Cleaner and shorter URLs when they contains an ID
Benefits of DXID
-
Shorter and Clearer
- Easier to read, write, and remember
- Less prone to copy/paste errors
- Built-in error detection to catch typos
-
Better Communication
- Instead of: "There's a problem with Widget #234657" (easy to mistype)
- You'll say: "There's a problem with Widget lkhhc" (shorter and catches typos)
- If there is a mistake and you forget a char, it will correctly identify lkhh or lkhc as typos
-
Human and URL-Friendly
- you can put the uxid in a link without having to worry about encoding
- all the easy to confuse chars (1 vs. l, 0 vs. O) aren't used
- there aren't voyels either, so no risk that an diid looks like a word
-
Minimal tech change
- in your database and backend, you keep using the ids as always
- you just convert them to dxid when displaying them
- you just convert them to id when the users submit them
- simple to check from the cli
$npx dxid lkhhc
- 923 bytes zipped and compressed
- no dependency, lots of tests