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/shooter

v1.0.0

Published

射手字幕库在 Stream 里的知识。宿主不认识射手,只认识「`subtitle-search` 行上有个 `provides: [search-subtitle]` 的成员」。

Downloads

14

Readme

@streamapp/shooter

射手字幕库在 Stream 里的知识。宿主不认识射手,只认识「subtitle-search 行上有个 provides: [search-subtitle] 的成员」。

管什么

| 东西 | 在哪 | 做什么 | |---|---|---| | 源 shooter-subtitle | manifests.yaml | 视频内容指纹 → 字幕候选 | | adapter shooter-subtitle | activate.ts → adapter.ts | op:'search' 查、op:'fetch' 按 id 取字节 | | 客户端 | client.ts | filehash 算法、接口地址、0xff 无命中协议、主机白名单 |

成员合同

宿主调两个操作:op:'search' 回候选列表,op:'fetch'(入参 { id })回字幕字节;语言探测、转 VTT、排序都是 宿主的事。filehash 要读视频的四段字节:宿主在 op:'search' 里给 size 与 read(offset, length)(网盘 Range 读),本包自己按射手的协议挑偏移、算 MD5。宿主不知道这个算法。

filehash(黄金值可验)

4 段各 4096B 的 MD5 hex 用 ; 连接,偏移 [4096, floor(size/3*2), floor(size/3), size-8192]。 响应单字节 0xff = 无命中(不报错);JSON [{Delay, Files:[{Ext, Link}]}] 每个 Link 一条候选。