kripod / uuidv7

UUIDv7 generator with millisecond precision
MIT License
108 stars 2 forks source link
collision-resistance id-generator k-sortable

UUIDv7

UUIDv7 generator based on the RFC4122 update proposal (draft-04)

npm (scoped) npm bundle size (scoped) GitHub Workflow Status (branch) Contributor Covenant

Usage

import { uuidv7 } from "@kripod/uuidv7";

let id = uuidv7();
console.log(id); // Example: 00ccebbc-13e0-7000-8b18-6150ad2d0c05

Key features

Compatibility

Chrome Safari Firefox IE Node.js Deno
≥57 ≥10 ≥48 No (polyfillable) ≥8 ≥1

Supporting additional runtimes

Binary structure