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

mediocre-music

v0.1.2

Published

CLI tool for generating synthetic music compositions for AI training datasets

Readme

🎵 MEDIOCRE 🎵

Genre-bending AI music composition toolkit for LLM training dataset creation.

npm version MIT License Node.js Version

🔊 **Create intricate, nuanced, and musically-sophisticated audio using our unique approach to LLM prompting for musical generation. Perfect for training LLM models on audio processing tasks like mixing, de-verbing, and effects processing.

🚀 Examples

✨ Features

  • 🎭 Genre Fusion - Combine classical and modern elements into unique hybrids
  • 🤖 AI Composition - Generate ABC notation using Claude 3.7 Sonnet
  • 🎼 Format Conversion - ABC → MIDI → WAV pipeline with PDF scores
  • 🎛️ Audio Processing - Apply reverb, delay, distortion and more
  • 📊 Dataset Building - Create structured datasets for ML training
  • 🖥️ Interactive TUI - Browse compositions with playback and rating system

🛠️ Installation

Quick Start (CLI)

# Global installation
npm install mediocre-music -g

# Set your API key
export ANTHROPIC_API_KEY=your_key_here

Development Setup

# Clone and setup
git clone https://github.com/yourusername/mediocre.git
cd mediocre
npm install

# Create .env with your API key
echo "ANTHROPIC_API_KEY=your_key_here" > .env

📦 Requirements

  • Node.js 18+
  • Anthropic API key (Claude 3.7 Sonnet recommended)
  • External tools:
    • abcmidi - ABC ↔ MIDI conversion
    • abcm2ps & ghostscript - PDF score generation
    • timidity - MIDI → WAV conversion
    • sox - Audio effects processing

🎮 Usage Guide

Generate Wild Genre Hybrids

# Create 5 hybrid genres
mediocre genres -n 5

# Customize genre combinations
mediocre genres -c "baroque,serialist,minimalist" -m "techno,trap,vaporwave" -n 3

Compose Musical Masterpieces

# Generate a composition for a specific hybrid
mediocre generate -g "Baroque_x_Techno" -c 1

# Generate multiple pieces with random hybrids
mediocre generate -C "baroque,classical" -M "techno,ambient" -c 3

# Use custom system prompt
mediocre generate -g "Renaissance_x_Trap" --system-prompt examples/custom-system-prompt.txt

Process & Convert

# Convert ABC → MIDI → WAV
mediocre convert --to midi -d ./output
mediocre convert --to wav -d ./output

# Generate PDF scores
mediocre convert --to pdf -d ./output

# Add effects
mediocre process -d ./output -e reverb

Modify Compositions

# Extend or transform existing pieces
mediocre modify "baroque_x_jazz-score1-1234567890" -i "Add a dramatic breakdown with harpsichord solo"

Build ML Datasets

# Create structured dataset
mediocre dataset -d ./output

🎯 Hybrid Genre System

Mix and match from these example categories to create unique sonic fusions:

🎻 Classical/Traditional

  • Baroque, Classical, Romantic
  • Renaissance, Medieval, Impressionist
  • Serialist, Minimalist, Neoclassical
  • Opera, Cantata, Oratorio
  • Chamber, Concerto, Ballet, Fugue

🎧 Modern

  • Techno, House, Drum and Bass
  • Dubstep, Ambient, IDM, Glitch
  • Vaporwave, Lo-fi, Chillwave
  • Trap, Drill, Grime, Hip Hop
  • Rock, Metal, Punk, Jazz, Funk

Come up with your own crazy ideas and give them a try! I merged Cardi B and John Zorn and I think it turned out really great.

🧠 How It Works

  1. Genre Fusion - AI combines musical traditions into hybrid forms
  2. Composition - Claude creates ABC notation with abc2midi extensions
  3. Conversion - Pipeline transforms notation into playable formats
  4. Processing - Effects chain generates training pairs
  5. Dataset - Organized structure with complete metadata

📁 Project Structure

mediocre/
├── src/              # Source code
│   ├── commands/     # Command implementations
│   ├── utils/        # Utility functions
│   └── index.js      # Entry point
├── output/           # Generated music files 
├── dataset/          # Final processed dataset
└── temp/             # Temporary files

📄 License

MIT