Intro

Nano ID

A nanoid implementation in toddle. Works with server side rendering. Nano ID is a tiny, secure, URL-friendly, unique string ID generator.

Based on https://github.com/ai/nanoid

Demo

5EOSnTayub1a_MR80XPCS

ID length 64^21
At 1.000 inserts per hour, it will take an average of undefined or undefinedfor a 1% chance of collision.
There are more possible IDs than null

Formulas

  • Nano ID

    sizeHow many characters to generate (default is 21)