Attachly
Attachment style journal and AI relationship coach with mood charts, guided journaling and a message guide. React + Capacitor + Supabase.
Attachly is a complete relationship wellness app template: attachment-style profiles for you and your partner, guided journaling, mood and growth charts, an AI coach chat, AI message analysis and AI daily suggestions. Built with React 18, TypeScript, Vite, Tailwind CSS and shadcn/ui, backed by Supabase, and shipped as a native iOS app through Capacitor 7 (plus PWA support).
Highlights
- Onboarding captures your attachment style, then your partner's; both power the AI features
- Dashboard with streak, stats, charts, AI daily suggestions and AI relationship insights
- Guided journal entries with emotion picker, growth quality toggles and mood scoring
- Growth trends chart: mood over time plus vulnerability, intimacy, peacefulness and honesty radar
- AI Message Guide: paste your partner's message and your draft reply, get patterns, suggestions and an improved response
- AI Coach Chat: a persisted, attachment-aware conversation with full chat UX
- Settings to update both styles, open legal pages or delete the account
- In-app Privacy Policy and Terms of Use screens
- In-app account deletion, fully implemented server-side (Apple guideline 5.1.1(v) ready)
Technology
- React 18 + TypeScript + Vite web layer with a native Capacitor 7 iOS shell
- Supabase auth and Postgres: user_profiles, partner_profiles, journal_entries and coach_messages tables, all covered by Row Level Security
- 5 Edge Functions: coach-chat, analyze-message, daily-suggestions, journal-insights and delete-account
- AI calls run server-side through an OpenAI-compatible endpoint (the template ships wired to the Lovable AI Gateway with google/gemini-2.5-flash); swapping to your own provider is a two-line change
- One-file re-theming: all colors are CSS variables in src/index.css
Requirements
- Free Supabase account: run the included migration SQL, then paste your project URL and anon key into .env
- For the 4 AI features only: an AI gateway or provider key set as a Supabase secret. The app stays fully functional for journaling, charts, profiles and settings without it. External AI services are third parties and their usage costs are not covered by the purchase price
- macOS with Xcode 15+, CocoaPods and Node 18+ to build for iOS
What You Get
- Full readable React + TypeScript source: onboarding, dashboard, journal, message guide, coach chat, settings and legal pages
- Supabase migration SQL with complete Row Level Security policies
- All 5 Edge Functions, including the server-side account deletion function
- Ready-to-build Xcode project with app icon and splash assets
- documentation.html with embedded screenshots: setup, configuration, re-theming, customization, App Store submission checklist and troubleshooting
- 11 app screenshots
Please note: this is a source code template, not a licensed therapist or medical device. Building and customizing it requires basic knowledge of React and Node. If you have questions, use the contact form on the site, I usually reply within 24 hours.
