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

@songloft/musicsdk

v2.0.0-alpha.1

Published

Songloft 多平台音乐搜索 SDK (TypeScript)

Readme

@songloft/musicsdk

Songloft 音乐 SDK:定义统一的搜索 / 歌词 / 歌单 / 排行榜 / 热搜 / 联想词接口,方便 JS 插件按需注册自有的音源适配器。

安装

pnpm add @songloft/musicsdk

用法

import { Registry, type Searcher } from '@songloft/musicsdk';

const registry = new Registry();

// 注册自己实现的适配器
registry.register(new MyCustomSearcher());

// 按标识取出
const searcher = registry.get('my-source');
const result = await searcher.search('keyword', 1, 20);

接口能力

Searcher 接口约定的方法(实现方按需实现):

| 能力 | 说明 | |-----|------| | 搜索 | 关键词 → 歌曲列表(分页) | | 歌词 | 按歌曲 ID 获取歌词 | | 歌单 | 按 ID 获取歌单详情 / 列表 | | 排行榜 | 平台榜单聚合 | | 热搜 | 平台实时热搜词 | | 联想词 | 输入框联想 |

SDK 本身不内置任何第三方音源实现,所有适配器由各自的插件项目独立维护。

发布

pnpm release:patch   # 补丁版本
pnpm release:minor   # 次版本
pnpm release:major   # 主版本
pnpm release:dry     # 干跑(不实际执行)

推送 tag 后 GitHub Actions 自动完成 npm 发布。

免责声明

  • 本项目仅供个人学习研究技术使用,严禁任何形式的商业用途,不得使用本代码进行任何形式的牟利 / 贩卖 / 传播。
  • 本项目仅为接口约定层,不内置任何第三方音源实现,也不附带任何第三方音源数据;基于本 SDK 开发的下游插件若涉及版权数据,对于这些数据本项目不拥有所有权,使用者务必在 24 小时内清除使用过程中产生的版权数据。
  • 本项目完全免费,仅供个人私下范围研究交流学习技术使用,对于使用者在违反当地法律法规情况下使用本项目所造成的任何违法违规行为,由使用者自行承担。
  • 若你使用了本项目,即代表你接受以上声明。

License

MIT