@equationalapplications/expo-llm-wiki
Local-first LLM memory for Expo and React Native. Combines the core semantic search and extraction engine with expo-sqlite and ready-to-use React hooks.
📖 Docs · GitHub · ScopeLab · WikiDemo · Changelog · Issues
Inspired by Andrej Karpathy's LLM Wiki memory spec.
📖 Documentation: equationalapplications.github.io/expo-llm-wiki/packages/expo. Start with the Expo quickstart.
Features
- Expo-ready. Core plus an
expo-sqliteadapter, so there's nothing to wire up. - Hermes-ready. Secure record IDs through
expo-crypto, registered automatically on import. Nocryptopolyfill needed. - React hooks.
WikiProvider,useMemoryRead,useWikiTraversaland the rest ofreact-llm-wiki, re-exported. - Everything in core. Semantic and keyword search, multi-entity reads, seeded ontologies and GraphRAG, background maintenance, and OKF import and export.
Installation
npx expo install expo-sqlite expo-crypto
npm install @equationalapplications/expo-llm-wiki
Use npx expo install so Expo picks native builds that match your SDK.
| Peer dependency | Range |
|---|---|
expo-sqlite | ^14 || ^15 || ^55 || ^56 || ^57 || ^58 |
expo-crypto | >=12 |
react | >=17 |
Quick look
import * as SQLite from 'expo-sqlite';
import { createWiki, WikiProvider, useMemoryRead } from '@equationalapplications/expo-llm-wiki';
const db = await SQLite.openDatabaseAsync('app.db');
const wiki = createWiki(db, { llmProvider }); // pass the expo-sqlite database directly
await wiki.setup();
function App() {
const { data, isPending } = useMemoryRead('user-123', 'preferences');
// ...
}
// <WikiProvider wiki={wiki}><App /></WikiProvider>
See the Expo quickstart for a complete app, including the llmProvider. On React Native, give embed an absolute URL.
Monorepo Ecosystem
| Package | Purpose |
|---|---|
| @equationalapplications/core-llm-wiki | Persistent episodic memory |
| @equationalapplications/expo-llm-wiki | Persistent episodic memory for Expo/React Native |
| @equationalapplications/react-llm-wiki | Persistent episodic memory for Web |
| @equationalapplications/prisma-outbox | Sync SQLite outbox events to Prisma |
| @equationalapplications/core-llm-tools | Gemini tool schemas and capability injector |
| @equationalapplications/core-okf | Zero-dependency Open Knowledge Format (OKF) v0.1 + v0.2 primitives — parse and produce interoperable knowledge bundles. |
| @equationalapplications/schema-org-llm-wiki | Curated schema.org warm-agent ontology manifest |
| @equationalapplications/schema-software-org | Software-organization executive ontology manifest — 17 node types, 40 edges, warm-agent superset, data-only |
| @equationalapplications/mcp-server | MCP server exposing SynapseTree memory tools to coding agents |
License
MIT
Made with ❤️ by Equational Applications LLC. https://equationalapplications.com/