ai/nanoid
A tiny (118 bytes), secure, URL-friendly, unique string ID generator for JavaScript
Build with Backblaze B2
SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.
Loading star history...
Where it stands
Rank, growth pace and release cadence relative to everything GStars tracks.
3 releases in the last 90 days, the latest 42 days ago, with 149 contributors on GitHub.
Use Cases & Benefits
- Generates tiny, secure, URL-friendly unique string IDs for JavaScript applications.
- Offers faster and shorter IDs than UUID v4 with a larger alphabet and hardware-based randomness.
- Use for creating compact unique identifiers in web applications requiring URL-safe strings.
- Use for generating custom-sized or alphabet-specific IDs for specialized database keys or tokens.
- Use for cross-platform ID generation with consistent implementations across over 20 programming languages.
Should you depend on it?
License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.
License
MIT
Permissive: commercial use, modification and redistribution are allowed with attribution.
Community files
- README: present
Watch-outs
No watch-outs from GStars' checks.
General guidance from repository metadata, not legal advice. How we score
From the README
A tiny, secure, URL-friendly, unique string ID generator for JavaScript.
“An amazing level of senseless perfectionism, which is simply impossible not to respect.”
Nano ID is built by Evil Martians, an American design and engineering consultancy for developer tools, AI, and cybersecurity startups.
Nano ID is quite comparable to UUID v4 (random-based). It has a similar number of random bits in the ID (126 in Nano ID and 122 in UUID), so it has a similar collision probability:
For there to be a one in a billion chance of duplication, 103 trillion version 4 IDs must be generated.
Daily snapshots
Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots
+87 stars over 44 days across 5 snapshot days; best day +32 on Oct 5.
Forks
1.0K+161
Open issues
2-3
Compared with peers in Web
Fastest-growing repositories GStars tracks in this cohort for the week of Nov 15, by 7-day star growth
| Repository | Stars | +7d | Health | Last release |
|---|---|---|---|---|
| pingdotgg/t3code | 69.5K | +8.9K | 40 | today |
| dream-num/univer | 31.1K | +6.6K | 45 | today |
| pbakaus/impeccable | 114.5K | +4.3K | 55 | 3 days ago |
| GoogleChrome/modern-web-guidance-src | 9.9K | +3.8K | 63 | 38 days ago |
| meta/astryx | 31.8K | +3.7K | 65 | 1 day ago |
| ai/nanoid | 27.1K | — | 53 | 42 days ago |
| Category median | 31.8K | +4.3K | 55 | — |
Discover Repositories
Search across tracked repositories by name or description