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

anonynamer

v1.1.4

Published

Anonymizer generating fake identities from keys

Downloads

15

Readme

Anonynamer

This library allows to generate a pseudo-identity. This identity should seam random but should be constant depending on an input value. This pseudo-identity is composed by three parts : Firstname "Nickname" Lastname.

Quickstart

To create a pseudo-identity from a seed phrase...

1. Install

npm install anonynamer

2. Create a pseudo-identity

import anonyname from "anonynamer";
anonyname('the seed phrase'); // => Theophile "Toritama" Brodzik

The same seed phrase will always return the same result, allowing a durability during the time. By design, it impossible to retrieve the seed phrase from a result.

How it works

Only one function called "anonyname" with a string as input and a string as return type.

During the first step, the input string is hashed with sha1 algorithm. This hash is 40-characters hexadecimal number. Converted into integer (bigint), it can be used to select values into firstname, nickname and lastname datasets. Datasets are arrays, value selected is value at index defined by this integer modulo the dataset size. Modulo is a function returning the remainder after divide two integers.

It is like start spinning three big wheels. One wheel for each dataset : firstname, nickname and lastname. The integer from the hash is the strength of the wheels launch. Wheels will finish to stop on a result. The three extracted results are concatenated to provide the generated pseudo-identity.

Because of the hash step, and because the integer from the hash is very huger than the datasets size, the identity seams random but depending on the input value. It also appears really hard to retrieve the input value from a pseudo-identity.

Dataset

  • firstnames (sourced by https://www.familyeducation.com/baby-names)
  • nicknames (sourced by https://simplemaps.com/data/world-cities)
  • lastnames (sourced by https://www.familyeducation.com/baby-names/surname)

All sources are filtered to allow only values matching ^[A-Z][a-z]+$ regex. No duplicate values exists.

Dataset is composed by :

  • 26,447 firstnames
  • 25,043 nicknames
  • 62,011 lastnames

As a total of 41,070,643,136,431 combinations.