Skip to content

Mehulparekh144/haru

Repository files navigation

Haru - Gentle Accountability

The calm accountability app that helps you build real habits through gentle, proof-based check-ins.

Haru Logo

🌸 What is Haru?

Haru is an accountability app that uses AI to make sure you actually do what you said you'd do. It's not a habit tracker full of charts and streaks you can game. It's a mirror: you either show up with proof every day, or your streak dies.

Simple. Brutal. Honest.

✨ Core Features

🎯 Daily Streaks

  • Set a habit (Gym, Code, or Study)
  • One rule: show proof every day
  • Miss once? Start over
  • Simple. Calm. Consistent

πŸ€– AI-Validated Check-Ins

  • Upload proof β†’ AI gently verifies it
  • Gym: Recognizes your effort and equipment
  • Code: Acknowledges your work and commits
  • Study: Celebrates your learning materials
  • No stock pics, no cheating

πŸ“Š Visual Progress

  • Weekly streak view (βœ… / ❌ / pending)
  • Monthly calendar: calm, clear
  • Current & longest streak stats
  • No pressure, just awareness

πŸ’ Gentle Reminders

  • Calm, supportive messaging
  • "You're building something beautiful"
  • AI as your peaceful companion
  • Encouraging without pressure

🎨 Minimal Design

  • No distractions, no overwhelming features
  • AI = one peaceful role: gently validate your progress
  • Build your chain, one day at a time

πŸš€ Getting Started

Prerequisites

  • Node.js 18+
  • npm, yarn, or pnpm
  • PostgreSQL database

Installation

  1. Clone the repository

    git clone https://github.com/Mehulparekh144/haru.git
    cd haru
  2. Install dependencies

    npm install
    # or
    yarn install
    # or
    pnpm install
  3. Set up environment variables

    cp .env.example .env.local

    Fill in your environment variables:

    DATABASE_URL="postgresql://postgres:password@localhost:5432/app"
     BETTER_AUTH_SECRET=your-secret-key
     NEXT_PUBLIC_BETTER_AUTH_URL=http://localhost:3000 
     OPENAI_API_KEY=openai-key
     CRON_SECRET=anysecret
     BLOB_READ_WRITE_TOKEN="blob_token_from_vercel"
  4. Set up the database

    npx prisma migrate dev
    npx prisma generate
  5. Start the development server

    npm run dev
    # or
    yarn dev
    # or
    pnpm dev
  6. Open your browser Navigate to http://localhost:3000

πŸ—οΈ Tech Stack

  • Framework: Next.js 15 with App Router
  • Language: TypeScript
  • Styling: Tailwind CSS
  • UI Components: Shadcn UI + Radix UI
  • Database: PostgreSQL with Prisma ORM
  • Authentication: BetterAuth.js
  • AI: Openrouter
  • Deployment: Vercel (recommended)

πŸ“ Project Structure

src/
β”œβ”€β”€ app/                    # Next.js App Router
β”‚   β”œβ”€β”€ (auth)/            # Authentication routes
β”‚   β”œβ”€β”€ (protected)/       # Protected dashboard routes
β”‚   β”œβ”€β”€ api/               # API routes
β”‚   └── page.tsx           # Landing page
β”œβ”€β”€ components/            # Reusable components
β”‚   └── ui/               # Shadcn UI components
β”œβ”€β”€ lib/                  # Utility functions
β”œβ”€β”€ server/               # Server-side code
β”‚   └── api/              # tRPC routers
└── styles/               # Global styles

🎨 Design Philosophy

Haru follows a calm, zen-like design philosophy:

  • Gentle Colors: Warm, muted color palette
  • Peaceful Typography: Serif for emotion, mono for process
  • Minimal Interface: No distractions, focus on the core loop
  • Proof-Based: External accountability through AI validation
  • No Gamification: Simple, honest progress tracking

πŸ”§ Development

Available Scripts

yarn dev          # Start development server
yarn build        # Build for production
yarn start        # Start production server
yarn lint         # Run ESLint

Database Management

npx prisma studio           # Open Prisma Studio
npx prisma migrate dev      # Create and apply migration
npx prisma generate         # Generate Prisma client
npx prisma db push          # Push schema changes

🀝 Contributing

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

πŸ™ Acknowledgments


Haru - Your gentle companion for building real habits 🌸

About

Build Habits the right way πŸƒ

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors