Case Study · Second Build

Go Green Health Vault
Family health records, private to you.

Our second product — a self-hosted, AI-powered health-records vault for Indian families. Upload a lab report, prescription, or scan and it's read, filed to the right family member, grouped into a visit, and tracked as a trend — replacing folders of paper with a vault the family fully owns.

  • AI-poweredClaude / Gemini / OpenAI, swappable
  • Full-stackNext.js + PostgreSQL
  • Self-hostedone VPS, your data

How It Works

From a photo of a report to a trend line

No manual data entry. Drop in a document and the vault does the filing.

  1. 1

    📄 Capture

    Upload a PDF or snap a photo — lab report, prescription, discharge summary, scan, or vaccination card. On Android, a report shared from WhatsApp lands straight in the app.

  2. 2

    🤖 Extract

    An AI extractor turns the document into structured lab values, medications, and visit details — with low-confidence reads flagged for a quick confirm.

  3. 3

    👪 Organize

    Reports auto-route to the right family member by name and cluster into visits — one tap to correct, rename, or move.

  4. 4

    📈 Understand

    Every reading joins a trend line — HbA1c, blood pressure, cholesterol, vitamin D — plus an optional AI health snapshot over the full history.

  5. 5

    🔗 Share & own

    Send a doctor a read-only, revocable link instead of a folder of paper. Export everything as CSV/JSON, any time.

The Challenge

A family's health history, scattered on paper

Most Indian families keep their medical history in folders — prescriptions, lab reports, and scans that pile up for years and become impossible to search exactly when they matter most. Records for different family members get mixed together, and there's no easy way to see whether a reading like HbA1c is trending the right way, or to hand a new doctor the full picture without carrying the physical folder.

  • Years of paper — reports that are never searchable when you need them.
  • One folder, many people — no separation between family members' records.
  • No trend visibility — is a reading improving or getting worse over time?
  • Hard to share — a new doctor means carrying (or losing) the whole folder.

The Solution

A self-hosted platform, end to end

From database to deployment, The Code Stellar designed, built, and now operates the entire product.

💻

Next.js 15 front-end

App Router, React Server Components, and a full PWA — installable on Android with a share-target so reports arrive straight from WhatsApp.

🗄️

PostgreSQL + object storage

Normalized clinical data in Postgres; original scans in S3-compatible storage (MinIO locally, Cloudflare R2 in production).

🧠

Provider-agnostic AI extraction

One interface, four backends — Claude, Gemini, OpenAI, or a no-key mock — swappable by config, with no vendor lock-in.

🚀

Production deployment

A single small VPS running the app and Postgres in Docker behind Traefik/Caddy — Postgres never exposed to the internet.

What People Get

For families, and for the business

What families get

  • 📄 Upload anythingLab reports, prescriptions, eye prescriptions, discharge summaries, scans, and vaccination cards — PDF or photo.
  • 👪 Up to 4 family profilesReports auto-route to the right person by name, with one-tap correction.
  • 📈 Trends & visitsHbA1c, blood pressure, cholesterol, and more as trend lines; same-day reports grouped into a printable visit.
  • 🔍 Unified searchOne box across tests, medicines, vaccines, visits, and uploaded files.
  • 🔗 Doctor sharingA read-only, revocable link instead of a folder of paper — no account needed on their end.
  • 🔒 Own your dataExport as CSV/JSON any time; granular deletes down to a single profile.

What the business gets

  • 📊 Operator dashboardPer-account billing, storage & AI-cost visibility, trial and plan management, coupons.
  • 💳 Billing built inRazorpay checkout with a trial → subscription → grace → read-only lifecycle.
  • 📱 Play Store-readyThe same web app wraps as an Android TWA, with payment UI hidden to satisfy Play billing policy.
  • 🧠 Swappable AI costChange the extraction provider — and the per-document cost — with a config change, not a rewrite.
  • 🏠 Full data ownershipSelf-hosted on one VPS — no third-party health-data cloud in the loop.

Built With

The technology stack

Modern, well-supported tools chosen to keep the platform fast, secure, and maintainable.

  • Next.js 15
  • React 19
  • TypeScript
  • PostgreSQL
  • Cloudflare R2 / MinIO
  • Claude API
  • Gemini API
  • OpenAI API
  • Zod
  • Razorpay
  • Web Push (VAPID)
  • Docker Compose
  • Traefik

The Outcome

Shipped, and self-operated

Go Green Health Vault is live and self-hostable — a genuinely complex domain (multi-provider AI extraction, clinical data modeling, ABDM/FHIR interoperability, subscription billing, a PWA) shipped as a real, running product from a single VPS. It's The Code Stellar's second product built end to end, and proof the first wasn't a one-off.