Skip to content

Dev-Adnani/calmlytic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

121 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Calmlytic

Your Personal Mind OS - AI-powered journaling and mental wellness platform

License: MIT Next.js TypeScript

Calmlytic is a modern, AI-powered journaling platform that helps users understand their mental wellness patterns through intelligent insights, voice journaling, vision boards, and therapeutic assessments.

✨ Features

  • πŸ“ AI-Powered Journaling - Get insights and pattern recognition from your entries
  • 🎀 Voice Journaling - Speak your thoughts and let AI transcribe and analyze
  • 🎯 Vision Boards - Create visual goal boards with drag-and-drop editor
  • πŸ“Š Mental Health Assessments - Track your wellness with clinical assessments
  • πŸ”’ Privacy First - Your data is encrypted and private
  • πŸ“± PWA Support - Install as an app, works offline
  • πŸŒ™ Dark Mode - Beautiful UI with theme support

πŸš€ Quick Start

Prerequisites

  • Node.js 18+ and npm
  • A Supabase account (free tier works)
  • (Optional) Google Gemini API key for AI features
  • (Optional) OpenAI API key for voice features

Installation

  1. Clone the repository

    git clone https://github.com/Dev-Adnani/calmlytic.git
    cd calmlytic
  2. Install dependencies

    npm install
  3. Set up environment variables

    cp env.example .env.local

    Edit .env.local and add your Supabase credentials:

    NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
    NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_key
  4. Set up Supabase

    • Create a new project at supabase.com
    • Run the database migrations (see Database Setup)
    • Enable Google OAuth in Supabase Auth settings (optional)
  5. Run the development server

    npm run dev
  6. Open http://localhost:3000

πŸ“š Documentation

Comprehensive documentation is available in the docs/ directory:

πŸ—„οΈ Database Setup

Option 1: Using Supabase CLI (Recommended)

  1. Install Supabase CLI: npm install -g supabase
  2. Login: supabase login
  3. Link your project: supabase link --project-ref your-project-ref
  4. Push migrations: supabase db push

Option 2: Export Existing Schema

If you have an existing Supabase database:

# Run the export script
./supabase/export-schema.sh

# Or manually
supabase db pull

This will export all tables, RLS policies, triggers, and functions to supabase/migrations/.

See supabase/README.md for detailed instructions.

Option 3: Manual Setup

See the Database Documentation for SQL migration scripts.

πŸ› οΈ Tech Stack

πŸ“¦ Project Structure

calmlytic/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/              # Next.js pages and API routes
β”‚   β”œβ”€β”€ components/       # React components
β”‚   β”œβ”€β”€ lib/              # Utilities and helpers
β”‚   β”œβ”€β”€ hooks/            # Custom React hooks
β”‚   β”œβ”€β”€ store/            # Zustand state management
β”‚   └── types/            # TypeScript types
β”œβ”€β”€ docs/                 # Documentation
β”œβ”€β”€ public/               # Static assets
└── env.example           # Environment variables template

πŸ”§ Available Scripts

  • npm run dev - Start development server
  • npm run build - Build for production
  • npm run start - Start production server
  • npm run lint - Run linter
  • npm run format - Format code

🀝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

πŸ“§ Support


Made with ❀️ for mental wellness

About

Calmlytic is a modern, AI-powered journaling platform that helps users understand their mental wellness patterns through intelligent insights, voice journaling, vision boards, and therapeutic assessments.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

 
 
 

Contributors

Languages