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-lo-terr

v2.1.0

Published

泰拉瑞亚主题答题插件,支持视频转GIF、网页渲染等多功能

Readme

lo-terr 选择题插件

一个简洁美观的选择题插件,支持随机抽题、答题记录和多种显示模式。

🚀 重要更新

✅ 零配置使用 - 不再需要配置图床!

  • 直接发送SVG格式图片到QQ
  • 支持PNG显示(QQ自动转换)
  • 无需API密钥或外部服务
  • 即装即用,解决"rich media transfer failed"错误

🎯 功能特点

  • 随机抽题:从题库中随机抽取选择题
  • 答题记录:自动记录用户答题历史和得分
  • 多显示模式:支持图片和Markdown两种显示方式
  • 智能适配:自动适配不同屏幕尺寸
  • 零依赖:无需额外配置图床服务

📋 使用说明

基本指令

| 指令 | 说明 | |---|---| | 抽题 | 随机抽取一道选择题 | | markdown模式 | 切换为Markdown格式显示 | | 图片模式 | 切换为图片格式显示(默认) | | 得分 | 查看个人答题得分 |

答题方式

  1. 使用抽题指令获取题目
  2. 直接回复选项字母(A/B/C/D)即可答题
  3. 系统自动判断对错并给出解释

🎨 显示效果

图片模式

  • 精美的渐变背景设计
  • 清晰的选项布局
  • 支持长文本自动换行

Markdown模式

  • 简洁的文本格式
  • 适合快速浏览
  • 低带宽环境友好

🔧 安装使用

  1. 将插件放入 external/ 目录
  2. 重启 Koishi
  3. 直接使用 抽题 指令

无需任何配置,开箱即用!

📊 题库管理

题库文件位于 questions.json,格式如下:

[
  {
    "id": 1,
    "question": "题目内容",
    "options": ["选项A", "选项B", "选项C", "选项D"],
    "answer": "A",
    "explanation": "答案解释"
  }
]

🛠️ 技术实现

  • 图片生成:使用SVG矢量图,清晰无损
  • 数据存储:内存存储答题记录
  • 错误处理:多重fallback机制
  • 兼容性:支持所有主流QQ客户端

🆕 视频转GIF功能

功能简介

将视频文件自动转换为GIF动图,支持多种视频格式,可自定义转换参数。

支持的格式

  • MP4, AVI, MOV, MKV, WebM, FLV, 3GP, M4V

使用方法

  1. 发送视频文件
  2. 回复消息输入:视频转GIF转GIF

配置选项

videoToGif:
  enabled: true                    # 启用功能
  maxDuration: 10                # 最大处理时长(秒)
  fps: 10                        # GIF帧率(1-30)
  width: 320                     # 输出宽度(100-800px)
  quality: 75                    # 质量(1-100)
  maxFileSize: 10485760          # 最大文件大小(10MB)

📝 更新日志

v2.1.0 (最新)

  • 🆕 新增视频转GIF功能
  • ✅ 支持多种视频格式转换
  • ✅ 可自定义转换参数
  • ✅ 零配置使用

v2.0.0

  • ✅ 移除图床依赖,零配置使用
  • ✅ 优化SVG生成,提升显示效果
  • ✅ 修复"rich media transfer failed"错误
  • ✅ 简化配置,即装即用

v1.0.0

  • 基础选择题功能
  • 图床上传支持
  • 答题记录统计

🤝 参与贡献

欢迎提交 Issue 和 Pull Request 来改进这个插件!