expo-llm-wiki
@equationalapplications/expo-llm-wiki · npm · source
npx expo install expo-sqlite expo-cryptonpm install @equationalapplications/expo-llm-wikiWhat it adds on top of core
Section titled “What it adds on top of core”createWiki(db, options)takes anexpo-sqliteSQLiteDatabasedirectly. You don’t write an adapter.- Secure IDs on Hermes.
expo-crypto’sgetRandomValuesis registered when the package is imported, from the main entry or the/factorysubpath. - Every React hook and
WikiProviderfromreact-llm-wiki, re-exported. - Everything from core, re-exported, so you only need one import path.
import * as SQLite from 'expo-sqlite';import { createWiki, WikiProvider, useMemoryRead, formatContext } from '@equationalapplications/expo-llm-wiki';
const db = await SQLite.openDatabaseAsync('app.db'); // or openDatabaseSyncconst wiki = createWiki(db, { llmProvider });await wiki.setup();Peer dependencies
Section titled “Peer dependencies”| Package | Range |
|---|---|
expo-sqlite |
^14 || ^15 || ^55 || ^56 || ^57 || ^58 |
expo-crypto |
>=12 |
react |
>=17 |
Start with the Expo quickstart.