Fastest across the suite
Every strategy beats its dedicated npm alternative in the current isolated-process CI benchmark.
Ten type-safe strategies. One API.
uniku puts UUID v4/v7, ULID, TypeID, CUID v2, Nanoid, KSUID, ObjectID, XID, and TSID behind one consistent API. In the current CI benchmark, every generator beats its dedicated npm alternative.
import { uuidv7 } from 'uniku/uuid/v7'const id = uuidv7()
019b8f1e-70d4-7c5a-b7d2-18f5cc7b95f001JPNBWW9Q54Y5DVXR8F11H3TMuser_01h2xcejqtf2nbrexx3vqjhp41Pick the shape your system needs. Your runtime pays only for the generator you import.
Every strategy beats its dedicated npm alternative in the current isolated-process CI benchmark.
Each direct entry point exposes a callable generator with matching typed helpers.
Built on web standards, tested end to end across all major JavaScript runtimes.
The CLI companion
Install @uniku/cli when the ID belongs in a shell script, a migration, or a debugging session.
uniku uuid -v 7Explore the CLI
Start here