ai

    ai/nanoid

    A tiny (118 bytes), secure, URL-friendly, unique string ID generator for JavaScript

    web
    JavaScript
    MIT
    27.1K stars
    1.0K forks
    157 GitHub watchers
    Updated Nov 16, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    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.

    Excerpt from the ai/nanoid README on GitHub (MIT license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    0102030Oct 5: +32Oct 5

    +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

    ai/nanoid compared with Web repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    pingdotgg/t3code69.5K+8.9K40today
    dream-num/univer31.1K+6.6K45today
    pbakaus/impeccable114.5K+4.3K553 days ago
    GoogleChrome/modern-web-guidance-src9.9K+3.8K6338 days ago
    meta/astryx31.8K+3.7K651 day ago
    ai/nanoid27.1K—5342 days ago
    Category median31.8K+4.3K55—

    Discover Repositories

    Search across tracked repositories by name or description