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-college-schedule

v1.0.5

Published

这是一个用于管理大学课程表的 Koishi 插件,支持添加、查看、删除课程,并生成课表图片。

Readme

Koishi 课表插件

这是一个用于管理大学课程表的 Koishi 插件,支持添加、查看、删除课程,并生成课表图片。

功能

  1. 添加课程:通过指令添加课程信息,包括课程名、教师、地点、星期、时间范围和周次。
  2. 查看课表:按星期查看课程安排或查看完整课表。
  3. 删除课程:通过课程 ID 删除指定课程。
  4. 清空课表:一键清空所有课程。
  5. 生成课表图片:将课表生成为图片,方便分享或保存。

安装

  1. 确保已安装 Koishi 框架。
  2. 将插件目录放入 Koishi 的插件文件夹中。
  3. 在 Koishi 配置文件中启用插件。

使用说明

指令列表

  • 课表schedule:查看插件使用说明。
  • 添加课表 <课程名> <教师> <地点> <星期> <开始时间> <结束时间> <周次>:添加新课程。
    • 示例:添加课表 高等数学 张老师 教学楼A101 1 08:00 09:40 1-16
  • 查看课表 [星期]:查看指定星期的课程或完整课表。
    • 示例:查看课表 1(查看星期一的课程)
  • 删除课表 <课程ID>:删除指定课程。
    • 示例:删除课表 123456789
  • 清空课表:清空所有课程。
  • 课表图片:生成课表图片。

示例

📚 课表插件使用说明:
添加课表:添加课表 <课程名> <教师> <地点> <星期> <开始时间> <结束时间> <周次>
查看课表:查看课表 [星期]
删除课表:删除课表 <课程ID>
生成图片:课表图片
清空课表:清空课表

示例:添加课表 高等数学 张老师 教学楼A101 1 08:00 09:40 1-16

配置

在插件配置中,可以设置管理员用户 ID 列表(adminUsers),用于权限管理。

{
  "adminUsers": ["123456789"]
}

依赖

  • canvas:用于生成课表图片。
  • koishi:核心框架。

注意事项

  1. 生成图片功能需要安装 canvas 库,并确保字体文件(如 simsun.ttc)可用。
  2. 插件使用数据库存储课表数据,确保数据库已正确配置。

开源协议

MIT