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

lx-user-api-env

v0.1.7

Published

提供了在 nodejs 环境下加载洛雪音乐源的实现,及在 Worker 内隔离加载音乐源的方法。见下。

Readme

lx-user-api-env

提供了在 nodejs 环境下加载洛雪音乐源的实现,及在 Worker 内隔离加载音乐源的方法。见下。

经测试目前已经可以兼容加载大部分音乐源,但仍有少部分音乐源在一些情况下有异常。 异常情况多为无法初始化、请求音乐时出现仅在本环境出现的报错。本项目会尽可能消除音乐源在不同环境下的行为差异。 但大部分常见可用音乐源内有高强度反混淆、jsvmp壳,因此排查行为差异成因的难度较高。 如果您已经明确某个音乐源行为差异的原因,可以提交issue说明。

提供了:

  • class UserApi
    • 实现了加载音乐源
  • class WorkerUserApi
    • 封装 Worker 内的 UserApi,属性、方法与 UserApi 一致
    • 须提供运行有 UserApiWorkerHost 的 Worker
  • class WorkerUserApiManager
    • 自动管理 WorkerUserApi 与其所需的 Worker

内部类、方法、接口:

  • class UserApiWorkerHost
    • 运行在 Worker 内的类
  • interface IUserApi
    • 音乐源类接口,UserApiWorkerUserApi 实现该接口
  • interface LxUserApiHandlers
    • 音乐源的事件处理函数
  • interface LxUserApiOptions
    • UserApi 的配置
  • interface ActionMessage
    • 用以 WorkerUserApiUserApiWorkerHost 通信
  • interface EventMessage
    • 用以 UserApiWorkerHostWorkerUserApi 通信
  • method extractMetadata
    • 提取音乐源的元数据
  • method request
    • 提供给音乐源内部的请求方法
  • method createUtils
    • 创建音乐源的辅助工具