packages/examples/app/capacitor/README.md
This example is a simple chat UI (frontend) talking to a local AgentRuntime backend over HTTP.
AgentRuntime (Bun/Node) using @elizaos/plugin-localdb for persistencefrontend/: Vite React app (Capacitor web app)backend/: Bun HTTP server hosting the elizaOS agentFrom the repo root:
bun install
bunx turbo run build --filter=@elizaos/core --filter=@elizaos/plugin-*
In one terminal:
cd examples/app/capacitor/backend
bun install
bun run dev
In another terminal:
cd examples/app/capacitor/frontend
bun install
bun run dev
Open the UI at http://localhost:5176. The backend defaults to http://localhost:8787.
The backend uses @elizaos/plugin-localdb and writes JSON files to:
LOCALDB_DATA_DIR (if set), otherwise examples/app/capacitor/backend/.eliza-localdbInitialize platforms as usual (not included in this repo snapshot):
cd examples/app/capacitor
bun install
bunx cap add ios
bunx cap add android
bun run build:frontend
bunx cap sync
Then open with:
bunx cap open ios
bunx cap open android
bun run build:frontend (from examples/app/capacitor/)bunx cap sync then bunx cap open ios|android, and build/archive from Xcode / Android Studio