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

Nanoid Alternatives

Similar projects and alternatives to nanoid

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better nanoid alternative or higher similarity.

Suggest an alternative to nanoid

Reviews and mentions

Posts with mentions or reviews of nanoid. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-10-15.
  • Patrón factory en typescript | 2021-10-15
  • How can I generate really unique ids like YouTube video ids that we see in the URL?
    For my flask project I use python nanoid: Their website has a nice collision calculator you should check out:
  • Codebytes: Shorter UUIDs with collision prediction using nanoid | 2021-10-15
    collision calculator | 2021-10-15
    Here comes the saviour, nanoid - A tiny, secure, URL-friendly, unique string ID generator for JavaScript.
  • How to work with nanoid()? | 2021-10-15
  • Generate unique IDs on the server or client? | 2021-10-12
    database ID if available, if temporary ID is needed. Fast and easy to use.
  • Open Sourcing URL Shortener | 2021-10-02
    Looking at the results on nanoId collision calculator, we can see that after three days of generating short keys at rate of 70/hr, there is 1% probability of encountering at least one collision.
  • Creating a Serverless application with Firebase | 2021-09-13
    There are only 3 ID types used in the collections. The articleId is generated by nanoid whenever a new article is added, the user.uid comes from Firebase Auth and the tag is a text string, there are some special ones that start __ but otherwise they come from the user specification.
  • Django rest framework + GDPR + cookies | 2021-09-07
    Cookie consent banner both stores (in one or more cookies) what categories they consented to alongside a unique but anonymous id. I used but a uuid would be fine too. You could generate this uuid server-side and it could be used in the js if a previously stored id is not present.
  • Building successful transactional applications on DynamoDB | 2021-08-17
    If time-series ordering is not important to you, functions like nanoid can achieve much of the same outcomes without needing to worry about hash collisions (and while being URL-friendly too).
  • 4 packages to generate UUIDs in JavaScript | 2021-08-15
    NanoID 13.7k+ ⭐️
  • Help with Dto RegEx
    you can read more here:
  • NanoID - A URL Friendly Unique Identifier | 2021-07-25
    Generating both NanoID or UUID is pretty straightforward. In JavaScript, you have NPM packages that will help you to generate them. You can get NanoId from here => | 2021-07-25
    You can calculate that based on the given parameters easily here and here.
  • Nano Stores: tiny state manager for React/Preact/Vue/Svelte in 152 bytes (!) and with tree-shaking support
    😄 A lot of experience after creating my previous popular project Nano ID.


Basic nanoid repo stats
6 days ago

ai/nanoid is an open source project licensed under MIT License which is an OSI approved license.

Find remote JavaScript jobs at our new job board There are 15 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.