Package Managers
Install uniku using your preferred package manager:pnpm is the recommended package manager for optimal performance and disk space usage.
Requirements
uniku requires a JavaScript runtime that supports:- ESM modules (no CommonJS support)
- Web Crypto API (
globalThis.crypto) - Node.js v24.13.0 or higher (if using Node.js)
Bundle Size
Only import what you use — each entry point is independently tree-shakeable:| Import | Minified + gzipped |
|---|---|
uniku/uuid/v4 | ~940 B |
uniku/uuid/v7 | ~1.1 KB |
uniku/ulid | ~1.5 KB |
uniku/cuid2 | ~1.1 KB |
uniku/nanoid | ~938 B |
uniku/ksuid | ~1.0 KB |
Example Bundle Impact
If you only import UUID v7:Runtime Compatibility
uniku works in all JavaScript environments that support the Web Crypto API:Node.js
Version 24.13.0 or higher
Deno
All versions with Web Crypto support
Bun
All versions
Cloudflare Workers
All versions
Vercel Edge
All versions
Browsers
All modern browsers (Chrome, Firefox, Safari, Edge)
No Node.js-specific APIs are used. uniku relies entirely on
globalThis.crypto, making it truly universal.Preview Releases
Every pull request gets a preview release via pkg.pr.new. You can install directly from a PR to test unreleased features:123 with the actual PR number.
TypeScript Support
uniku is written in TypeScript and includes full type definitions. No additional@types packages are needed.
Verify Installation
After installation, verify that uniku works correctly:Next Steps
Quick Start
Generate your first ID and learn the basics
API Reference
Explore the complete API documentation
