Eleven type-safe strategies. One API.

One install. Every ID strategy.

uniku puts UUID v4/v5/v7, ULID, TypeID, CUID v2, Nanoid, KSUID, ObjectID, XID, and TSID behind one consistent API. Each generator has a direct entry point, with published compatibility and performance measurements.

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.

Measured across formats

Compare generation throughput and per-entry bundle sizes in the isolated-process CI benchmark.

Eleven 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.