Building Sanctuary AI: A Privacy-First AI Journal with Gemini and Google Cloud Run
Personal journaling is useful, but it can be difficult to turn a collection of thoughts into meaningful insights or actionable goals. I wanted to experiment with a different approach: what if an AI could act as a reflection companion while keeping each user's journal data isolated and securely managed? That idea became Sanctuary AI, a cloud-native personal reflection and journaling application…
Sanctuary AI is a cloud-based personal reflection and journaling application that prioritizes user privacy and data security. Utilizing Google Cloud Run, Firebase Authentication, Cloud Firestore, and Google Gemini, the platform enables users to write and save personal reflections, create entries via voice, analyze thoughts with AI, explore ideas through Socratic questions, receive alternative perspectives and cognitive reframing, engage with various AI companion personas, ask questions about past journal entries, convert insights into actionable goals, track tasks, and review recurring themes and insights.
By organizing user data into user-scoped Firestore collections and employing strict Firestore security rules, Sanctuary AI ensures that each user's data remains isolated and securely managed. The AI capabilities are tailored to enhance the reflection process, providing key themes, Socratic questions, alternative perspectives, summaries, and action items.
Additionally, the platform supports voice journaling, allowing users to quickly capture thoughts using their device's microphone. To ensure resilience, the AI integration incorporates fallback mechanisms in case of API latency or failures, preventing the entire application from becoming unavailable. Privacy is a core principle of Sanctuary AI, with careful consideration given to data isolation, encryption, and user control over their personal information.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.