Fast, spec-compliant UUIDv7 generator with monotonic ordering.
npm install fastv7 bun add fastv7
import { uuid } from "fastv7"; const id = uuid(); // → 019b3ae7-0184-799d-babe-a5a0bb7f263f
500k iterations on M-series hardware:
| Generator | ms | ops/sec |
|---|---|---|
crypto.randomUUID |
19.92 | 25,101,662 |
| fastv7 | 27.35 | 18,279,698 |
uuidv7 (uuidv7 pkg) |
75.11 | 6,657,276 |
uuid v7 (uuid pkg) |
98.69 | 5,066,624 |
×ばつ faster than uuidv7, ×ばつ faster than uuid.