"We all cry in the same language."
The Invisible Thread is an empathetic AI-powered web application designed to connect people through shared emotional experiences. It creates a safe, atmospheric space where users can find solace in knowing they are not alone, or offer hope to others who are struggling.
- Emotional Resonance: Share your burden, and the AI (powered by Google Gemini) analyzes your core emotion.
- Global Connection: The app simulates a search across the globe to find 3 unique personas who are feeling exactly what you are feeling right now.
- Empathetic Chat: Connect with one of these personas in a deep, meaningful conversation. They respond in character, offering validation and understanding.
- Holographic Visualization: A beautiful 3D globe visualizes the search for connection.
- Swipe to Heal: Switch to "Give Hope" mode to see cards of people (simulated personas) going through difficult times.
- Send Light: Swipe Right to write a message of kindness and hope to them.
- Future Flash: After sending a message, the AI generates a "Future Flash"—a vision of how your specific words positively impacted that person's day or life path.
- Emotional Color Adaptation: The background gradient shifts dynamically based on the detected emotion (e.g., Deep Blue for sadness, Amber for hope, Red for frustration).
- Premium UI: Built with Glassmorphism, smooth Framer Motion animations, and a custom "Aurora" aesthetic.
- Framework: Next.js 15 (App Router)
- Styling: Tailwind CSS v4
- Animations: Framer Motion
- AI Intelligence: Google Gemini 1.5 Flash API
- Utilities:
html2canvasfor capturing chat snapshots.
- Node.js 18+
- A Google Gemini API Key
-
Clone the repository
git clone https://github.com/yourusername/invisible-thread.git cd invisible-thread -
Install dependencies
npm install
-
Configure Environment Create a
.env.localfile in the root directory and add your API key:NEXT_PUBLIC_GEMINI_API_KEY=your_actual_api_key_here
-
Run the development server
npm run dev
-
Open http://localhost:3000 with your browser.
The application is designed to be "Anti-Social Media". Instead of likes, infinite scrolls, and comparison, it focuses on:
- Slowness: Deliberate pacing to encourage reflection.
- Depth: Conversations that go below the surface.
- Anonymity: No profiles, no avatars, just souls connecting.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.
