Ten type-safe strategies. One API.

One install. Every ID strategy.

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.

UUID v7 · ULID · TypeID and more
import { uuidv7 } from 'uniku/uuid/v7'const id = uuidv7()
01019b8f1e-70d4-7c5a-b7d2-18f5cc7b95f0
0201JPNBWW9Q54Y5DVXR8F11H3TM
03user_01h2xcejqtf2nbrexx3vqjhp41

Pick the shape your system needs. Your runtime pays only for the generator you import.

Fastest across the suite

Every strategy beats its dedicated npm alternative in the current isolated-process CI benchmark.

Ten strategies, one type-safe API

Each direct entry point exposes a callable generator with matching typed helpers.

Portable by default

Built on web standards, tested end to end across all major JavaScript runtimes.

The CLI companion

Generate, inspect, and validate from your terminal.

Install @uniku/cli when the ID belongs in a shell script, a migration, or a debugging session.

 uniku uuid -v 7
Explore the CLI

Start here

Choose an ID format with intent.