Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

πŸ“ AI-Powered Daily Journal

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.


🌍 Live Demo


✨ Features

  • πŸ“ Create daily journal entries.
  • 🧠 Summarization using the facebook/bart-large-cnn model.
  • πŸ˜„ Mood detection using cardiffnlp/twitter-roberta-base-sentiment.
  • πŸ“… Timeline view of all entries.
  • πŸ” Environment variable support for secure keys.

🧠 Powered By


πŸ›  Tech Stack

Frontend Backend AI/NLP Database
React Express.js Hugging Face MongoDB

πŸ“ Folder Structure

ai-daily-journal/
β”œβ”€β”€ client/     # React frontend
└── server/     # Express backend + AI + MongoDB

πŸš€ Getting Started Locally

βœ… Prerequisites

  • Node.js and npm
  • MongoDB Atlas account
  • Hugging Face API key

πŸ“¦ 1. Clone the Repo

git clone https://github.com/23241a6749/ai-daily-journal.git
cd ai-daily-journal

βš™οΈ 2. Setup Server

cd server
npm install

Create a .env file:

PORT=5000
MONGODB_URI=your_mongodb_connection_uri
HUGGINGFACE_API_KEY=your_huggingface_api_key

Run the server:

node index.js

πŸ’» 3. Setup Client

cd ../client
npm install

Create a file: src/config.js

export const API_URL = "https://ai-daily-journal-api.onrender.com";

Run the app:

npm start

πŸ§ͺ Sample Entry

Input:

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


πŸ“œ License

Licensed under the MIT License.


πŸ™ Acknowledgements

  • Hugging Face Transformers
  • MongoDB Atlas
  • Render (for server deployment)
  • Vercel (for frontend hosting)

Releases

Packages

Contributors

Languages