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

@neokaal/codenames

v0.1.0

Published

Memorable codename generator for releases, projects, and environments

Readme

@neokaal/codenames

Generate two-word human-readable, memorable, random code-names for naming releases, builds, machines etc.

npx @neokaal/codenames
# sapphire-badger

Available as a library and a command line tool on npm. See detailed documentation below.

Table of Contents

Installation

Library

npm install @neokaal/codenames

CLI

Execute directly via npx:

npx @neokaal/codenames

Or install globally:

npm install -g @neokaal/codenames

CLI

Usage

Generate a single codename:

npx @neokaal/codenames
# sapphire-badger

Generate multiple codenames:

npx @neokaal/codenames -c 3 --casing pascal
# CrimsonLotus
# EmeraldFalcon
# AmberFox

Filter by subject category:

npx @neokaal/codenames --category plants --casing snake
# lavender_willow

Output formatted JSON:

npx @neokaal/codenames --json
# {
#   "slug": "ultramarine-falcon",
#   "color": "ultramarine",
#   "hex": "#4166f5",
#   "subject": "falcon",
#   "type": "animal",
#   "formatted": "ultramarine-falcon"
# }

Generate release export strings:

npx @neokaal/codenames --export v1.2.0
# Codename: indigo-alder
# Git Tag:  git tag -a v1.2.0-indigo-alder -m "Release indigo-alder"
# Docker:   app:indigo-alder
# Env Var:  RELEASE_NAME=indigo-alder

Options

| Flag | Type | Description | Default | | :--- | :--- | :--- | :--- | | -c, --count <number> | integer | Number of items to generate | 1 | | --category <type> | string | Subject filter: all, animals, plants | all | | --casing <format> | string | Output casing: kebab, snake, camel, pascal, title | kebab | | --json | boolean | Output raw JSON | false | | --export [version] | string | Output release tooling snippets for the given version tag | v1.0.0 | | -v, --version | boolean | Print package version | | | -h, --help | boolean | Print help text | |

API Reference

The package ships with dual CommonJS (CJS) and ES Module (ESM) builds.

Imports

ESM:

import { generate, generateBatch, getExportFormats, ReleaseGenerator } from '@neokaal/codenames';

CJS:

const { generate, generateBatch, getExportFormats, ReleaseGenerator } = require('@neokaal/codenames');

generate(options)

Generates a single codename object.

Parameters

  • options (optional object):
    • category ('all' | 'animals' | 'plants', default: 'all'): Subject category filter.
    • casing ('kebab' | 'snake' | 'camel' | 'pascal' | 'title', default: 'kebab'): String format of formatted property.
    • exclude (string[], default: []): Array of slugs to exclude.

Returns

An object implementing Codename:

| Property | Type | Description | | :--- | :--- | :--- | | slug | string | Hyphen-separated lowercase slug (e.g. 'indigo-falcon'). | | color | string | Name of the selected color. | | hex | string | Hexadecimal color code (e.g. '#4b0082'). | | subject | string | Name of the selected subject. | | type | 'animal' | 'plant' | Subject category. | | formatted | string | String formatted according to the casing option. |

Example

const item = generate({ category: 'plants', casing: 'pascal' });
console.log(item.formatted); // 'IndigoAlder'

generateBatch(count, options)

Generates an array of unique codename objects.

Parameters

  • count (optional number, default: 12): Number of unique codenames to return.
  • options (optional object): Identical to generate(options).

Returns

An array of Codename objects.

Example

const items = generateBatch(3, { casing: 'snake' });
items.forEach(item => console.log(item.formatted));

getExportFormats(slug, version)

Generates pre-formatted strings for release tooling and configuration files (git tags, docker tags, environment variables, markdown metadata, and changelog headers).

Parameters

  • slug (string, required): Hyphen-separated codename slug.
  • version (string, optional, default: 'v1.0.0'): Target version string.

Returns

An ExportFormats object containing formatted release strings:

  • slug: Raw slug.
  • gitTag: Annotated git tag command.
  • gitTagSimple: Tag name only.
  • dockerTag: Container tag suggestion.
  • envVar: Shell environment variable assignment.
  • changelogHeader: Markdown header snippet.
  • markdownMeta: YAML frontmatter snippet.

Example

const formats = getExportFormats('amber-badger', 'v2.1.0');
console.log(formats.gitTag); // git tag -a v2.1.0-amber-badger -m "Release amber-badger"

ReleaseGenerator

The class used internally by generate and generateBatch. Can be instantiated directly when state isolation is required.

import { ReleaseGenerator } from '@neokaal/codenames';

const generator = new ReleaseGenerator();
const item = generator.generate({ category: 'animals' });

TypeScript Support

TypeScript declarations are bundled with the package. Types can be imported directly:

import type {
  Category,
  Casing,
  SubjectType,
  Subject,
  Color,
  GenerateOptions,
  Codename,
  ExportFormats,
} from '@neokaal/codenames';

License

Apache-2.0. See LICENSE for the full text.