Skip to content
Vibhrav Jha.Let’s talk
All projectsFullstack

Habit Command Center

A single view from weekly goals to daily review

My contributionPlanning interface, task/log workflows and weighted scoring.

FieldFullstack

View repository

Personal project · private-use dashboard

Habit Command Center planning dashboard

The work
behind the interface.

Connected weekly goals with daily execution through one dashboard for habits, logs, tasks and weighted review, backed by Supabase authentication and Postgres.

  • Next.js
  • TypeScript
  • Supabase
  • PostgreSQL
  • Recharts

The result

Daily, weekly and monthly views backed by Supabase authentication and Postgres.

The problem

Built a weekly-planning dashboard that connects habits, daily logs, tasks and weighted grades.

A decision worth examining

Keep planning, execution and review in one data model, with JSON export for portability.

Read the README.

View original README
READMEArchitecture, setup and usage

Habit Command Center

Habit Command Center is a private planning and execution dashboard for turning weekly goals into daily action. It combines habit scheduling, task tracking, weighted scoring, extra work logging, and progress analytics in one focused Next.js app.

The product is built for a personal operating system workflow: plan the week, execute today, review the signal, and adjust the system without losing historical context.

Product Flow

  1. Plan the week in the Planner. Schedule recurring habits and deadline-based tasks across a seven-day grid.

  2. Execute from Today. Log scheduled work, mark items complete or missed, add actual counts or hours, and capture extra unscheduled work.

  3. Review progress on the Dashboard. See the selected day's completion signal, daily/weekly/monthly grades, task risk, heatmap performance, and time by category.

  4. Manage commitments in Tasks. Create tasks with start dates, deadlines, priorities, status, and optional habit/category links.

  5. Tune the system in Settings. Create and edit trackable items, customize targets and units, set priority weights, deactivate old items, and export private data.

Core Features

  • Private Supabase Auth protected workspace.
  • Weighted scoring by priority: Low, Normal, High, and Critical.
  • Daily, weekly, and monthly grade summaries.
  • Dashboard completion signal for scheduled work and active tasks.
  • Calendar heatmap with discrete score states.
  • Today view for fast logging of scheduled work.
  • Extra work logging with capped bonus credit.
  • Weekly planner with optimistic schedule toggles.
  • Editable trackable items with custom target and unit fields.
  • Task manager with start date, deadline, priority, and status.
  • Weekly notes for freeform planning context.
  • Monthly hours by category and weekly hours charts.
  • JSON export for personal backup.
  • Stable dark-first theme with light mode support.

Scoring Model

Only scheduled work affects the base score. Each scheduled item contributes according to its priority weight.

planned_score = sum(item_score * item_weight) / sum(item_weight)

Unscheduled extra work is tracked separately and can add up to 5 bonus percentage points.

Pending planned items behave differently by date:

  • Past dates: blank scheduled items are treated as missed.
  • Today and future dates: blank scheduled items remain pending.

Tech Stack

  • Next.js App Router
  • React
  • TypeScript
  • Supabase Auth and Postgres
  • Supabase SSR helpers
  • Recharts
  • Lucide React
  • Vercel-ready deployment

Project Structure

app/                  Next.js routes and global styles
components/           Main application UI
lib/                  Date, scoring, seed, Supabase, and type utilities
supabase/migrations/  Database schema and RLS policies

The original static prototype files are kept for reference, but the production app is the Next.js + Supabase implementation.

Local Development

Install dependencies:

npm install

Create .env.local from .env.example and fill in the required values:

NEXT_PUBLIC_SUPABASE_URL=your-supabase-project-url
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=your-publishable-key
# Or use NEXT_PUBLIC_SUPABASE_ANON_KEY if your project only has a legacy anon key.
APP_ALLOWED_EMAILS=your_email@example.com

Run the development server:

npm run dev

Open http://localhost:3000.

Quality Checks

npm run lint
npm run typecheck
npm run build

Database Setup

Run the migration in Supabase SQL Editor or through the Supabase CLI:

supabase/migrations/202605150001_initial_schema.sql

The migration creates the private habit, task, plan, log, category, and weekly note tables with row-level security policies.

Google Sign-In

Google sign-in uses Supabase Auth's Google provider. Do not enable Supabase OAuth Server for this use case unless Habit Command Center needs to act as an identity provider for other third-party applications.

In Supabase:

  1. Go to Auth > Providers > Google.
  2. Enable Google.
  3. Add the Google OAuth client ID and client secret from Google Cloud.
  4. In Auth > URL Configuration, set Site URL to your deployed app URL.
  5. Add redirect URLs for production and local development:
https://your-vercel-domain.vercel.app/auth/callback
http://localhost:3000/auth/callback

In Google Cloud:

  1. Create an OAuth Client ID with application type Web application.
  2. Add your app URL under Authorized JavaScript origins.
  3. Add the Supabase callback URL under Authorized redirect URIs:
