nanoid

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
    dev.to | 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: https://pypi.org/project/nanoid/ Their website has a nice collision calculator you should check out: https://zelark.github.io/nano-id-cc/
  • Codebytes: Shorter UUIDs with collision prediction using nanoid
    dev.to | 2021-10-15
    collision calculator
    dev.to | 2021-10-15
    Here comes the saviour, nanoid - A tiny, secure, URL-friendly, unique string ID generator for JavaScript.
  • How to work with nanoid()?
    reddit.com/r/mongodb | 2021-10-15
  • Generate unique IDs on the server or client?
    reddit.com/r/sveltejs | 2021-10-12
    database ID if available, https://github.com/ai/nanoid if temporary ID is needed. Fast and easy to use.
  • Open Sourcing URL Shortener
    dev.to | 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
    dev.to | 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
    reddit.com/r/django | 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 https://github.com/ai/nanoid 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
    dev.to | 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
    dev.to | 2021-08-15
    NanoID 13.7k+ ⭐️
  • Help with Dto RegEx
    you can read more here: https://github.com/ai/nanoid https://blog.bitsrc.io/why-is-nanoid-replacing-uuid-1b5100e62ed2
  • NanoID - A URL Friendly Unique Identifier
    dev.to | 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 => https://github.com/ai/nanoid
    dev.to | 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.

Stats

Basic nanoid repo stats
31
14,308
8.7
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 99remotejobs.com. There are 15 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.