kimi-code/packages/minidb/package.json
haozhe.yang ca5aea91b6 feat(minidb): add embedded key-value database package
- add @moonshot-ai/minidb: pure-Node.js embedded KV store mixing
  Redis-style in-memory access with WAL + snapshot persistence
- implement core engine: codec, store, wal, snapshot, recovery,
  compaction, lockfile, skiplist
- add indexing: dt-index, compound-index, text-index/postings,
  index-manager, query engine
- add server, value-reader, crc32 utilities
- include unit/e2e tests plus fuzz/crash-recovery/soak suites and
  session-store benchmarks
- register package in flake.nix and pnpm-lock.yaml
2026-06-28 16:30:10 +08:00

48 lines
1.1 KiB
JSON

{
"name": "@moonshot-ai/minidb",
"version": "0.1.0",
"private": true,
"description": "A pure-Node.js embedded key-value database mixing Redis-style in-memory KV with SQLite-style durable persistence (WAL + snapshot).",
"license": "MIT",
"author": "Moonshot AI",
"homepage": "https://github.com/MoonshotAI/kimi-code/tree/main/packages/minidb#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/MoonshotAI/kimi-code.git",
"directory": "packages/minidb"
},
"bugs": {
"url": "https://github.com/MoonshotAI/kimi-code/issues"
},
"keywords": [
"kimi",
"database",
"key-value",
"embedded",
"wal",
"snapshot"
],
"files": [
"dist"
],
"type": "module",
"imports": {
"#/*": [
"./src/*.ts",
"./src/*/index.ts"
]
},
"exports": {
".": {
"types": "./src/index.ts",
"default": "./src/index.ts"
}
},
"scripts": {
"build": "tsdown",
"typecheck": "tsc -p tsconfig.json --noEmit",
"test": "vitest run",
"bench": "node --import tsx bench/bench.ts",
"clean": "rm -rf dist"
}
}