The Digital Time Capsule is an innovative web platform that allows users to store messages, media, and memories, which will be revealed at a future date. Developed during KrackHack 2025, this project focuses on **security, AI/ML-powered sentiment analysis, and a seamless user experience
- Live Website: Time Capsule
- Link To Other 2 Repos:Time Capsule,(https://github.com/HarryOhm33/TimeCapsule.git)
- Secure signup/login with OTP verification via email.
- JWT authentication to protect user data.
- Create, edit, delete, and share time capsules.
- Set a future unlock date for messages.
- Send capsules to loved ones via email.
- Displays locked/unlocked capsules with scheduled release dates.
- NLP-based emotion detection for messages and titles.
- Transformers-based model (
DistilBERT) trained for sentiment classification. - FastAPI backend deployed on Render for efficient AI/ML inference.
- Memory Challenge ๐ฏ
- Upcoming interactive games (to enhance engagement).
- Cloudinary integration for secure image uploads.
- Node-cron & Agenda for automated capsule releases.
- Cloud-based MongoDB Atlas for scalable data storage.
- Optimized FastAPI backend for high-performance AI/ML predictions.
- React.js โ UI development
- Tailwind CSS โ Responsive styling
- Axios โ API communication
- React Router โ Page navigation
- Framer Motion โ Animations
- Node.js (Express.js) โ API server
- MongoDB Atlas โ NoSQL database
- JWT & Bcrypt.js โ Secure authentication
- Cloudinary โ Media storage
- Nodemailer โ OTP verification & email services
- Node-cron & Agenda โ Automated scheduling
- FastAPI โ Deployed on Render for AI/ML inference.
- Transformers & DistilBERT โ Emotion detection for capsules.
- Torch optimizations โ Efficient processing of sentiment analysis.
- Frontend: Deployed on Vercel & Netlify.
- Backend:
- Express.js API on Render.
- FastAPI AI backend on Render (for real-time sentiment classification).
- Database: Hosted on MongoDB Atlas.
๐ project-root
โโโ ๐ public
โโโ ๐ src
โ โโโ ๐ assets
โ โโโ ๐ components
โ โ โโโ ๐ AuthPage.jsx
โ โ โโโ ๐ LoadingSpinner.jsx
โ โ โโโ ๐ NavFooter.jsx
โ โ โโโ ๐ ProtectedRoute.jsx
โ โโโ ๐ pages
โ โ โโโ ๐ CapsuleDetails.jsx
โ โ โโโ ๐ Create_Capsule.jsx
โ โ โโโ ๐ DashBoard.jsx
โ โ โโโ ๐ FunZone.jsx
โ โ โโโ ๐ GuessTheAge.jsx
โ โ โโโ ๐ Home.jsx
โ โ โโโ ๐ MemoryGame.jsx
โ โ โโโ ๐ Signup.jsx
โ โ โโโ ๐ Success.jsx
โ โ โโโ ๐ UpdateCapsule.jsx
โ โ โโโ ๐ Verify_Signup.jsx
โ โโโ ๐ utils
โ โ โโโ ๐ App.jsx
โ โโโ ๐ index.css
โ โโโ ๐ main.jsx
โโโ ๐ .env
โโโ ๐ .gitignore
โโโ ๐ eslint.config.js
โโโ ๐ index.html
โโโ ๐ package-lock.json
โโโ ๐ package.json
โโโ ๐ README.md
โโโ ๐ vite.config.js
time-capsule-backend/
โโโ ๐ config/
โ โโโ ๐ cloudinary.js
โ โโโ ๐ db.js
โ โโโ ๐ email.js
โ
โโโ ๐ controllers/
โ โโโ ๐ authController.js
โ โโโ ๐ capsuleController.js
โ โโโ ๐ myCapsuleController.js
โ โโโ ๐ videoController.js
โ
โโโ ๐ middlewares/
โ โโโ ๐ authMiddleware.js
โ
โโโ ๐ models/
โ โโโ ๐ Capsule.js
โ โโโ ๐ Email.js
โ โโโ ๐ myCapsule.js
โ โโโ ๐ OTP.js
โ โโโ ๐ User.js
โ โโโ ๐ video.js
โ
โโโ ๐ routes/
โ โโโ ๐ authRoutes.js
โ โโโ ๐ capsuleRoutes.js
โ โโโ ๐ myCapsuleRoutes.js
โ โโโ ๐ videoRoutes.js
โ
โโโ ๐ tmp/
โโโ ๐ utils/
โโโ ๐ .env
โโโ ๐ .gitignore
โโโ ๐ LICENSE
โโโ ๐ package-lock.json
โโโ ๐ package.json
โโโ ๐ server.js
git clone https://github.com/anishk85/time-capsule
cd time-capsulecd backend
npm installCreate a .env file inside backend and add:
PORT=5000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret
CLOUDINARY_CLOUD_NAME=your_cloudinary_cloud
CLOUDINARY_API_KEY=your_api_key
CLOUDINARY_API_SECRET=your_api_secret
EMAIL_USER=your_email
EMAIL_PASS=your_email_password
FASTAPI_URL=https://your-fastapi-url.onrender.com/analyzeStart the Express.js backend server:
npm run devcd ../frontend
npm installCreate a .env file inside frontend and add:
REACT_APP_BACKEND_URL=http://localhost:5000Start the frontend server:
npm run dev- Frontend:
http://localhost:3000 - Backend API (Express.js):
http://localhost:5000/api
- User messages & titles are sent to the FastAPI backend for sentiment classification.
- The DistilBERT NLP model detects emotions and enhances personalized user experiences.
- FastAPI deployment on Render ensures scalability with optimized model inference.
๐น Blockchain-based storage for tamper-proof capsules.
๐น Multiple file uploads per capsule.
๐น More interactive Play Zone games.
๐น AI-powered content filtering & personalization.
๐น Role-based access control for team collaborations.
- Personal Journaling โ Store emotions and thoughts for future reflection.
- Event Time Capsules โ Send messages for anniversaries, birthdays, and special events.
- Corporate Memory Storage โ Preserve company milestones for future employees.
- Education & History Archives โ Store historical content with AI-driven insights.
The Digital Time Capsule integrates AI-powered sentiment analysis with secure, time-based memory storage, creating a unique and engaging user experience. Built during KrackHack 2025, this project is a fusion of web development, AI/ML, and cloud technologies.