You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

tunity

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tunity

Play any song instantly from your terminal using YouTube

1.0.1
latest
Source
npmnpm
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

Tunity - Terminal Music Player

Play any song instantly from your terminal using YouTube.

Features

  • 🎵 Search and play songs from YouTube directly in your terminal
  • 🔍 Interactive search with song selection
  • 📜 View your listening history
  • 🎮 Simple playback controls
  • 🚀 Fast and lightweight

Installation

Prerequisites

  • Node.js (v16 or higher)
  • Python 3.7+
  • ffmpeg (for audio playback)
  • yt-dlp (Python package)

Install Python Dependencies

pip install yt-dlp

Install ffmpeg

Ubuntu/Debian:

sudo apt update
sudo apt install ffmpeg

macOS:

brew install ffmpeg

Windows: Download from ffmpeg.org or install via Chocolatey:

choco install ffmpeg

Install Tunity

# Clone the repository
git clone https://github.com/yourusername/tunity.git
cd tunity

# Install dependencies
npm install

# Build the project
npm run build

# Link the CLI globally (optional)
npm link

Usage

Play a song

tunity play "song name"

Search for songs

tunity search "song name"

This will display a list of search results and allow you to select a song to play.

View your listening history

tunity history

Help

tunity --help

Playback Controls

  • Space - Play/Pause
  • q - Quit
  • - Forward
  • - Rewind

Development

# Run in development mode
npm run dev

# Build for production
npm run build

License

ISC

Credits

Keywords

music

FAQs

Package last updated on 20 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.