https://zelark.github.io/nano-id-cc/
Nano ID collision calculator
https://zelark.github.io/nano-id-cc/
calculator collision nanoid
Last synced: about 3 hours ago
JSON representation
Nano ID collision calculator
- Host: GitHub
- URL: https://zelark.github.io/nano-id-cc/
- Owner: zelark
- License: mit
- Created: 2018-08-08T13:08:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-02T14:54:55.000Z (almost 2 years ago)
- Last Synced: 2025-04-06T11:24:28.736Z (18 days ago)
- Topics: calculator, collision, nanoid
- Language: Clojure
- Homepage: https://zelark.github.io/nano-id-cc/
- Size: 401 KB
- Stars: 45
- Watchers: 2
- Forks: 10
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-unique-id - Nano ID collision calculator (by Aleksandr Zhuravlёv)
README
# Nano ID Collision Calculator
[Nano ID](https://github.com/ai/nanoid) is a library for generating random IDs. Likewise UUID, there is a probability of duplicate IDs. However, this probability is extremely small.
Meanwhile, a lot of projects generate IDs in small numbers. For those projects, the ID length could be reduced without risk.
This [calculator](https://zelark.github.io/nano-id-cc/) aims to help you realize the extent to which the ID length can be reduced.
## Setup
First, you need to have [Leiningen](https://leiningen.org/) installed.To minify CSS run:
lein minify-assets
To get an interactive development environment run:
lein figwheel
It will open your browser at [localhost:3449/index.html](http://localhost:3449/index.html).
This will auto compile and send all changes to the browser without the
need to reload.To clean all compiled files:
lein clean
To create a production build run:
lein build
## Acknowledgments
First of all, I would like to thank [Andrey Sitnik](https://github.com/ai) — he is a role model for other developers to look up to (but drinking). Second, thank [Alexey Komarov](https://github.com/alex7kom) — its version of the calculator pushed me to make my own one. And my special thanks to [Artem Alalykin](https://github.com/ArtyomAN) who helped me with the math.
Also, thanks to all guys who helped me to review the interface.