← All projects

Nutridia

Clinical and nutrition management platform for healthcare professionals who treat patients with diabetes and metabolic conditions.

Type
Personal project
Role
Author

Professionals keep a complete digital record per patient: clinical history, lab results, metabolic scores, insulin plans, glucose monitoring and medication. A built-in nutrition calculator is backed by a food database and a drug formulary of 5,600+ entries.

Access control lives in a single Next.js middleware that enforces authentication and role-based authorization for the whole API and dashboard. Onboarding is invite-only with email verification, and every endpoint follows a strict REST contract with validated IDs, field allow-lists on writes and consistent error shapes.

Insulin combination rules are implemented as pure, unit-tested functions. The patient profile page went from 411 kB to 182 kB of first-load JavaScript thanks to lazy-mounted sections and code splitting. The project has 137 unit and component tests plus Playwright smoke tests.