@equationalapplications/react-llm-wiki

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

In-browser LLM memory for React web apps. Bring your own SQLite adapter (e.g., sql.js WebAssembly) for a complete, zero-server RAG experience.

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

@equationalapplications/react-llm-wiki

In-browser LLM memory for React web apps. Bring your own SQLite adapter (e.g., sql.js WebAssembly) for a complete, zero-server RAG experience.

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/react. Start with the React quickstart, or see the hooks reference.

Features

  • Runs in the browser. SQLite compiled to WebAssembly (sql.js) means no server is needed. Any other SQLiteAdapter works too.
  • Reactive reads. useMemoryRead refetches when the entity, query or options change.
  • Mutation hooks. useWikiWrite, useWikiIngest, useWikiForget, useWikiMaintenance, useWikiExport and more.
  • GraphRAG. useWikiTraversal plus formatGraphContext for prompt-ready graph context, and useOntologyManifest / useSetOntologyManifest for seeded ontologies.
  • Live job status with useEntityStatus.
  • Everything in core, re-exported in full.

Installation

npm install @equationalapplications/react-llm-wiki sql.js

Peer dependency: react >=17. Requires Node.js 20 or later for tooling and server-side use.

Quick look

import { useMemoryRead } from '@equationalapplications/react-llm-wiki';

// Inside a <WikiProvider wiki={wiki}> tree:
function Preferences() {
  const { data, isPending, error } = useMemoryRead('user-123', 'preferences');
  if (isPending) return <p>Loading…</p>;
  if (error) return <p>{error.message}</p>;
  return <ul>{data?.facts.map((f) => <li key={f.id}>{f.title}</li>)}</ul>;
}

The React quickstart shows the sql.js adapter and WikiProvider setup. Not using React? See vanilla JavaScript.

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/react-llm-wiki 共发布 108 个版本,首次发布于 2026/05/03;过去 12 个月发布了 108 个版本。最新版本附带 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/react-llm-wiki 的常见问题

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

In-browser LLM memory for React web apps. Bring your own SQLite adapter (e.g., sql.js WebAssembly) for a complete, zero-server RAG experience.

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

在项目目录运行 npm install @equationalapplications/react-llm-wiki,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(>=17)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

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

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

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

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

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

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

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

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

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

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

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

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