AI-powered journaling platform that simulates conversations with your future self.
Future Echo is a production-ready full-stack SaaS application that combines long-term memory retrieval, emotional pattern tracking, and AI simulation to help users reflect, grow, and make better decisions.
- 🔐 Secure Authentication (JWT / NextAuth)
- 📝 Rich Journal System (create, edit, delete, tags, mood tracking)
- 🤖 Future Self AI Chat (Gemini-powered)
- 🧠 Long-Term Memory Retrieval using Vector Embeddings
- 🔓 Time-Locked Messages
- 📊 Growth Dashboard (mood trends, entry frequency, goal tracking)
- 🌙 Premium Dark Mode UI
- 🐳 Docker-ready
- 🚀 Deployable to Vercel / Railway
Future Echo uses:
- Vector embeddings to store semantic memory of journal entries
- Retrieval-based context assembly
- Google Gemini for AI generation
- A system prompt that simulates a wiser “5-years-ahead” version of the user
- User sends a message.
- Relevant past journal entries are retrieved using embeddings.
- Mood trends and goals are included.
- Secure context is assembled.
- Gemini generates a reflective, emotionally intelligent response.
- Next.js 14 (App Router)
- TypeScript
- TailwindCSS
- Recharts
- Next.js API Routes
- TypeScript
- PostgreSQL
- Prisma ORM
- Google Gemini (
still not fully implemented) loadingfor embeddings
- Docker
- Vercel / Railway compatible
future-echo/
│
├── app/ # Next.js App Router
├── components/ # Reusable UI components
├── lib/
│ ├── ai/ # Gemini integration
│ ├── db/ # Prisma client
│ ├── embeddings/ # Vector embedding logic
│ └── utils/ # Helper utilities
├── prisma/ # Prisma schema
├── public/
├── styles/
├── Dockerfile
└── README.md
Create a .env file in the root directory:
DATABASE_URL=
GEMINI_API_KEY=
NEXTAUTH_SECRET=
NEXTAUTH_URL=
Install dependencies:
npm install
Run development server:
npm run dev
Run Prisma migrations:
npx prisma migrate dev
Build Docker image:
docker build -t future-echo .
Run container:
docker run -p 3000:3000 future-echo
- API keys stored server-side only
- Input validation on all routes
- Rate limiting on AI endpoints
- Prompt injection safeguards
- Secure context assembly pipeline
- Protected API routes
Future Echo follows a modular service-based architecture:
- AI abstraction layer
- Memory retrieval service
- Embedding service
- Chat session manager
- Secure API layer
- Clean UI component separation
This architecture allows future support for:
- Multiple AI providers
- Mobile app integration
- Enterprise features
- Scalable SaaS expansion
- Push project to GitHub.
- Import repository into Vercel.
- Add environment variables.
- Deploy.
- Create new Railway project.
- Connect repository.
- Add PostgreSQL plugin.
- Configure environment variables.
- Deploy.
- Voice-based Future Self
- Mobile App (React Native)
- Habit tracking system
- AI life projection mode
- Multi-provider AI toggle (Claude / Gemini / OpenAI)
Built by Rijad Halili
MIT License