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 🙏

© 2025 – Pkg Stats / Ryan Hefner

tia-player

v19.6.25

Published

tia-music-palyer

Readme

TiaPlayer

https://qiatia.cn/tools/viaplayer/via-mini.html

轻量级的 JavaScript 在线音乐播放器 三行代码嵌入任意网页

简约不简单, 内置我苦心钻研多年的一个Toast模块, $http 发送网络请求模块(没办法, 实在不想用JQuery咯), 动画全使用CSS3实现! 你在问我兼容性? 什么! 风太大我听不见, 其他浏览器还好辣, IE真没啥信心.

大致功能

歌手图片显示, 歌词滚动, 歌曲列表, 常用的歌曲切换, 播放顺序切换, 播放进度控制, 播放音量控制, 后台获取网易云音乐歌单

兼容性


chrome: 13+ Safari: 5.1+ Firefox: 4+ Opera: 11.60+ Internet Explorer: 9+

开始使用 && 再本地或服务器


git clone [email protected]:QiaTia/viaplayer.git TiaPlayer

cd TiaPlayer

npm insatll

npm run serve  // 本地调试 会启动一个node后台服务

npm run build  // 编译
<script src="dist/index.js"></script>
<script>$Tia(*int playlist)</script>
* 为必填字段
playlist: 网易云音乐的歌单 id,  接受int数据
apiaddress: api链接地址,可选,接受string数据

如需手机上不显示

添加css样式即可

@media (max-width:600px){
   #viaplayer{display: none}
}

高清预览

view view view view view

反馈&建议&疑问

点这里告诉我吧

入坑小记:

bug嘛,前几天刚刚弄出来的时候,,会把我主页面的所有元素监听无效化(轮播图片,返回顶部按钮监听全部失效),一直没找到原因,后面慢慢删减代码排除才发现,不能直接选择body元素添加内容进去,否则就会让页面监听失败,只能先 createElement 父div出来然后再将内容插进去,算得上一个经验了吧,真是坑的伤心流泪,一直没找到问题,但是却能正常工作,也没想到这样会出错

歌词滚动的时候,可能会解析失败,大概不会影响正常播放,只是会显示出错,还有更换歌曲的时候开始歌词不会复位到开始,但是播放一段事件会跳上去。 现在版权保护比较严重, 本地又是用的网易云在线api, 所有会出现一些付费歌曲无法播放的问题, 具体来说, 无解, 下次我可以考虑屏蔽掉这些歌曲. 现在只能争取选一个无不可以播放的歌单

emmm

后台 API & 致谢

项目下基于node的后台api是我翻阅下面php的api实现的, 完全就是照抄的, 不需要担心 NeteaseCloudMusicApi

Ta们也在用ViaPlayer

https://qiatia.github.io/

https://tia.qiatia.cn