An intelligent web app that helps you track your thoughts, summarize your day, and analyze your mood using Natural Language Processing and Hugging Face models. Built with React, Express.js, MongoDB, and Hugging Face's Inference API.
- π Frontend (React on Vercel): (https://ai-daily-journal-kw75.vercel.app/)
- βοΈ Backend (Express on Render): https://ai-daily-journal-api.onrender.com
- π Create daily journal entries.
- π§ Summarization using the
facebook/bart-large-cnnmodel. - π Mood detection using
cardiffnlp/twitter-roberta-base-sentiment. - π Timeline view of all entries.
- π Environment variable support for secure keys.
- π€ facebook/bart-large-cnn β summarization
- π€ cardiffnlp/twitter-roberta-base-sentiment β sentiment analysis
- π€ Hugging Face Inference API
| Frontend | Backend | AI/NLP | Database |
|---|---|---|---|
| React | Express.js | Hugging Face | MongoDB |
ai-daily-journal/
βββ client/ # React frontend
βββ server/ # Express backend + AI + MongoDB
- Node.js and npm
- MongoDB Atlas account
- Hugging Face API key
git clone https://github.com/23241a6749/ai-daily-journal.git
cd ai-daily-journalcd server
npm installCreate a .env file:
PORT=5000
MONGODB_URI=your_mongodb_connection_uri
HUGGINGFACE_API_KEY=your_huggingface_api_key
Run the server:
node index.jscd ../client
npm installCreate a file: src/config.js
export const API_URL = "https://ai-daily-journal-api.onrender.com";Run the app:
npm startInput:
I had a great day today! I completed my project and spent quality time with my family. Feeling proud and happy.
Summary:
"I had a great day today! I completed my project and spent quality time with my family," she said. "Feeling proud and optimistic."
Mood:
positive
Licensed under the MIT License.
- Hugging Face Transformers
- MongoDB Atlas
- Render (for server deployment)
- Vercel (for frontend hosting)