Patient-centric AI memory companion curated collaboratively by a patient's Care Circle (family members, friends, home aides, and care specialists), combining personalized AI replicas, folders of uploaded journals/PDFs, private family photo galleries, and Care Circle moderation.
- server/: Unified Go backend (
module AlphaTechini/memory-lane) deployed as a single stateless container on GCP Cloud Run. Includes swappable provider interfaces for LLM (OpenAI default, model and reasoning effort env-configurable), Embeddings (text-embedding-3-smallwith lexical fallback), Media (Cloudinary), Email (Cloudflare Email Sending REST API), OAuth (Firebase RS256 public certs), and Storage (MongoDB). - Frontend/: SvelteKit + Tailwind CSS web app (
pnpm) for Care Circle contributors and patients, with an HTTP-only cookie proxy to the Go API.
(Legacy Node/Fastify backend/ is scheduled for retirement once live GCP verification completes.)
- Patient-Centric Care Circle: Primary caretakers invite patients (passwordless email-only access) plus multi-role Care Circle contributors (
clinician,home_aide,family,friend) into shared, isolated patient workspaces. - Journals, PDFs, DOCX & Folders: Upload individual documents or entire nested desktop folders (
webkitdirectory); pure-Go extraction, paragraph-aware chunking, optional vector embeddings, and full CRUD. - 1-Call Pre-Fetched Hybrid RAG Chat: Pre-fetches core identity facts and top-K hybrid (vector + lexical + importance) memories before calling the configured LLM, with optional
get_image(inline gallery photos) andstore_memorytools. - Care Circle Review Queue: Structured background extraction proposes new identity facts and memories for caretaker approval before permanent commit.
- Family Photo Gallery: Care Circle albums and photos hosted via swappable
media.Store(Cloudinary default).
cd server
Copy-Item .env.example .env
go run ./cmd/serverDefault address: http://localhost:8080
cd Frontend
pnpm install
pnpm run devDefault address: http://localhost:5173
cd server
gcloud run deploy memory-lane-api --source . --region europe-west1 --allow-unauthenticatedConfigure secrets/env vars from server/.env.example in Cloud Run / Secret Manager. Never commit .env files.