How rbrown101010/rileyjarvis works
RileyJarvis is a local Electron AI companion. A user connects voice or types a prompt in the companion UI; the realtime client handles conversation and tool calls, and the UI presents Ricky’s animated state, transcript, and artifacts. Electron exposes privileged tool execution and token creation through a preload bridge. The README also documents search, image and thumbnail generation, local notes/records, and optional macOS computer control. Those capability branches are retained, but unsampled implementation details and some IPC wiring cannot be verified from the excerpts.
Main entry points: main.cjs Electron Main · App.tsx Companion App · realtime.ts Realtime Client · preload.cjs Preload Bridge
Components 14
Companion UI
- Companion App
src/App.tsx - Animated Face
src/components/RickyFace.tsx - Artifact Panel
src/components/ArtifactPanel.tsx
Realtime Conversation
- Realtime Client
src/lib/realtime.ts
Electron Runtime
- Preload Bridge
electron/preload.cjs - Electron Main
electron/main.cjs
Assistant Capabilities
- Web Search
electron/main.cjs - Image Generation
electron/main.cjs - Thumbnail Board
electron/main.cjs - Notes and Records
electron/main.cjs - macOS Control
electron/main.cjs
Other components
- User
- OpenAI Services
- macOS
Connections 14
- User → Companion App: prompts
src/App.tsx - Companion App → Realtime Client: connects and sends
src/App.tsx - Realtime Client → Companion App: returns state and artifacts
src/App.tsx - Companion App → Animated Face: renders
src/App.tsx - Companion App → Artifact Panel: renders
src/App.tsx - Realtime Client → Preload Bridge: invokes bridge
src/lib/realtime.ts - Preload Bridge → Electron Main: dispatches IPC
- Electron Main → OpenAI Services: requests tokens and images
electron/main.cjs - Electron Main → Web Search: dispatches search
electron/main.cjs - Electron Main → Image Generation: dispatches generation
electron/main.cjs - Electron Main → Thumbnail Board: handles board tools
electron/main.cjs - Electron Main → Notes and Records: reads and writes
electron/main.cjs - Electron Main → macOS Control: handles control tools
electron/main.cjs - macOS Control → macOS: controls