downloads
Across all versions.
Download trend unavailable.
compatibility
Runtime metadata.
node^22 || ^24 || >=26
esmtypes
keywords
Tagged topics.
idrandomurluuid
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
14.4 kB
Includes dependencies.
English | 日本語 | Русский | 简体中文 | Bahasa Indonesia | 한국어 | العربية
A tiny, secure, URL-friendly, unique string ID generator for JavaScript.
“An amazing level of senseless perfectionism, which is simply impossible not to respect.”
crypto.randomUUID().A-Za-z0-9_-).
So ID size was reduced from 36 to 21 symbols.import { nanoid } from "nanoid";
model.id = nanoid(); //=> "V1StGXR8_Z5jdHi6B-myT" Nano ID is built by Evil Martians, an American design and engineering consultancy for developer tools, AI, and cybersecurity startups.
Read full docs here.