https://your-supabase-project-ref.supabase.co/auth/v1/callback

Use the exact callback URL shown in the Supabase Google provider screen.

Deploy to Vercel

  1. Push the project to GitHub.
  2. Import the repository in Vercel as a Next.js project.
  3. Add these environment variables in Vercel Project Settings:
NEXT_PUBLIC_SUPABASE_URL=your-supabase-project-url
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=your-publishable-key
# Or use NEXT_PUBLIC_SUPABASE_ANON_KEY if your project only has a legacy anon key.
APP_ALLOWED_EMAILS=your_email@example.com
  1. Run the Supabase migration against the production Supabase project.
  2. Deploy. Vercel should detect Next.js and run npm run build automatically.

Privacy And Safety

This app is designed for private personal data. Do not commit real environment files, database exports, spreadsheets, keys, or generated backups.

Use .env.example as the public template and store production secrets only in Vercel and Supabase.

React Web & Mobile

  1. Aranyaka wildlife-image application interface

    Fullstack

    Aranyaka

  2. DermaNet hackathon prototype showing classification output and a generated explanation

    ML & AI

    DermaNet

  3. AI-generated concept illustration of source documents connected to retrieved evidence and an answer

    ML & AI

    Private-Data RAG

  4. Before It Breaks dashboard separating real weather from synthetic equipment telemetry and estimated costs

    ML & AI

    Before It Breaks

  5. Architecture diagram of simulated stock records flowing through Kafka to HDFS

    Distributed Systems

    Stock Streaming Engine

  6. Vyaya dashboard with clearly labeled synthetic demonstration data

    Fullstack

    Vyaya

  7. Study assistant interface with retrieved source context

    ML & AI

    Fine-Tuning vs. RAG

  8. Architecture diagram of NOAA data, a Cassandra cluster and a query service

    Distributed Systems

    Distributed Weather Data System

  9. Distributed Property Lookup Service project image

    Distributed Systems

    Distributed Property Lookup Service

  10. Architecture diagram connecting MySQL, a gRPC service and HDFS storage

    Distributed Systems

    HDFS & SQL Pipeline

  11. Architecture diagram of Spark processing, SQL and analysis

    Distributed Systems

    Spark Analytics

  12. Multi-Source ELT Pipeline project image

    Data Engineering

    Multi-Source ELT Pipeline

  13. Wisconsin schools in their geographic context — explanatory architecture diagram

    Data Engineering

    GCP Geospatial Pipeline

  14. Chinook Music Store SQL Analytics project image

    Data Engineering

    Chinook Music Store SQL Analytics

  15. Yelp Geospatial Analytics project image

    Data Engineering

    Yelp Geospatial Analytics

  16. E-Commerce Semantic Search Engine project image

    Data Engineering

    E-Commerce Semantic Search Engine

  17. Retail Sales Forecasting project image

    ML & AI

    Retail Sales Forecasting

  18. Making tool dependencies inspectable — explanatory architecture diagram

    ML & AI

    AI Agent Tool Dependency Graph

  19. From public records to operational questions — explanatory architecture diagram

    Data Engineering

    Palantir Foundry and AIP Build Challenge

  20. StudyFlow study-session dashboard

    Fullstack

    StudyFlow

  21. Habit Command Center planning dashboard

    FullstackViewing

    Habit Command Center

  22. Interfaces across web and mobile — explanatory architecture diagram

    Fullstack

    React Web & Mobile

  23. Startup Scout project image

    Fullstack

    Startup Scout

  24. Inventory-Based Recipe Planner project image

    Fullstack

    Inventory-Based Recipe Planner

  25. Concurrent Word Count and Performance Benchmarking project image

    Data Engineering

    Concurrent Word Count

  26. Data structures matched to their assumptions — explanatory architecture diagram

    Computing Foundations

    Algorithm Design

  27. Campus Navigator project image

    Fullstack

    Campus Navigator

  28. i-Songly: Song Management Engine project image

    Fullstack

    i-Songly

  29. An experiment that can resume — explanatory architecture diagram

    ML & AI

    CIFAR-100 with LeNet

  30. Fashion-MNIST Neural Network Classifier project image

    ML & AI

    Fashion-MNIST Classifier

  31. PCA Eigenfaces and Image Reconstruction project image

    ML & AI

    PCA Eigenfaces

  32. Two routes to the same regression objective — explanatory architecture diagram

    ML & AI

    Lake Mendota Ice Regression

  33. Bayesian Language Detection project image

    ML & AI

    Bayesian Language Detection

  34. Explanatory diagram of the video-fingerprint benchmark: 25 sources, 75 transformed variants and 1,875 comparisons.

    ML & AI

    Video-Fingerprint Benchmark

All projects