Skip to content

About

Nano ID collision calculator

Topics

Resources

Stars

42 stars

Watchers

1 watching

Forks

Repository files navigation

Nano ID Collision Calculator

Nano ID 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 aims to help you realize the extent to which the ID length can be reduced.

Where is all ClojureScript?

The world changes, and so does this calculator. It was rewritten in TypeScript, but the UI stayed the same. The ClojureScript implementation now lives in the cljs-implementation branch and is no longer developed.

Setup

First, you need to have Node.js 22 or newer installed.

Install dependencies:

npm ci

To type-check the sources:

npm run typecheck

To create a production build (output goes to dist/):

npm run build

To start a local development server with live reload:

npm run dev

It will serve the app locally (the URL and port are printed in the console).

Acknowledgments

First of all, I would like to thank Andrey Sitnik — he is a role model for other developers to look up to (but drinking). Second, thank Alexey Komarov — its version of the calculator pushed me to make my own one. And my special thanks to Artem Alalykin who helped me with the math.

Also, thanks to all guys who helped me to review the interface.

Icons

The interface icons are taken from the IconShip Interface Icons collection on SVG Repo.

About

Nano ID collision calculator

Topics

Resources

Stars

42 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages