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

koishi-plugin-nitter

v0.1.0

Published

使用Rettiwt-API订阅推文,并使用nitter渲染

Readme

koishi-plugin-nitter

提供推文订阅、单条推文获取和翻译。

内置 Rettiwt-API 7.1.4 和 x-client-transaction-id 0.3.2。

需要 FFmpeg、Puppeteer 与 subscription 服务;视频使用双方可读取的本地临时目录。交易 ID 资源下载保留 http://127.0.0.1:10808 代理。

推文原图直接从 Nitter 下载后转换为 Base64;视频直接从 Nitter 下载到共享临时目录,发送完成后清理文件。媒体下载不额外使用 proxy 配置。

QQ 平台的推文详细信息使用原生 Markdown 图文混排;首张推文截图保持原样,视频仍单独发送。图片通过 QQ 素材接口上传原始二进制,并使用当前官 bot 专属的 qqbot-media:// 引用,不让 QQ 直接抓取 Nitter 图片。素材在本批次所有目标发送结束后删除,QQ 已转存的历史消息不受影响。长正文自动分卡,素材准备失败时保留原有逐条详细消息。OneBot 的合并转发和共享视频文件路径保持原样。

Markdown 图片读取原图宽高(含 EXIF 旋转方向),按原比例填写 QQ 专用的尺寸参数;展示尺寸限制在 480×420px 以内,小图不放大,上传的原图保持原样。作者使用普通加粗,账号另起一行,作者信息下方保留空行;完整正文链接单独成段,连续图片采用紧凑间距。推文串各帖之间只使用分隔线,不添加编号。这些排版仅用于 QQ Markdown,截图和 OneBot 的合并转发保持原样。

QQ 和 OneBot 的文字详情统一显示正文中链接的完整目标地址,翻译文字同样处理;截图仍沿用页面原有的链接显示文字,话题和用户提及保留原样。详细信息排除引用卡片中的正文、图片和视频,截图中的引用内容及其翻译保持原样。

关闭“是否发送转推”后,自动订阅推送会跳过转发。同批更新先按回复链去掉同一作者的推文串前缀,再进入发送队列:A→B→C 只发送 C;分支末端分别保留,其他作者的帖子分别推送。被合并的前文同样记入既有去重记录,不会在下一轮补发。判断只使用本批次数据,不增加网络请求或数据表。

视频播放列表及分片兼容 Nitter 自带的 /video/enc/ 地址格式。管理指令归入其他菜单分类后,也能正常重载和清理定时任务。

npm