nanoid
A tiny (116 bytes), secure URL-friendly unique string ID generator
hexoid
A tiny (190B) and extremely fast utility to generate random IDs of fixed length
uri-js
An RFC 3986/3987 compliant, scheme extendable URI/IRI parsing/validating/resolving library for JavaScript.