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 🙏

© 2026 – Pkg Stats / Ryan Hefner

roti-kapda-makaan

v2.0.1

Published

A JS lib to generate unique combinations of hinglish words.

Readme

A JS lib to generate unique combinations of hinglish words. 🌯 🥻 🏠

Website: https://roti-kapda-makaan.dev/

Why?

Imagine interacting with a company's help support and then receiving this robotic reference id:

'9e93d8dd-22aa-4439-a008-f33f4c8b0c69'

Now imagine doing the same but getting this reference id:

'23-mast-chai-cool-coffee'

The latter is enough to slightly amuse you, and much much easier to tell the company representative on call.

And that's the whole idea behind it, share ids which humans understand. It's easy to quote and might put a smile on their faces as well.

Installation

Node

npm install roti-kapda-makaan

Web

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/roti-kapda-makaan.js"></script>

Usage

Node

import { generate } from 'roti-kapda-makaan'

async function getHinglishId() {
    const id = await generate();
    return id;
}

Web

async function getHinglishId() {
    const id = await rotiKapdaMakaan.generate();
    return id;
}

How does it work?

I searched the internet to get a big enough list of hinglish words, and then separated them based on the word being a noun or an adjective. There were some other filters involved as well, for example frequency of the words used in day to day life and length of the words.

Once this set was prepared, I handpicked 64 adjectives and 128 nouns. Now, why 64 and 128 exactly?

Each id is combination of words, prefixed by a number. Something like:

number_prefix + random_adjective + random_noun + random_adjective + random_noun

The number_prefix can be from range 1-64, i.e. 2^6(64) different values of number_prefix are possible. In simple words, number_prefix represents 6 bits of information.

Coming to random_adjective, we only have 64 or 2^6 adjectives. So it also represents 6 bits of information.

And together they represent 12 bits, and 2^12 being 4096, that's the total number of unique combinations we can have:

number_prefix(6 bits) + random_adjective(6 bits) = 12 bits of information

And hence:

number_prefix(6 bits) + random_adjective(6 bits) + random_noun(7 bits) + random_adjective(6 bits) + random_noun(7 bits) = 32 bits of information

Which means there are 2^32(4,29,49,67,296) unique combinations of numbers, nouns and adjectives our function can generate!