@equationalapplications/core-llm-wiki

中文文档
8.4.0发布于 2026/11/13MITTypeScriptESM + CJS构建来源已验证近 30 天下载 9432

Platform-agnostic TypeScript engine for hybrid LLM memory. OKF v0.2 (llm-wiki/2) conformance with back-compat to v0.1 (llm-wiki/1) and profile-0 bundles. Episodic fact extraction, semantic vector search, multi-agent architectures over SQLite. Bring your o

原始使用文档
文档目录5 节
  1. Features
  2. Installation
  3. Quick look
  4. Monorepo Ecosystem
  5. License

@equationalapplications/core-llm-wiki

Platform-agnostic TypeScript engine for hybrid LLM memory. Features episodic fact extraction, semantic vector search, and multi-agent architectures over SQLite. Bring your own adapter.

npm version npm downloads TypeScript License: MIT

📖 Docs · GitHub · ScopeLab · WikiDemo · Changelog · Issues

Inspired by Andrej Karpathy's LLM Wiki memory spec.

📖 Documentation: equationalapplications.github.io/expo-llm-wiki/packages/core. Start with the Node.js quickstart, or go straight to the API reference.

Features

  • Any SQLite driver. Pure TypeScript with no native code. You pass a small SQLiteAdapter for better-sqlite3, sql.js, expo-sqlite or anything else.
  • Bring your own inference. One generateText function, plus an optional embed for semantic search. The engine owns prompts, JSON parsing and database writes.
  • Hybrid retrieval. Vector cosine ranking with a keyword fallback (SQLite FTS5 or in-memory MiniSearch), tunable per call.
  • Multi-entity reads. Search several namespaces in one pass with tierWeights and tierFloors.
  • GraphRAG. Per-entity seeded ontologies (Strict, Emergent or Off) and SQL-only graph traversal.
  • Maintenance. Librarian, heal, reembed and prune jobs. By default you run them on your own schedule (deferred), or set maintenance: 'auto' to have write() start the librarian and heal (reembed and prune stay on your schedule).
  • Temporal facts, drafts and grounding for trust and provenance.
  • OKF v0.1 and v0.2 import and export.
  • Diagnostics. An optional onDiagnostic hook with typed, content-free reports.

Installation

npm install @equationalapplications/core-llm-wiki
npm install better-sqlite3   # Node.js, or sql.js for the browser

Requires Node.js 20 or later. Using Expo or React? Install expo-llm-wiki or react-llm-wiki instead. Both re-export core.

Quick look

import { createWiki, formatContext } from '@equationalapplications/core-llm-wiki';

const wiki = createWiki(adapter, { llmProvider }); // your SQLiteAdapter and LLMProvider
await wiki.setup();

await wiki.write('user-123', { event_type: 'observation', summary: 'Loves hiking on weekends.' });
await wiki.runLibrarian('user-123'); // extract facts from events
const context = formatContext(await wiki.read('user-123', 'weekend plans'));

The Node.js quickstart shows a complete adapter and llmProvider.

Monorepo Ecosystem

PackagePurpose
@equationalapplications/core-llm-wikiPersistent episodic memory
@equationalapplications/expo-llm-wikiPersistent episodic memory for Expo/React Native
@equationalapplications/react-llm-wikiPersistent episodic memory for Web
@equationalapplications/prisma-outboxSync SQLite outbox events to Prisma
@equationalapplications/core-llm-toolsGemini tool schemas and capability injector
@equationalapplications/core-okfZero-dependency Open Knowledge Format (OKF) v0.1 + v0.2 primitives — parse and produce interoperable knowledge bundles.
@equationalapplications/schema-org-llm-wikiCurated schema.org warm-agent ontology manifest
@equationalapplications/schema-software-orgSoftware-organization executive ontology manifest — 17 node types, 40 edges, warm-agent superset, data-only
@equationalapplications/mcp-serverMCP server exposing SynapseTree memory tools to coding agents

License

MIT


Made with ❤️ by Equational Applications LLC. https://equationalapplications.com/

版本与发布记录

@equationalapplications/core-llm-wiki 共发布 110 个版本,首次发布于 2026/05/03;过去 12 个月发布了 110 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
8.4.0latest2026/11/131 天前
8.3.02026/11/131 天前
8.2.02026/11/122 天前
8.1.02026/11/122 天前
8.0.52026/11/112 天前
8.0.42026/11/112 天前

关于 @equationalapplications/core-llm-wiki 的常见问题

@equationalapplications/core-llm-wiki 是什么?

Platform-agnostic TypeScript engine for hybrid LLM memory. OKF v0.2 (llm-wiki/2) conformance with back-compat to v0.1 (llm-wiki/1) and profile-0 bundles. Episodic fact extraction, semantic vector search, multi-agent architectures over SQLite. Bring your o

如何安装 @equationalapplications/core-llm-wiki?

在项目目录运行 npm install @equationalapplications/core-llm-wiki,或使用 pnpm add / yarn add / bun add。

@equationalapplications/core-llm-wiki 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@equationalapplications/core-llm-wiki 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@equationalapplications/core-llm-wiki 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@equationalapplications/core-llm-wiki 可以商用吗?

@equationalapplications/core-llm-wiki 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@equationalapplications/core-llm-wiki 的下载量有多少?

根据 npm 官方下载统计,@equationalapplications/core-llm-wiki 在 2026/10/14 – 2026/11/12 这 30 天内被下载 9,432 次,日均约 314 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@equationalapplications/core-llm-wiki 还在维护吗?

最新版本 8.4.0 发布于 2026/11/13(1 天前);至今共发布 110 个版本,其中过去 12 个月发布了 110 个;首次发布于 2026/05/03。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。