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

@streamapp/xunlei

v1.0.0

Published

迅雷字幕库在 Stream 里的知识。宿主不认识迅雷,只认识「`subtitle-search` 行上有个 `provides: [search-subtitle]` 的成员」。 (网盘那一侧的迅雷是另一回事,不在这个包里。)

Readme

@streamapp/xunlei

迅雷字幕库在 Stream 里的知识。宿主不认识迅雷,只认识「subtitle-search 行上有个 provides: [search-subtitle] 的成员」。 (网盘那一侧的迅雷是另一回事,不在这个包里。)

管什么

| 东西 | 在哪 | 做什么 | |---|---|---| | 源 xunlei-subtitle | manifests.yaml | 视频文件名 → 字幕候选 | | adapter xunlei-subtitle | activate.ts → adapter.ts | op:'search' 查、op:'fetch' 按 id 取字节 | | 客户端 | client.ts | 接口地址、SxxExx 严格过滤、同名折叠、文件名语言线索、字幕 CDN 主机白名单 |

成员合同

宿主调两个操作:op:'search'(入参是视频文件名与大小,回候选列表 { id, name, nameHint, label })与 op:'fetch'(入参 { id },回字幕字节)。语言探测、srt/ass → VTT、排序都是宿主的事。本包的候选 id 就是字幕直链;宿主把它编进 scrape:<源全名>:<base64url(id)> 透传给前端,用户选中时再原样交回 op:'fetch'。取字节前本包自己校验主机 (id 可被客户端伪造,白名单是 SSRF 边界)。

实测约束

接口名字匹配宽松、必串台(查 S08E01 混进 S01E08);languages / score 不可信。唯一可靠的过滤是从文件名 抽 SxxExx 严格比对(电影无 SxxExx 不过滤)。接口出错一律静默降级为空列表(它是没有内嵌轨、也没有外挂字幕时的 最后一条来源,失败不该挡住播放)。