Suthankan
HomeProjectsBlogServicesCertificatesAboutContact
Hire Me

Let's build something remarkable.

I build full-stack products with a Java and Spring Boot backbone, document what I learn through writing, and keep improving through real projects.

Quick nav

HomeProjectsBlogExternal ArticlesServicesNewsletterCertificatesAboutContact
Open to Opportunities
Suthankanbala2019@gmail.com+94 71 938 6979

UTC+5:30

Sri Lanka

© 2026 Suthankan. All rights reserved.

Built with Next.js & ☕

HomeProjectsMindTrack
CompletedMay 2026Full-Stack0

MindTrack

AI-driven cross-platform mood and stress tracking ecosystem supporting UN SDG 3 (Good Health & Well-being).

Tech Stack

FlutterDartNext.jsTypeScriptSpring BootJavaTailwind CSSRecharts

Timeline

May 2026

My Role

Full-Stack & Mobile Engineer

Team

Core Team

All Projects

Overview

What is it?

MindTrack is an AI-powered mental health and wellness ecosystem built in alignment with UN Sustainable Development Goal 3 (Good Health & Well-being). It bridges personal longitudinal mood tracking, biometric stress analysis, and clinical therapist booking into a unified mobile and web platform.

The system features a reactive Flutter mobile client for rapid daily emotional logging and notifications, an analytical Next.js web dashboard with Recharts trends, and a secure Spring Boot service layer protected by Bucket4j rate-limiting and JWT security.

Context

The Problem

Mental health tracking tools often suffer from low user retention due to tedious manual data entry, lack of actionable emotional insights, and a disconnection from professional mental healthcare providers. Furthermore, most platforms lack multi-device continuity between quick on-the-go mobile logging and comprehensive desktop analytical reviews.

Engineering

How It's Built

A dual-client architecture where a cross-platform Flutter application and a Next.js 14 web portal interface with a shared Spring Boot 3 enterprise REST API. Real-time trend calculation and emotional pattern scoring are persisted in PostgreSQL, with Bucket4j safeguarding API quotas.

Architecture Diagrammermaid
graph TD
    Mobile["Flutter Mobile App\n(Dart + Riverpod)"]
    Web["Web Analytics Portal\n(Next.js 14 + Recharts)"]
    Gateway["API Gateway / Security\n(Bucket4j Rate Limiter)"]
    Backend["Spring Boot 3\n(Java 21 + JPA)"]
    DB[("PostgreSQL Database")]
    Notif["Local Notifications\n& Wellness Triggers"]

    Mobile -->|"REST / JWT"| Gateway
    Web -->|"REST / JWT"| Gateway
    Mobile --> Notif
    Gateway --> Backend
    Backend --> DB

Stack Breakdown

LayerTechnologyPurpose
Mobile ClientFlutter 3 + DartRiverpod state management, GoRouter, fl_chart, Dio, Lottie
Web PortalNext.js 14 + TypeScriptTailwind CSS, Recharts analytics, NextAuth, responsive web portal
Backend ServiceSpring Boot 3 + Java 21Spring Data JPA, Spring Security, Bucket4j rate limiting
DatabasePostgreSQLRelational persistence for longitudinal logs, habits, and therapist records
Notification Layerflutter_local_notificationsScheduled mindfulness habits and emotional check-in nudges

Features

Key Features

Engineering depth

Hard Problems I Solved

The Problem

Users frequently switch between recording mood on their mobile device and reviewing weekly trends on their desktop browser, requiring strict timestamp synchronization.

The Solution

Established standardized UTC millisecond timestamp schemas and synchronized JWT session refresh tokens across both client platforms.

The Problem

Calculating dynamic rolling averages, stress variance, and streak metrics across months of entries caused slow database queries.

The Solution

Designed compound indexing on user_id and recorded_at with pre-aggregated weekly summary views in PostgreSQL.

Reflection

Lessons Learned

1

Single-tap mood sliders and frictionless mobile interactions drive significantly higher daily habit completion rates.

2

Rate limiting with Bucket4j at the gateway layer is critical for protecting mental health logging endpoints against abuse.

3

Aligning projects with measurable social frameworks like UN SDG 3 sharpens product scope and user value.

Continue Reading

Related Projects

Planora

Web App

Planora

Unified Agile sprint planning, Kanban workflow, and delivery tracking workspace.

View Case Study
GrantAI

AI/ML

GrantAI

AI-powered grant & scholarship intelligence platform with semantic matching and automated application drafting.

View Case Study
OmniHealth

Web App

OmniHealth

Unified hospital management ecosystem for clinical and administrative workflows.

View Case Study