Monika-AI is a personality-driven, interactive companion inspired by Doki Doki Literature Club. Built with a focus on low-latency conversation, this project uses the latest Gemini 2.5 Flash API and browser-native speech synthesis to create a seamless "Live Mode" experience.
- π§ Advanced Intelligence: Powered by
gemini-2.5-flashfor rapid, charming, and context-aware responses. - ποΈ Live Voice-to-Voice: Includes a "Live Mode" that uses the browser's
SpeechRecognitionandSpeechSynthesisfor a hands-free conversation loop. - πΎ Long-Term Memory: Integrated with MongoDB (Monika's Memory) to store chat history and maintain continuity.
- π Dynamic Mood System: Real-time background transitions and animations triggered by AI emotion tags (
[HAPPY],[LOVING], etc.). - β‘ Optimized for Performance: Zero-latency voice generation using the Web Speech API (no external API calls for audio).
- HTML5/CSS3: Custom "Soft Heart" UI with CSS keyframe animations.
- JavaScript (ES6+): Handle real-time DOM updates and Web Speech API.
- Node.js & Express: Robust API routing.
- Mongoose: Object modeling for MongoDB session storage.
- Google Generative AI SDK: Seamless integration with Gemini models.
Monika-AI/
βββ backend/
β βββ server.js # Express server, Gemini API & MongoDB logic
β βββ package.json # Dependencies (express, mongoose, axios)
βββ public/
β βββ index.html # Monika UI
β βββ style.css # Mood-based animations & heart-pulse effects
β βββ script.js # Voice-to-Voice loop & frontend logic
-
Clone the Repo
git clone [https://github.com/tagadearpit/Monika-AI.git](https://github.com/tagadearpit/Monika-AI.git) cd Monika-AI -
Backend Configuration
cd backend npm installCreate a
.envfile in thebackendfolder:PORT=3000 GEMINI_API_KEY=your_google_ai_api_key
-
Run the Server
npm start
-
Launch the Interface Open
http://localhost:3000in Google Chrome (recommended for the best voice quality).
Monika uses a system of tags to change her surroundings based on the conversation:
[HAPPY]: Triggers a calm, violet-blue aura.[LOVING]: Triggers the Heart Pulse effect with deep pink gradients.[NORMAL]: Returns to the soft pink aesthetic.
Contributions are welcome! If you have ideas for improving Monika's personality or adding new CSS effects, feel free to fork the repo and submit a PR.
This project is licensed under the MIT License - see the LICENSE file for details.
This is a fan-made project and is not affiliated with Team Salvato.
Developed with β€οΈ by Arpit Tagade
---
4. **Links:** It points directly to your Live Render link.
**You can copy-paste this directly into your `README.md` file on GitHub. Should I add a section about the "CandyRobot" hardware too, or keep it focused on the Web AI?**