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-chatluna-social-media-reader

v0.1.8

Published

为 ChatLuna 提供哔哩哔哩与小红书社交媒体读取工具

Readme

ChatLuna Social Media Reader

npm License

为 ChatLuna 提供社交媒体读取工具,支持对主流社交平台内容进行解析、结构化输出与媒体资源提取。

当前支持平台:

  • 哔哩哔哩(bilibili.comb23.tv 等)
  • 小红书(xiaohongshu.comxhslink.com

✨ 功能特性

1. 🔍 内容读取与解析

  • 结构化输出:读取并解析社交媒体内容,返回标题、正文、作者、平台信息。
  • 资源提取:提取原始媒体资源(图片、视频、音频)链接。
  • 存储集成:支持将解析后的内容与媒体资源同步到 chatluna-storage-service(需安装并启用该插件)。

2. ⚡ 高效缓存

  • 数据库缓存:解析结果元信息自动缓存到数据库。
  • 媒体缓存:支持将媒体文件缓存到存储服务。
  • 配置灵活:支持配置缓存策略与过期时间。

3. ⚙️ 平台特定功能

  • B 站支持
    • 视频标签解析:额外输出 tags 字段,并放在视频简介下方,仅保留标签名称。
    • 评论区评论解析:启用 bilibili.parseComments 后,额外解析评论区热评前 N 条并输出到 hotComments 字段,条数可通过 bilibili.commentsCount 控制(默认 5);若存在置顶评论,还会额外输出 pinnedComment 字段。
    • 评论图片支持:图文评论会额外输出 images 字段;若启用媒体缓存,评论图片也会同步缓存到 chatluna-storage-service
    • 分辨率支持:480P、720P(默认 480P)。
    • 音质支持:64K、132K、192K(默认 64K)。
    • 音视频混流:启用 bilibili.mergeAudio 时,自动利用 ffmpeg 服务(需 koishi-plugin-ffmpeg-path)进行混流处理。

⚙️ 主要配置

  • storageService:存储服务相关配置
  • cacheService:缓存配置
  • bilibili:B 站平台特定配置(画质、音质、混流、评论解析、标签解析输出)
  • xiaohongshu:小红书平台特定配置

✅ 使用前置条件

  • 本插件需要配合 chatluna-multimodal-service 使用,由其负责上下文注入。
  • 建议安装并启用 koishi-plugin-chatluna-storage-service 以获得完整的媒体缓存能力。
  • 若需使用 B 站视频音频混流,请确保安装并配置了 koishi-plugin-ffmpeg-path

🛡️ 使用声明

  • 本项目仅供学习、研究与合规开发使用。
  • 使用者应自行遵守各社交媒体平台的《用户协议》与《robots.txt》规定。
  • 请勿将本插件用于任何违法、违规、侵犯版权或违反平台规则的行为,因不当使用产生的任何后果由使用者自行承担。

🤝 贡献

欢迎提交 Issue 或 Pull Request 来改进代码。

🙏 致谢