- Journal draft content, title, mood
- Protocol reflections
- Growth notes
- Wealth notes
- Theme (light/dark/auto)
- Last viewed tab
- Compact mode
- Animations enabled
- Font size
- Accent color
- Total days tracked
- Current & longest streak
- Favorite time to log
- Most productive day
- Total journal entries & transactions
- Average completion rate
- Display name
- Favorite emoji
- Daily goal text
- Custom greeting
- Notification settings
- Reminder time
behaviorPatterns: {
// Writing patterns
averageJournalWordsPerEntry: 0,
longestJournalEntry: 0,
shortestJournalEntry: 0,
favoriteJournalMood: "😊",
moodDistribution: {},
// Time patterns
mostActiveHour: "09:00", // When you most often use the app
averageSessionDuration: 0, // minutes
peakProductivityWindow: "morning", // "morning", "afternoon", "evening"
// Completion patterns
hardestPhase: "arena", // Phase with lowest completion
easiestPhase: "morningIgnition",
mostSkippedTask: null,
mostCompletedTask: null,
// Financial patterns
averageTransactionAmount: 0,
biggestExpenseCategory: "Food",
savingsRate: 0, // percentage
monthlyAverageSpending: 0,
}goals: {
// Current goals
activeGoals: [
{
id: "study-cert",
title: "Complete GCP Certification",
category: "growth",
targetDate: "2025-02-01",
progress: 45, // percentage
milestones: [
{ id: 1, title: "Finish course", done: true },
{ id: 2, title: "Practice exams", done: false },
],
},
],
// Achievements (unlockable badges!)
achievements: [
{
id: "first-week",
title: "First Week Streak",
description: "Complete 7 days in a row",
unlockedAt: "2025-12-20",
emoji: "🔥",
},
{
id: "journal-warrior",
title: "Journal Warrior",
description: "Write 50 journal entries",
progress: 23,
target: 50,
emoji: "📝",
},
],
// Level system
level: 5,
xp: 1250,
nextLevelXP: 1500,
}insights: {
// Weekly summaries (last 12 weeks)
weeklyTrends: [
{
weekStart: "2025-12-23",
avgCompletion: 0.85,
totalTransactions: 23,
journalEntries: 4,
mood: "positive",
},
],
// Month-over-month comparisons
monthlyProgress: {
thisMonth: { completion: 0.82, netWorth: 250000 },
lastMonth: { completion: 0.75, netWorth: 240000 },
change: "+9.3%",
},
// Best performance
personalBests: {
longestStreak: 45,
highestDailyCompletion: 1.0,
biggestSingleDaySavings: 5000,
mostProductiveWeek: "2025-12-16",
},
}aiInsights: {
// Generated weekly by LLM analyzing your data
lastGenerated: "2025-12-30",
weeklyReflection: "You've been crushing your morning routine this week! But your evening shutdown needs work. Consider setting a phone alarm.",
recommendations: [
"Your wealth data shows overspending on weekends. Try the '48-hour rule' before purchases.",
"You skip 'Learn Stuff' 60% of the time. Maybe switch to podcast learning?",
],
predictions: {
likelyToComplete: ["Morning Ignition", "Maintenance"],
needsSupport: ["Arena"],
estimatedMonthlyNetWorth: 260000,
},
patterns: [
"You journal more on Tuesdays and Thursdays",
"Friday is your weakest day (avg 65% completion)",
"When you skip breakfast, completion drops 23%",
],
}emotionalIntelligence: {
// Mood correlations
moodVsCompletion: {
"😊": 0.92, // Happy days = 92% completion
"💭": 0.68, // Contemplative days = 68%
"🔥": 0.98, // Motivated days = 98%
},
// Stress indicators
stressLevel: "low", // derived from journal analysis
burnoutRisk: 0.15, // 0-1 scale
// Gratitude tracking
gratitudeCount: 23, // Times you expressed gratitude in journal
topGratitudes: ["Family", "Health", "Progress"],
}contextData: {
// Location patterns (if GPS permission granted)
commonLocations: [
{ name: "Home", logs: 150 },
{ name: "Office", logs: 80 },
{ name: "Coffee Shop", logs: 12 },
],
productivityByLocation: {
"Home": 0.85,
"Office": 0.92,
"Coffee Shop": 0.78,
},
// Weather correlation (via API)
completionBySky: {
"sunny": 0.88,
"rainy": 0.72,
"cloudy": 0.80,
},
// Time of year insights
seasonalPatterns: {
bestMonth: "October",
worstMonth: "December",
},
}social: {
// Accountability partners
accountabilityPartners: [
{
id: "user123",
name: "Kuya",
sharedGoals: ["fitness"],
mutualStreak: 12,
},
],
// Public commitments
publicGoals: [
{
goal: "No Porn 90 Days",
startDate: "2025-12-01",
currentDay: 30,
visibility: "anonymous", // or "friends" or "public"
},
],
// Badges to share
sharedAchievements: ["first-month", "journal-warrior"],
}learning: {
// Study sessions detail
studySessions: [
{
date: "2025-12-30",
duration: 90, // minutes
topic: "Cloud Architecture",
focusScore: 0.85, // derived from breaks/distractions
notes: "Learned about VPCs and subnets",
},
],
// Skill progression
skills: [
{
name: "Cloud Computing",
level: "intermediate",
hoursInvested: 120,
lastPracticed: "2025-12-30",
growthRate: "+15% this month",
},
],
// Reading tracking
books: [
{
title: "Atomic Habits",
author: "James Clear",
status: "reading", // "completed", "reading", "backlog"
progress: 45, // percentage
startedOn: "2025-12-15",
insights: "Implementation intentions = powerful!",
},
],
}wealthAnalytics: {
// Spending predictions
predictedMonthlySpend: 25000,
spendingTrend: "increasing", // or "decreasing" or "stable"
// Category budgets
budgets: [
{
category: "Food",
budget: 10000,
spent: 7500,
remaining: 2500,
onTrack: true,
},
],
// Savings goals
savingsGoals: [
{
name: "Emergency Fund",
target: 100000,
current: 45000,
monthlyContribution: 5000,
estimatedCompletion: "2026-05-01",
},
],
// Financial health score
healthScore: 72, // 0-100
factors: {
savingsRate: "good",
debtToIncome: "excellent",
emergencyFund: "needs work",
},
}gamification: {
// Daily challenges
dailyChallenge: {
id: "no-snooze",
title: "No Snooze Challenge",
description: "Wake up on first alarm",
xpReward: 50,
completedToday: false,
},
// Streaks for everything
streaks: {
overall: 45,
morningRoutine: 38,
journaling: 20,
noSkippedMeals: 12,
onBudget: 7,
},
// Power-ups
powerUps: [
{
id: "focus-boost",
name: "Focus Boost",
effect: "2x XP for next study session",
usesRemaining: 3,
},
],
}- Behavior Patterns - Most valuable for LLM insights
- Goals & Milestones - High user engagement
- Historical Insights - Easy to implement with existing data
- AI-Generated Wisdom - Requires LLM integration
- Emotional Intelligence - Powerful but needs analysis
- Advanced Wealth Insights - Great for power users
- Context Awareness - Needs permissions & APIs
- Social & Accountability - Requires backend infrastructure
- Learning & Growth Detail - Nice-to-have expansion
- Gamification - Fun but complex to balance
- UI preferences (instant access)
- Current drafts (offline safety)
- Session cache (performance)
- Everything else (backup, sync, analytics)
- Structured at:
users/{uid}/preferences/settings- User prefsusers/{uid}/daily_logs/{date}- Daily datausers/{uid}/insights/patterns- Computed insightsusers/{uid}/achievements/badges- Gamification
Would you like me to implement any of these? I recommend starting with Behavior Patterns as it's the most valuable for understanding your habits! 🎯