A behavioral analytics platform that analyzes how people work, not just what they complete.
This is a cognitive performance analytics engine designed to track time, measure energy levels, detect context switching, and visualize focus heatmaps.
- Frontend: Next.js (App Router), TypeScript, TailwindCSS, Zustand, Recharts (Pending)
- Backend: Node.js, Express, TypeScript, REST APIs
- Database: PostgreSQL (Neon/Supabase serverless)
- Authentication: Stateless JWT
- Node.js (v18+)
- A PostgreSQL instance (Local or Neon/Supabase)
- Navigate to the backend directory: ```bash cd backend ```
- Install dependencies: ```bash npm install ```
- Environment Variables:
Create a
.envfile in thebackend/directory: ```env PORT=8080 NODE_ENV=development DATABASE_URL=postgresql://user:password@host/dbname?sslmode=require JWT_SECRET=your_super_secret_dev_key ``` - Run Database Migrations: ```bash npm run migrate ```
- Start the Development Server:
```bash
npm run dev
```
The server will start on
http://localhost:8080.
- Phase 1: Backend Initialization & Database Schema
- Phase 2: User Authentication & Core Entities
- Phase 3: Pomodoro & Time Tracking Engine
- Phase 4: Behavioral Analytics Engine
- Phase 5: Frontend Dashboard & Next.js Integration