Sanctuary Real Gemma LLM • ElevenLabs
Living CBT Companion & Roommate Pet • 100% Private
🐾 State: Cozy Loaf
Pet Watch: Active (Assertive)
Mood: Cozy & Watching Over You
Next check-in: 35s

Mochi 🐾

Your Proactive On-Screen Roommate & Confidant (Real Gemma 2B + ElevenLabs)

"Hey! I'm sitting right here beside your workspace. Drop your shoulders, take a gentle sip of water, and let me know whenever anything feels heavy."

🌿 Cognitive Thought Unwinder & Distortion Reframer

Our minds often catastrophize when we are tired or stressed. Feed your automatic negative thought into the reframer, and let Google's Gemma open-source LLM dynamically untangle the facts from the fear.

1. Automatic Thought / Inner Critic

Step 1

Write what your inner critic is telling you right now:

Cognitive Distortion Trap (Auto-detected by Gemma):
🌪️ Catastrophizing ⚖️ All-or-Nothing 🔮 Mind Reading 📜 'Should' Rules 💔 Emotional Reasoning

2. Compassionate Truth & Reframes

Step 2
🌿

Your cognitive reframing cards will appear here.

Click "Deconstruct & Reframe" to identify the distortion, see objective evidence, and get an actionable grounding next step generated by Gemma.

Click Start to Begin 0s

💡 Deep 4-7-8 exhalations stimulate the vagus nerve, rapidly slowing heart rate and lowering cortisol levels within 90 seconds.

5-4-3-2-1 Sensory Grounding Technique

Re-anchor your nervous system by naming details in your physical room:

5
4
3
2
1
❤️ Compassionate Support Hub

Immediate Crisis Support & 24/7 Helplines

Sanctuary is a caring self-reflection pet and CBT confidant, but human support is irreplaceable during acute distress.

📞 US / Canada: 988 Lifeline

Call or text 988 (Free, 24/7, confidential).

💬 Crisis Text Line

Text HOME to 741741 to message with a crisis counselor.

🇬🇧 UK: Samaritans & Shout

Call 116 123 or text SHOUT to 85258.

🌍 International Helplines

Visit findahelpline.com for support in 130+ countries.

📔 Private Emotional Vault

Stored 100% locally in your browser storage. Zero tracking. Zero telemetry.

0 Reflections Saved
0 CBT Reframes
0m Breathing Minutes
100% On-Device Privacy

Your saved reflections, voice journal conversations, and CBT reframes will be securely listed here.

Why I Built Sanctuary for My Friend Alex

The Story: Why Alex Needed an Assertive, Private Roommate Companion

A few months ago, my close friend Alex was going through intense burnout and late-night insomnia. Every night around 2:00 AM, spiral thinking would take over — catastrophic thoughts about work, imposter syndrome, and racing anxiety.

Alex wanted an interactive companion to talk through these thoughts and practice Cognitive Behavioral Therapy (CBT). But Alex refused to use closed cloud AI tools. Why? Because Alex didn't want their most vulnerable, painful breakdowns uploaded to third-party corporate servers or used for model training.

"I want to talk to someone when I panic at 3 AM, but I can't stomach the thought of my private breakdowns sitting on an ad-tech server."

— Alex

Furthermore, Alex noticed that when anxiety hits hardest, you often don't have the energy to type out a prompt. You need a gentle companion that is proactively already there — like an open-source desktop pet (inspired by classic Neko and virtual screenmates) sitting quietly beside you, blinking, tracking your cursor, reminding you to unclench your jaw, and offering comforting spoken words with ElevenLabs.

Why Open Innovation Was The Only Ethical Solution

  • Zero-Knowledge Privacy: By running open-weight models like Google's Gemma (Gemma-2-2B-IT / Gemma-2-9B-IT) on-device (via WebGPU & WebLLM), not a single word ever leaves the friend's laptop.
  • Open Pet Behavioral State Machine: Built on open-source finite state machine mechanics with cursor tracking, random loaf naps, gift-bringing, and playful micro-zoomies.
  • Zero Cloud Costs & No Subscriptions: Mental health support shouldn't be gated behind $20/month paywalls. Open models allow anyone to run their own sanctuary forever for $0.
  • Expressive Voice with ElevenLabs: Provides lifelike, soothing, comforting speech that sounds like a caring friend in the room.

🚀 Ready for Hacktoberfest DEV Submission

Copy the complete pre-filled markdown submission template ready with all tags (#devchallenge, #weekendchallenge, #hf26challenge, #gemma, #elevenlabs):

🐾 Mochi is loafing peacefully