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

hexo-music-player

v0.1.2

Published

一款为 Hexo 博客设计的优雅、轻量级的音乐播放器插件。支持从网易云等音乐平台解析ID,也支持直接URL。

Readme

Hexo Music Player

npm version license

一款为 Hexo 博客设计的优雅、轻量级的音乐播放器插件。支持从音乐平台ID智能解析,也支持使用直接的URL,只需一行简单的标签,即可在您的文章中嵌入一个漂亮的响应式播放器。

An elegant and lightweight music player plugin for the Hexo blog framework. Intelligently parses music IDs from platforms like NetEase, supports direct URLs, and embeds a beautiful, responsive player in your posts with a simple tag.


✨ 效果截图 (Screenshot)

Hexo Music Player 效果演示

🚀 特性 (Features)

  • 两种模式: 支持 平台:ID 智能解析和 URL 直接嵌入两种方式。
  • 平台支持: 已支持网易云音乐,并计划支持更多平台。
  • 极简设计: 苹果风格的现代化简约界面,完美融入您的博客。
  • 响应式: 在桌面和移动设备上均有良好显示效果。
  • 轻量级: 无需引入庞大的第三方库,只包含核心功能的 JS 和 CSS。
  • 开箱即用: 安装即用,无需繁琐配置。

链接与在线效果

📦 安装 (Installation)

通过 npm/pnpm 安装,一行命令即可:

npm install hexo-music-player --save  
or
pnpm add hexo-music-player --save  

🎶 使用方法 (Usage)

本插件提供两种灵活的使用方式:

方式一:通过平台ID (推荐)

这是最简单的方式。只需提供平台名称和歌曲ID,插件会自动为您获取歌曲信息。

语法:

{% music "平台名称:歌曲ID" %}

支持平台:

| 平台 | 前缀 (platform) | 状态 | | :--- | :--- | :--- | | 网易云音乐 | netease | ✅ 已支持 | | QQ音乐 | qq | 🚧 计划中 | | 酷狗音乐 | kugou | 🚧 计划中 | | 更多... | ... | 🚧 计划中 |

示例:

{% music "netease:1889043559" %}

方式二:通过直接URL

如果您有音乐文件的直接链接,可以使用此方式。注意:使用此方式时,歌曲链接、名称和艺术家是必需参数。

语法:

{% music "歌曲链接" "歌曲名称" "艺术家" "封面链接" %}

示例:

# 提供所有参数
{% music "音乐播放连接,以 http / https 开头" "My Awesome Song" "The Cool Band" "音乐 cover 图片地址" %}

🤝 贡献 (Contributing)

欢迎各种形式的贡献!如果您有任何bug反馈或功能建议(例如支持新平台),请随时提交 Issues

📄 许可证 (License)

本项目基于 Apache 许可证。详情请见 LICENSE 文件。

附加声明

本项目不破解、存储任何平台音乐,只采用他人提供的接口,保留所有权利。

© 2025 Pidbid