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-ce/plugin-database-memory

v1.1.1

Published

In-memory Database Support for Koishi

Readme

@koishi-ce/plugin-database-memory

简体中文 | English

内存数据库驱动插件,合并自上游 @koishijs/plugin-database-memory 3.7.0 (纯 re-export 薄壳)与 @minatojs/driver-memory 3.7.0(驱动实现)。 纯内存实现、无任何持久化——进程退出数据即失。定位是测试替身与行为 基准:单测中与 plugin-mock 配对构成无 IO 的测试基建;SQLite 驱动的 对拍测试以本驱动为行为参照。

特性

  • 查询求值、排序、分组全量复用 minato 基类的 execute* 系列基建, 与其他 minato 驱动共享同一套查询语义。
  • 驱动内建空操作的事务(withTransaction 失败时整体回滚到快照)与 索引记账(不真正加速查询,仅维护元数据供 getIndexes 等读取)。
  • 无配置项。

用法

bun add @koishi-ce/plugin-database-memory
import memory from "@koishi-ce/plugin-database-memory";

const app = new Context();
app.plugin(memory);

插件默认不在市场展示(koishi.hidden: true,与上游一致),主要供 自动化测试使用。

License

MIT. This package is a community redistribution merge of upstream koishijs/koishi and cordiverse/minato; see NOTICE for copyright attribution.


English

@koishi-ce/plugin-database-memory

English | 简体中文

In-memory database driver plugin, merged from upstream @koishijs/plugin-database-memory 3.7.0 (a pure re-export shim) and @minatojs/driver-memory 3.7.0 (the driver implementation). Purely in-memory with no persistence whatsoever — data is lost when the process exits. It serves as a test double and behavioral baseline: paired with plugin-mock it forms the IO-free testing infrastructure in unit tests, and the SQLite driver uses it as the reference in cross-verification tests.

Features

  • Query evaluation, sorting and grouping fully reuse the execute* primitives from the minato base class, sharing one query semantics with other minato drivers.
  • Ships a no-op transaction (withTransaction rolls back to a snapshot on failure) and index bookkeeping (no actual query acceleration; metadata is maintained only for getIndexes etc.).
  • No configuration options.

Usage

bun add @koishi-ce/plugin-database-memory
import memory from "@koishi-ce/plugin-database-memory";

const app = new Context();
app.plugin(memory);

The plugin is hidden from the market by default (koishi.hidden: true, same as upstream) and is intended mainly for automated testing.

License

MIT. This package is a community redistribution merge of upstream koishijs/koishi and cordiverse/minato; see NOTICE for copyright attribution.