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

lyric-karaoke-cli

v1.0.0

Published

A CLI application for displaying song lyrics in a karaoke-style format

Readme

Lyric Karaoke CLI

A command-line application that displays song lyrics in a karaoke-style format. Search for songs by title or artist, view lyrics with animated displays, and enjoy your favorite songs right in your terminal!

NPM Version License

Features

  • 🎵 Search for songs by title, artist, or both
  • 🎤 Display lyrics in an animated karaoke-style format
  • ⏯️ Control playback (start, pause, skip)
  • 💾 Cache song data locally to minimize API requests
  • 🎨 Colorful and engaging terminal interface
  • 🌐 Integration with music lyrics APIs
  • 📱 Cross-platform compatibility

Installation

Global Installation (Recommended)

npm install -g lyric-karaoke-cli

This will make the lyric-karaoke command available globally on your system.

Local Installation

npm install lyric-karaoke-cli

Then you can run it with:

npx lyric-karaoke

API Key Setup

This application requires an API key to fetch song data. We use the Genius Lyrics API by default.

  1. Sign up for a free API key at Genius API
  2. Create a .env file in your project directory
  3. Add your API key to the .env file:
API_KEY=your_genius_api_key_here

Alternatively, you can set it as an environment variable:

export API_KEY=your_genius_api_key_here

Usage

Basic Usage

Simply run the command to launch the interactive menu:

lyric-karaoke

Search for Songs

From the main menu, select "Search for a song" and enter the song title, artist, or both.

Example:

? Enter song title or artist: Bohemian Rhapsody Queen

Controlling the Lyrics Display

When viewing lyrics, you can:

  • Press SPACE to pause/resume
  • Press RIGHT ARROW to skip to the next line
  • Press LEFT ARROW to go back to the previous line
  • Press ESC or CTRL+C to exit back to the menu

Viewing Recent Songs

Select "View recent songs" from the main menu to see songs you've previously viewed. This uses the local cache to avoid additional API requests.

Clearing the Cache

To clear the local cache:

lyric-karaoke --clear-cache

Or using npm:

npm run clear-cache

Command Reference

lyric-karaoke [options]

Options:

  • --help or -h: Display help information
  • --version or -v: Display the installed version
  • --clear-cache: Clear the local cache
  • --search="song title": Directly search for a song
  • --artist="artist name": Specify an artist when searching
  • --no-color: Disable colored output

Contributing

Contributions are welcome! Here's how you can contribute:

  1. Fork the repository
  2. Create a new branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Run tests (npm test)
  5. Commit your changes (git commit -m 'Add some amazing feature')
  6. Push to the branch (git push origin feature/amazing-feature)
  7. Open a Pull Request

Please make sure your code follows the existing style and includes appropriate tests.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Thanks to the Genius API for providing lyrics data
  • Inspired by karaoke machines and the joy of singing along

Lyric Karaoke CLI

A command-line application that allows you to search for song lyrics and display them in a karaoke-style format.

Features

  • Search for songs by title, artist, or genre
  • Display lyrics in a line-by-line karaoke style
  • Interactive controls to start, pause, or skip sections
  • Caching mechanism to minimize API calls
  • Colorful and engaging terminal interface

Installation

Prerequisites

  • Node.js (v14 or higher)
  • npm (v6 or higher)

Steps

  1. Clone the repository:

    git clone https://github.com/your-username/lyric-karaoke-cli.git
    cd lyric-karaoke-cli
  2. Install dependencies:

    npm install
  3. Create a .env file in the root directory (or copy the example):

    cp .env.example .env
  4. Get an API key from Genius API and add it to your .env file:

    API_KEY=your_api_key_here

Usage

Running the Application

Start the application with:

npm start

Or run it directly with Node:

node index.js

Search for Songs

  1. Enter a search term (song title, artist name, or lyrics snippet)
  2. Select from the search results
  3. Enjoy the karaoke-style display of lyrics

Commands

  • npm start: Start the application
  • npm run clear-cache: Clear the cached song data

Configuration

You can configure the application through environment variables in the .env file:

| Variable | Description | Default | |----------|-------------|---------| | API_KEY | Your Genius API key | (required) | | API_BASE_URL | Base URL for the API | https://api.genius.com | | CACHE_ENABLED | Enable or disable caching | true | | CACHE_DIRECTORY | Directory for cache storage | ./.cache | | CACHE_TTL | Cache time-to-live in seconds | 86400 (24 hours) | | MAX_SEARCH_RESULTS | Maximum number of search results to display | 10 |

Development

Project Structure

├── index.js                  # Main entry point
├── src/
│   ├── api/                  # API communication module
│   ├── cli/                  # Command-line interface module
│   ├── cache/                # Caching module
│   ├── utils/                # Utility functions
│   └── config.js             # Configuration module
├── .env                      # Environment variables
└── package.json              # Project metadata and dependencies

Adding Features

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature-name
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin feature-name
  5. Open a pull request

License

MIT

Acknowledgements