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-ig-notify

v0.0.6

Published

Instagram 动态推送

Readme

koishi-plugin-ig-notify

npm

使用登录态 Cookie 访问 https://www.instagram.com/?variant=following,按 koishi-plugin-subscription 的订阅账号推送 Instagram 动态。轮询使用 axios 解析首屏 HTML 内嵌的 Relay feed JSON,动态截图仍使用 Puppeteer。

配置

  • app:subscription 配置中的应用名。
  • cookie:完整 Instagram Cookie 字符串。插件只会从中提取 csrftokends_user_idsessionidrur,其余用户 Cookie 字段会被丢弃。
  • requestProfilePathrequest-profile.json 的外部路径。相对路径按 Koishi 运行目录解析;留空时优先读取运行目录下的 data/ig-notify/request-profile.json,再回退到插件包内文件。
  • feedUrl:动态来源,默认 https://www.instagram.com/?variant=following
  • enablePollingOnStart:启动后初始化去重缓存并开始轮询。
  • cronString:轮询 cron 表达式,默认每 10 分钟检查一次。
  • sendMedia:是否在合并转发中额外发送原图/视频地址,默认关闭。

datrig_didmidps_lps_nig_nrcbdprwd 以及浏览器 UA、Client Hints、语言、DPR 等模拟请求头由 request-profile.json 提供。不要把自定义文件放在 npm 包目录内,否则更新包时会被清除;建议放在 Koishi 运行目录的 data/ig-notify/request-profile.json,或通过 requestProfilePath 指向一个持久化路径。仓库和 npm 包只提供 request-profile.example.json 作为默认回退。

指令

  • instagram.feed [limit]:测试拉取首屏 Following feed。
  • instagram <post>:根据 Instagram 链接或 shortcode 渲染截图。
  • instagram.broadcast <account> <post>:手动推送指定动态。