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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@a2672172829/koishi-plugin-bilibili-parser

v1.0.0

Published

解析 bilibili 链接、个人动态和专栏内容

Readme

@a2672172829/koishi-plugin-bilibili-parser

npm

一个用于解析 bilibili 链接、个人动态和专栏内容的 Koishi 插件。

功能特性

  • ✅ 解析 bilibili 视频链接(支持 BV 号和 av 号)
  • ✅ 解析 bilibili 个人动态
  • ✅ 解析 bilibili 专栏文章
  • ✅ 自动识别消息中的链接并解析
  • ✅ 支持短链接(b23.tv)解析
  • ✅ 显示视频/动态/专栏的详细信息和封面图

安装

npm install @a2672172829/koishi-plugin-bilibili-parser

或使用 Koishi 控制台直接安装。

配置项

| 配置项 | 类型 | 默认值 | 说明 | | --- | --- | --- | --- | | autoParseLinks | boolean | true | 是否自动解析消息中的 bilibili 链接 | | parseDelay | number | 1000 | 解析延迟(毫秒),避免频繁请求 |

使用方法

命令

bili.video

解析 bilibili 视频链接。

bili.video <url>

示例:

bili.video BV1xx411c7XZ
bili.video https://www.bilibili.com/video/BV1xx411c7XZ
bili.video av170001

bili.dynamic

解析 bilibili 动态。

bili.dynamic <id>

示例:

bili.dynamic 123456789
bili.dynamic https://www.bilibili.com/opus/123456789
bili.dynamic https://b23.tv/abc123

bili.article

解析 bilibili 专栏文章。

bili.article <id>

示例:

bili.article cv12345678
bili.article https://www.bilibili.com/read/cv12345678
bili.article 12345678

自动解析

autoParseLinks 配置为 true 时,插件会自动识别并解析消息中的 bilibili 链接。

支持的链接格式:

  • 视频:https://www.bilibili.com/video/BV...BV...av...
  • 动态:https://www.bilibili.com/opus/...https://b23.tv/...
  • 专栏:https://www.bilibili.com/read/cv...cv...

显示效果

视频信息

  • 标题
  • UP 主
  • 时长
  • 发布时间
  • 播放/点赞/投币/收藏/分享数据
  • 视频简介(前100字符)
  • 封面图
  • 视频链接

动态信息

  • 作者
  • 发布时间
  • 动态内容(前200字符)
  • 点赞/转发数据
  • 图片(如有)
  • 动态链接

专栏信息

  • 标题
  • 作者
  • 发布时间
  • 阅读/点赞/收藏/投币数据
  • 文章摘要(前150字符)
  • 封面图(如有)
  • 专栏链接

开发

# 安装依赖
npm install

# 构建
npm run build

许可证

MIT License

相关链接