ai

    ai/nanoid

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

    web
    JavaScript
    MIT
    27.1K stars
    897 forks
    27.1K GitHub watchers
    Updated Oct 25, 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.

    5 releases in the last 90 days, the latest 20 days ago, with 148 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

    Oct 5: +32

    +67 stars over 22 days across 3 snapshot days; best day +32 on Oct 5.

    Forks

    897+12

    Open issues

    3-2

    Compared with peers in Web

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, 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/t3code48.4K+16.6K40today
    pbakaus/impeccable104.0K+8.7K5410 days ago
    HunYiSage/dsh-purge19.2K+6.2K13today
    Renhuai123/ziwei-doushu16.2K+6.1K4421 days ago
    paperclipai/paperclip111.5K+2.8K5913 days ago
    ai/nanoid27.1K—5420 days ago
    Category median48.4K+6.2K44—

    Discover Repositories

    Search across tracked repositories by name or description