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

v1.1.0

Published

Telegram 的站点知识住在这个包里:一份桌面 recipe(`telegram-search`,经 Stream Desktop 读 Telegram 客户端的 a11y 树,在指定频道里搜关键词)+ 一格代码槽位。

Readme

@streamapp/telegram — Telegram

Telegram 的站点知识住在这个包里:一份桌面 recipe(telegram-search,经 Stream Desktop 读 Telegram 客户端的 a11y 树,在指定频道里搜关键词)+ 一格代码槽位。

能力

| 能力 | 谁提供 | 说明 | |---|---|---| | 采集频道内搜索结果 | recipe telegram-search(kind:desktop) | 一条消息的整段正文落在 content 字段,标题由 recipe 的 map 抽 | | 渲染消息 | normalizer telegram(normalizer.ts) | 资源频道消息 → 链接卡(archetype:'link'):网盘链接列成卡片、正文只留「描述:」那段 | | 资源搜索里怎么认 | package.json#stream.searchSources | 展示键 telegram、查询参数 q、形状 digest(一条消息 = 片名 + 一串网盘链接的合集体)。它不是网络请求,是点窗口、等渲染,一趟约 12s,所以 recipe 自己申报 member_timeout_ms: 25000 |

normalizer 自带一张网盘域名 → 中文名表(夸克 / 百度 / 阿里 / 天翼 / UC / 115 / 123 / 移动 / 迅雷 / PikPak), 只用来给链接卡起名;带提取码的写成 夸克网盘 · 提取码 xxxx。认不出的域名原样显示 URL,不安「网盘」名头。 抽不到「描述:」(广告条、频道互推)就退回整段原文,不产出空卡;标题只认 recipe 抽好的那个。

整段正文字段叫 content 不是随便挑的:资源搜索的解析器按 item 形状认领,认的就是 content 里的下载链接。 同一段正文有两个消费者(收件箱渲染 + 搜索解析器),字段名必须是两者都认的那一个。

存量条目

Content 在采集期落库,这次归包 normalizer 逻辑没变,存量条目不用重跑。

发布

代码槽位由 tsdown 打成单文件 dist/index.js(package.json#stream.code.entry);构建在仓库根 pnpm packages:bundle(或包内 pnpm bundle),prepack 闸核产物。内置层不读 dist——它直接 import ./activate.ts(packages/index.ts)。bump version 合 main 后由 CI 发 npm。