How rayhanrinzan/keepsake works
Keepsake’s primary workflow is worn-camera capture, item detection and stabilization, persistent last-sighting/photo memory, then retrieval through web or mobile and voice. Its optional Photon integration sends reminders by iMessage. The repository also contains Last Seen, a separate wearable-memory app with its own camera loop, memory, assistant, proactive prompts, and dashboard. Unexcerpted subsystem links are omitted unless the README or source index supports them.
Main entry points: main.py Keepsake API · vision.py Item detection · vision_loop.py Vision and tracking loop · app.py Dashboard and API
Components 27
Keepsake backend
- Camera capture
backend/cameras.py - Item detection
backend/vision.py - Detection verification
backend/verify.py - Tracked-item catalog
backend/catalog.py - Observation events
backend/events.py - Sighting memory
backend/memory.py - Photo snapshots
backend/snapshots.py - SQLite records
backend/database.py - Keepsake API
backend/main.py - Reminder engine
backend/reminders.py
Keepsake clients
- Web app
frontend/src/App.tsx - Web API client
frontend/src/lib/api.ts - Web voice
frontend/src/lib/voice.ts - Mobile app
mobile/src/app/index.tsx - Mobile API client
mobile/src/lib/api.ts
iMessage reminders
- Photon agent
integrations/photon/src/index.ts - Reminder recipient
Last Seen wearable
- Last Seen app
lastseen-wearable/lastseen/__main__.py - Camera capture
lastseen-wearable/lastseen/capture/camera.py - Vision and tracking loop
lastseen-wearable/lastseen/engine/vision_loop.py - Wearable configuration
lastseen-wearable/lastseen/config.py - Memory store
lastseen-wearable/lastseen/memory/store.py - Clip memory
lastseen-wearable/lastseen/memory/clips.py - Question answering
lastseen-wearable/lastseen/brain/answer.py - Lost-sight prompts
lastseen-wearable/lastseen/proactive/lost_sight.py - Dashboard and API
lastseen-wearable/lastseen/server/app.py
Other components
- Camera wearer
Connections 29
- Camera wearer → Camera capture: wears camera
README.md - Camera capture → Item detection: sends frames
README.md - Item detection → Detection verification: checks detections
README.md - Item detection → Sighting memory: updates sightings
README.md - Item detection → Observation events: emits observations
README.md - Item detection → Photo snapshots: captures photos
README.md - Sighting memory → SQLite records: persists records
backend/main.py - Observation events → SQLite records: stores events
README.md - Photo snapshots → SQLite records: stores metadata
backend/database.py - Keepsake API → SQLite records: reads records
backend/main.py - Keepsake API → Sighting memory: clears memory
backend/main.py - Keepsake API → Photo snapshots: serves photos
backend/main.py - Keepsake API → Reminder engine: uses reminders
backend/main.py - Web app → Web API client: loads data
frontend/src/App.tsx - Web app → Web voice: handles voice
frontend/src/App.tsx - Web API client → Keepsake API: requests data
README.md - Mobile app → Mobile API client: loads items
mobile/src/app/index.tsx - Mobile API client → Keepsake API: requests data
mobile/src/lib/api.ts - Photon agent → Keepsake API: retrieves memories
- Photon agent → Reminder recipient: sends reminders
README.md - Camera capture → Vision and tracking loop: provides frames
lastseen-wearable/lastseen/__main__.py - Vision and tracking loop → Memory store: stores tracking
- Vision and tracking loop → Clip memory: uses clips
lastseen-wearable/lastseen/engine/vision_loop.py - Vision and tracking loop → Wearable configuration: uses settings
lastseen-wearable/lastseen/engine/vision_loop.py - Dashboard and API → Memory store: serves item data
- Dashboard and API → Clip memory: serves clips
- Dashboard and API → Question answering: routes questions
- Lost-sight prompts → Question answering: uses intents
lastseen-wearable/lastseen/proactive/lost_sight.py - Last Seen app → Dashboard and API: exposes dashboard
README.md