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-finance-manager

v1.0.1

Published

一个功能完整的 Koishi 记账插件,支持数据持久化存储、预算管理、可视化报表等功能。

Readme

财务管理插件 (index.ts)

功能概述

该文件是一个基于 Koishi 框架的财务管理插件,支持以下功能:

  1. 记录支出:通过 支出 命令记录消费记录。
  2. 记录收入:通过 收入 命令记录收入记录。
  3. 查询账单:通过 账单 命令查询历史记录。

主要命令

  • 支出 <金额> <分类> [描述]:记录一笔支出。
    • 示例:支出 25 餐饮 午餐
  • 收入 <金额> <分类> [描述]:记录一笔收入。
    • 示例:收入 5000 工资 月薪
  • 账单 [天数]:查询指定天数内的账单记录。
    • 示例:账单 7(查询最近7天的记录)

配置项

插件支持以下配置项:

  1. 货币符号:默认为 ¥
  2. 默认分类:提供常见的分类选项,如餐饮、交通、购物等。
  3. 是否允许负金额:默认为 false
  4. 每日记录上限:默认为 50 条。

数据库

插件使用 Koishi 的数据库功能存储账单记录,表名为 accounting_records

使用示例

  1. 记录一笔支出:
    支出 25 餐饮 午餐
  2. 记录一笔收入:
    收入 5000 工资 月薪
  3. 查询最近7天的账单:
    账单 7

注意事项

  • 金额必须大于0。
  • 分类必须为默认分类之一或自定义分类。
  • 每日记录数量受配置限制。