{
  "slug": "nanoid",
  "name": "nanoid",
  "url": "https://github.com/ai/nanoid",
  "cat": "dx",
  "group": "build",
  "tagline": "Unique ID generator",
  "price": "Free · MIT",
  "tier": "free",
  "pick": false,
  "what": "A tiny URL-safe unique ID generator, v6, around 130 bytes gzipped. It uses the platform crypto RNG and produces shorter IDs than UUID v4 at comparable collision safety, with configurable length and alphabet.",
  "why": "You need client-side IDs the moment you do optimistic updates or need React list keys before the server responds. <code>Math.random()</code> collides and <code>Date.now()</code> collides inside loops.",
  "warn": "Modern browsers have built-in <code>crypto.randomUUID()</code> — if you do not need short IDs or a custom alphabet, you may not need the dependency at all.",
  "install": "npm install nanoid",
  "category": {
    "key": "dx",
    "name": "Libraries & build tooling",
    "desc": "The dependencies your AI will reach for whether or not you chose them. Know what they are.",
    "group": "build",
    "groupName": "Build it"
  },
  "freshness": null,
  "health": {
    "ok": true,
    "status_code": 200,
    "final_url": null,
    "checked_at": "2026-08-18T21:22:12.874+00:00"
  },
  "corrected_at": null,
  "upstream_changed_at": null
}