Welcome to SafeSpace, your cozy, modern, and data-driven journaling platform! SafeSpace is designed to help you track your moods, build positive habits, and connect with a supportive community—all in a beautiful, baby-pink themed interface.
- User Authentication: Secure signup/login with JWT.
- Personal Dashboard: Visual stats, streaks, mood/happiness charts, activity heatmap, and calendar.
- Journaling: Create, view, and manage daily journal entries.
- Affirmations Board: 5x4 editable grid for daily affirmations (CRUD, tips, and guidance).
- Manifestations: Track your dreams and goals (CRUD).
- Community Hub: Share stories, tips, and connect with fellow journalers.
- Insights & Analytics: Mood distribution, writing patterns, AI-powered insights, and more.
- Fun Elements: Level badges, streaks, motivational quotes, and tips.
- Responsive UI: Beautiful, compact, and modern design with a baby-pink theme.
- Frontend: React, Recharts, React Calendar, Tailwind/CSS
- Backend: Node.js, Express, MongoDB, Mongoose
- Authentication: JWT
- LLM/AI: LangChain, Groq, langchain-groq (for Dr. Luna chat and AI insights)
# Clone the repo
https://github.com/yourusername/SafeSpace.git
cd SafeSpace/jornalcd ../jornal
npm installcd backend
npm install- Copy
backend/config.env.exampletobackend/config.envand fill in your MongoDB URI, JWT secret, and any API keys needed for LLM/AI features.
cd backend
npm startcd .. # Go back to /jornal
npm start- The frontend runs on http://localhost:3000
- The backend runs on http://localhost:5001
- Sign Up / Log In: Create your account or log in to access your dashboard.
- Dashboard: View your stats, streaks, mood/happiness charts, activity heatmap, and calendar.
- Journals: Write, edit, and view your daily entries.
- Affirmations: Fill your 5x4 grid with positive affirmations. Edit, save, or delete as you wish.
- Manifestations: Track your dreams and goals with full CRUD support.
- Community: Share your stories, tips, and connect with others.
- Insights: Explore your mood distribution, writing patterns, and get AI-powered insights.
- Dr. Luna Chat: Get support and insights from the AI-powered Dr. Luna.
- Consistency is key! Write daily to build your streak and unlock new achievements.
- Use affirmations and manifestations to stay positive and focused.
- Check your insights regularly to spot trends and improve your well-being.
- Engage with the community for support and inspiration.
- The backend integrates with LangChain, Groq, and langchain-groq for AI chat and insights.
- Make sure to provide any required API keys in your
config.env.
- Fork the repo and create a new branch for your feature or bugfix.
- Submit a pull request with a clear description.
- Please follow the existing code style and add comments where helpful.
Journal/
jornal/
backend/ # Express/MongoDB backend
src/
controllers/
middleware/
models/
routes/
services/
utils/
config.env # Backend environment variables
server.js # Backend entry point
public/ # Frontend static assets
src/ # React frontend
components/
App.js
...
package.json # Frontend dependencies
start-app.js # (Optional) Custom start script
- Designed & developed by Pavithra
- Special thanks to all contributors and the open-source community!
This project is licensed under the MIT License.