npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

uuid-to-animal-adjectives

v0.0.3

Published

Generate human readable consistent names for a given UUID. e.g., 'Aggravated Emu'

Downloads

389

Readme

uuid-to-animal-adjective

This package generates a consistent adjective + animal combination for a given UUID.

Consistency

This will always return the same output for the same input. It works by parsing the 128 bit UUID into 4 x 32 bit integers, then using that to select the adjective and animal combination for the given format.

Uniqueness/collision resistance

This library supports four levels of collision resistance, based on how many adjectives you choose to add before the animal.

This has 1,814 unique adjectives and 574 animals. If you choose to enable Pokémon (disabled by default), that adds an additional 905 "animals" to the collection.

Without the Pokémon there are:

  • 1,041,236 unique ADJECTIVE_ANIMALS
  • 1,888,802,104 unique ADJECTIVE_ADJECTIVE_ANIMALS
  • 3,426,287,016,656 unique ADJECTIVE_ADJECTIVE_ADJECTIVE_ANIMALS

With the Pokémon there are:

  • 2,682,906 unique ADJECTIVE_ANIMALS
  • 4,866,791,484 unique ADJECTIVE_ADJECTIVE_ANIMALS
  • 8,828,359,751,976 unique ADJECTIVE_ADJECTIVE_ADJECTIVE_ANIMALS

Collision rates

We have tests testing the Actual collision avoidance rate vs the expected collision rate. The following is the result of one of the test runs. Total duplicates is the total amount of UUIDs that collided, unique duplicates tracks how many different names collided. e.g., if Abandoned Emu is used by three different UUIDs, that would be three total duplicates and 1 unique duplicate.

Note: This is one run, it is not statistically significant.

ADJECTIVE_ANIMAL

No Pokémon

| Number of names generated | Total duplicates | Unique duplicates | Targeted collision avoidance rate | Actual collision avoidance rate | | :---: | :---: | :---:|:---:|---:| | 100 | 0 | 0 | 1 | 1 | | 1000 | 6 | 3 | 0.99 | 0.994 | | 10,000 | 420 | 209 | 0.95 | 0.958 | | 100,000 | 31,669 | 14,808 | 0.65 | 0.68331 |

Pokémon

| Number of names generated | Total duplicates | Unique duplicates | Targeted collision avoidance rate | Actual collision avoidance rate | | :---: | :---: | :---:|:---:|---:| | 100 | 0 | 0 | 1 | 1 | | 1000 | 0 | 0 | 1 | 1 | | 10,000 | 92 | 46 | 0.99 | 0.9908 | | 100,000 | 8,795 | 4,327 | .9 | 0.91205 |

ADJECTIVE_ADJECTIVE_ANIMAL

No Pokémon

| Number of names generated | Total duplicates | Unique duplicates | Targeted collision avoidance rate | Actual collision avoidance rate | | :---: | :---: | :---:|:---:|---:| | 100 | 0 | 0 | 1 | 1 | | 1000 | 0 | 0 | 1 | 1 | | 10,000 | 0 | 0 | 1 | 1 | | 100,000 | 42 | 21 | 0.999 | 0.99958 | | 1,000,000 | 4,059 | 2,029 | 0.99 | 0.995941 |

Pokémon

| Number of names generated | Total duplicates | Unique duplicates | Targeted collision avoidance rate | Actual collision avoidance rate | | :---: | :---: | :---:|:---:|---:| | 100 | 0 | 0 | 1 | 1 | | 1000 | 0 | 0 | 1 | 1 | | 10,000 | 0 | 0 | 1 | 1 | | 100,000 | 10 | 5 | 0.999 | 0.9999 | | 1,000,000 | 1,022 | 511 | 0.99 | 0.998978 |

ADJECTIVE_ADJECTIVE_ADJECTIVE_ANIMAL

No Pokémon

| Number of names generated | Total duplicates | Unique duplicates | Targeted collision avoidance rate | Actual collision avoidance rate | | :---: | :---: | :---:|:---:|---:| | 100 | 0 | 0 | 1 | 1 | | 1000 | 0 | 0 | 1 | 1 | | 10,000 | 0 | 0 | 1 | 1 | | 100,000 | 0 | 0 | 1 | 1 | | 1,000,000 | 0 | 0 | 0.9999 | 1 |

Pokemon

| Number of names generated | Total duplicates | Unique duplicates | Targeted collision avoidance rate | Actual collision avoidance rate | | :---: | :---: | :---:|:---:|---:| | 100 | 0 | 0 | 1 | 1 | | 1000 | 0 | 0 | 1 | 1 | | 10,000 | 0 | 0 | 1 | 1 | | 100,000 | 0 | 0 | 1 | 1 | | 1,000,000 | 2 | 1 | 0.9999 | 0.999998 |