{
 "kind": "tool",
 "slug": "paralleldrive-cuid2",
 "path": "tools/paralleldrive-cuid2/",
 "name": "cuid2",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Utilities",
   "tools/utilities/"
  ]
 ],
 "lead": "Collision-resistant unique ID generator optimized for databases.",
 "chips": [
  {
   "label": "Utilities",
   "path": "tools/utilities/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install @paralleldrive/cuid2"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/ericelliott/cuid2"
  },
  {
   "label": "Website",
   "href": "https://github.com/ericelliott/cuid2#readme"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/ericelliott/cuid2"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 20, 2026",
   "note": "",
   "src": "https://github.com/ericelliott/cuid2"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "19 projects",
   "status": "info",
   "sub": "#79 of 408 in its category",
   "note": "Dependency in 19 public GitHub projects set up for AI coding agents that we scanned (0.3%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What cuid2 does",
   "parts": [
    {
     "t": "prose",
     "text": "Collision-resistant unique ID generator optimized for databases."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "cuid2 popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "62",
       "of": "/ 100",
       "l": "Gid Score, #876 overall"
      },
      {
       "n": "30.9M",
       "l": "downloads a week, npm"
      },
      {
       "n": "3,407",
       "l": "GitHub stars"
      },
      {
       "n": "19",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How cuid2 is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "cuid2 is a dependency in 19 of the 6,258 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 43 projects, and what it is used with below comes from all of them.",
      "The most used alternative in our scan is uuid (297 projects).",
      "Projects that use it most often also use Tailwind Merge (88.4%), Zod (93.0%), Class Variance Authority (83.7%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "10 projects, 0.3%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "10 projects, 0.3%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "7 projects, 0.3%",
       "v": "Cursor",
       "path": "agents/cursor/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 88.4% of its projects",
       "v": "Tailwind Merge",
       "path": "tools/tailwind-merge/"
      },
      {
       "l": "In 93.0% of its projects",
       "v": "Zod",
       "path": "tools/zod/"
      },
      {
       "l": "In 83.7% of its projects",
       "v": "Class Variance Authority",
       "path": "tools/class-variance-authority/"
      },
      {
       "l": "In 81.4% of its projects",
       "v": "clsx",
       "path": "tools/clsx/"
      },
      {
       "l": "In 79.1% of its projects",
       "v": "Lucide React",
       "path": "tools/lucide-react/"
      },
      {
       "l": "In 76.7% of its projects",
       "v": "Next.js",
       "path": "tools/next/"
      },
      {
       "l": "In 72.1% of its projects",
       "v": "Radix UI",
       "path": "tools/radix-ui/"
      },
      {
       "l": "In 95.3% of its projects",
       "v": "React",
       "path": "tools/react/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about cuid2",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "More in Utilities",
       "path": "tools/utilities/",
       "items": [
        {
         "text": "clsx",
         "path": "tools/clsx/"
        },
        {
         "text": "date-fns",
         "path": "tools/date-fns/"
        },
        {
         "text": "PyYAML",
         "path": "tools/pyyaml/"
        },
        {
         "text": "yaml",
         "path": "tools/yaml/"
        },
        {
         "text": "js-yaml",
         "path": "tools/js-yaml/"
        },
        {
         "text": "glob",
         "path": "tools/glob/"
        },
        {
         "text": "Lodash",
         "path": "tools/lodash/"
        },
        {
         "text": "tqdm",
         "path": "tools/tqdm/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "cuid2",
       "me": true,
       "facts": [
        "MIT",
        "Gid 62",
        "30.9M/wk"
       ]
      },
      {
       "name": "uuid",
       "why": "Generate RFC9562 compliant UUIDs for unique identifiers in applications.",
       "path": "tools/uuid/",
       "facts": [
        "MIT",
        "Gid 81",
        "402M/wk"
       ]
      },
      {
       "name": "Nanoid (JavaScript)",
       "why": "Tiny, secure, URL-friendly unique string ID generator for JavaScript.",
       "path": "tools/nanoid-npm/",
       "facts": [
        "MIT",
        "Gid 81",
        "399M/wk"
       ]
      }
     ],
     "more": "Compare cuid2 with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install @paralleldrive/cuid2"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for cuid2 yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm @paralleldrive/cuid2"
  ],
  [
   "Category",
   "Utilities"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "61.9"
  ],
  [
   "Rank in category",
   "#79 of 408"
  ],
  [
   "GitHub",
   "ericelliott/cuid2"
  ],
  [
   "Last change",
   "Nov 20, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/ericelliott.png"
}