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

@music163/ncm-cli

v0.1.0

Published

Netease Music CLI tool - supporting music playback, search, and playlist management

Readme

网易云音乐 CLI

网易云音乐命令行工具,基于网易云音乐开放平台 API,提供音乐搜索、播放控制、歌单管理、每日推荐、TUI 播放器等功能,并支持通过 AI Agent 进行自然语言操作。

功能特性

  • 音乐搜索与播放控制
  • 歌单管理与每日推荐
  • TUI 播放器(旋转黑胶、歌词同步、场景切换)
  • AI Agent 集成支持
  • 多播放器后端支持(mpv)

快速开始

安装

npm install -g @music163/ncm-cli
ncm-cli --version

配置

前往 网易云音乐开放平台 完成入驻获取 API 凭证,然后运行配置向导:

ncm-cli configure

配置向导会引导完成以下设置:

  • App ID
  • Private Key
  • 播放器选择

登录

ncm-cli login

使用网易云音乐 App 扫描终端中的二维码完成登录授权。

基本使用

ncm-cli search song --keyword "林俊杰"        # 搜索歌曲
ncm-cli play --song --encrypted-id 加密id --original-id 原始id                             # 播放
ncm-cli tui                                     # 启动 TUI 播放器

使用方式

AI Agent 集成(推荐)

通过 Claude Code 或 OpenClaw 等 AI Agent 工具,可以使用自然语言进行音乐操作。

Claude Code 集成

npx skills add https://github.com/NetEase/skills

OpenClaw 集成

ln -s $(pwd)/skills/netease-music-cli ~/.openclaw/skills/
ln -s $(pwd)/skills/netease-music-assistant ~/.openclaw/skills/

集成后支持以下对话示例:

> 帮我搜一下林俊杰的歌
> 播放晴天
> 推荐一些适合深夜听的歌
> 帮我创建一个跑步歌单

可用 Skills

  • netease-music-cli — 提供搜索、播放、歌单管理等基础操作
  • netease-music-assistant — 基于红心歌曲的智能推荐,支持定时推送

CLI 命令行

ncm-cli search                 # 搜索音乐
ncm-cli play                   # 播放
ncm-cli pause                  # 暂停
ncm-cli resume                 # 恢复播放
ncm-cli next                   # 下一首
ncm-cli prev                   # 上一首
ncm-cli volume 60              # 设置音量(0-100)
ncm-cli state                  # 查看播放状态
ncm-cli --help                 # 查看所有可用命令

TUI 播放器

ncm-cli tui

全屏终端播放器,支持旋转黑胶动画、歌词同步、场景切换等功能。

快捷键

| 快捷键 | 功能 | |--------|------| | Space | 播放 / 暂停 | | | 上一首 / 下一首 | | | 音量 +5 / -5 | | S | 随机 / 顺序播放切换 / 单曲循环 | | L | 歌词视图 | | Q | 播放列表视图 | | C | 场景选择器 | | H | 收藏 / 取消收藏 | | Ctrl+C | 退出 |

系统要求

  • Node.js >= 18
  • mpv(本地播放必需)
    • macOS: brew install mpv
    • Linux: sudo apt install mpv