# paralleldrive/cuid2

The most secure, collision-resistant ids optimized for horizontal scaling and performance.

Repository: https://github.com/paralleldrive/cuid2
Canonical: https://ross.abutalabs.com/products/cuid2
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2026-08-12T22:06:08+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 35, longevity 96
- inputs: {"age_days": 1346, "days_push": 21, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3394, forks 72 (observed 2026-08-28T04:07:59.159961+00:00)

## What it is
Cuid2 is a JavaScript library and CLI for generating secure, collision-resistant unique identifiers optimized for horizontal scaling and performance. It uses multiple independent entropy sources hashed with SHA-3 to produce URL-friendly IDs without coordination between machines.

## Use cases
- generate unique ids for database records
- replace uuids with collision-resistant ids
- generate ids across multiple servers without coordination
- create url-friendly unique identifiers
- generate unique ids offline without a network
- generate ids from the command line

## When to choose
- you need secure, non-guessable unique ids in a distributed or horizontally scaled system
- you want url-safe ids without special characters
- you need offline id generation with no coordination service

## When to avoid
- you need sequential or k-sortable ids
- you need maximum speed in tight loops like render loops where security and cross-host uniqueness are not required

## Facets
- artifact type: library
- maturity: active
- function: security, cryptography, developer-tools, cli
- domain: developer-tools, security, web-development, databases
- platform: cross-platform, cli
- tags: unique-ids, id-generation, collision-resistant, uuid-alternative, cuid, nodejs, javascript

## Member repositories
- paralleldrive/cuid2 (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:59.159961+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:38:59.403530+00:00, confidence not recorded.
  - readme: https://github.com/paralleldrive/cuid2 (fetched 2026-08-28T04:07:59.159961+00:00, sha d3b04f2caa38)
- Data as of 2026-08-30T08:39:29.467469+00:00.
