<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: wang zhengpeng jay</title>
    <description>The latest articles on DEV Community by wang zhengpeng jay (@wang_zhengpeng_jay).</description>
    <link>https://dev.to/wang_zhengpeng_jay</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4072199%2F0e81b23c-f616-480b-8d9f-0f4c9c813129.png</url>
      <title>DEV Community: wang zhengpeng jay</title>
      <link>https://dev.to/wang_zhengpeng_jay</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/wang_zhengpeng_jay"/>
    <language>en</language>
    <item>
      <title>How I Built a Self-Hosted Family AI Health Steward (Your Health Data, on Your Shelf)</title>
      <dc:creator>wang zhengpeng jay</dc:creator>
      <pubDate>Tue, 11 Aug 2026 03:14:41 +0000</pubDate>
      <link>https://dev.to/wang_zhengpeng_jay/how-i-built-a-self-hosted-family-ai-health-steward-your-health-data-on-your-shelf-59f8</link>
      <guid>https://dev.to/wang_zhengpeng_jay/how-i-built-a-self-hosted-family-ai-health-steward-your-health-data-on-your-shelf-59f8</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; — I built and open-sourced &lt;strong&gt;AI Health Steward&lt;/strong&gt;, a self-hosted, private AI health manager for families. It reads photos of lab reports with multimodal LLMs, builds a structured per-person health profile, shows trends on a dashboard, and answers health questions grounded in &lt;em&gt;your actual data&lt;/em&gt; — all running on your own server. Privacy isn't a feature; it's the whole point. &lt;a href="https://github.com/wangzhengpengjay/AI-Health-Steward" rel="noopener noreferrer"&gt;Star it on GitHub&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  The problem: your health data is a product
&lt;/h2&gt;

&lt;p&gt;Every family has a shoebox — or a folder — of medical reports: blood tests, blood-pressure logs, prescriptions, scan findings. And every "convenient" health app wants to hold those records for you. But hold them &lt;em&gt;where&lt;/em&gt;? On someone else's cloud, to be monetized, analyzed, or lost when the startup pivots.&lt;/p&gt;

&lt;p&gt;Health records are the most sensitive data you own. They shouldn't be a product. They should live on &lt;strong&gt;your&lt;/strong&gt; shelf.&lt;/p&gt;

&lt;p&gt;So I built the opposite: a self-hosted AI health steward where the data never leaves your server.&lt;/p&gt;




&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;📄 &lt;strong&gt;Take a photo of a lab report → structured data.&lt;/strong&gt; A multimodal LLM extracts key metrics (BP, glucose, lipids, CBC…) with your confirmation before anything is filed.&lt;/li&gt;
&lt;li&gt;🧬 &lt;strong&gt;A person-level health profile&lt;/strong&gt; as the single source of truth — basics, metrics, diagnoses, medications, allergies, lifestyle, family history, and &lt;em&gt;data provenance&lt;/em&gt; (where each value came from).&lt;/li&gt;
&lt;li&gt;📈 &lt;strong&gt;Trend visualization&lt;/strong&gt; with anomaly markers and clinical &lt;strong&gt;critical-value alerts&lt;/strong&gt; (e.g. BP ≥ 180/110 triggers a "see a doctor" banner).&lt;/li&gt;
&lt;li&gt;💬 &lt;strong&gt;AI consultation grounded in real data&lt;/strong&gt; — not a generic chatbot. Intent routing + function calling means answers reflect &lt;em&gt;your&lt;/em&gt; profile, not Wikipedia.&lt;/li&gt;
&lt;li&gt;🗓️ &lt;strong&gt;Personalized checkup plans&lt;/strong&gt; via a 1+X+Y framework, with budget tiers and safety/contraindication screening.&lt;/li&gt;
&lt;li&gt;📋 &lt;strong&gt;Periodic health summaries&lt;/strong&gt; (weekly/monthly/yearly), &lt;strong&gt;risk scales&lt;/strong&gt; (PHQ-9, GAD-7, diabetes, ASCVD), and &lt;strong&gt;follow-up/medication reminders&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;🧠 &lt;strong&gt;RAG over your own history&lt;/strong&gt; — archived reports are vectorized so you can ask "what did my A1C trend look like over 3 years?"&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  The architecture
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;┌──────────────┐     ┌──────────────────────────────────────┐
│   WebUI      │────▶│            FastAPI backend           │
│ React + Vite │     │  API / services / providers / prompts │
└──────────────┘     └───────────────┬──────────────────────┘
┌──────────────┐                     │
│ Feishu bot   │────▶  WebSocket ◀───┤
└──────────────┘                     ▼
                     ┌──────────────────────────────────────┐
                     │  PostgreSQL 16 + pgvector (RAG)      │
                     └──────────────────────────────────────┘
                     ┌──────────────────────────────────────┐
                     │  Model providers (pluggable)         │
                     │  OpenAI-compatible API / Ollama      │
                     └──────────────────────────────────────┘
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Backend:&lt;/strong&gt; Python 3.12 + FastAPI, SQLAlchemy 2.0 + Alembic&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontend:&lt;/strong&gt; React 18 + Vite + TypeScript + TailwindCSS&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data:&lt;/strong&gt; PostgreSQL 16 + pgvector (for report semantic search)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI:&lt;/strong&gt; pluggable OpenAI-compatible models (multimodal/text) + optional local Ollama for fully-offline operation&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deploy:&lt;/strong&gt; single &lt;code&gt;docker compose up -d&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Why FastAPI + React?
&lt;/h3&gt;

&lt;p&gt;FastAPI gives clean async handlers and Pydantic-validated schemas — perfect for the AI-agent-style tool-calling layer. React + Vite keeps the dashboard snappy. PostgreSQL + pgvector avoids a second vector database — one storage engine for structured data &lt;em&gt;and&lt;/em&gt; embeddings keeps the deploy story simple for a home server.&lt;/p&gt;




&lt;h2&gt;
  
  
  Key engineering decisions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. The "person-level profile" as a single source of truth.&lt;/strong&gt;&lt;br&gt;
Every extracted value carries provenance — which report, which date, confirmed or not. The AI consultation layer reads from this profile rather than re-interpreting raw uploads every time. This is what makes answers &lt;em&gt;grounded&lt;/em&gt; instead of hallucinated.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Cost is a real concern for a home app.&lt;/strong&gt;&lt;br&gt;
I aggressively cut LLM calls: no duplicate metric-extraction calls per conversation, and periodic summaries skip the LLM entirely when a period had no new data. A self-hosted app that costs pennies to run actually gets used.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Structured output + human confirmation.&lt;/strong&gt;&lt;br&gt;
AI extraction is powerful but not infallible. Every report goes through &lt;em&gt;extract → confirm → archive&lt;/em&gt;, so garbage never silently enters the health record.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Privacy as the default posture.&lt;/strong&gt;&lt;br&gt;
Data stays local. Model calls go only to the provider &lt;em&gt;you&lt;/em&gt; configure, and you can go fully offline with Ollama. Optional Bearer-token auth + per-member rate limiting protects the instance.&lt;/p&gt;




&lt;h2&gt;
  
  
  The dual-entry UX (Web + chat)
&lt;/h2&gt;

&lt;p&gt;A full dashboard is powerful but heavy for "hey, is this blood pressure okay?" So there are &lt;strong&gt;two entrances&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;WebUI&lt;/strong&gt; — the complete management backend: profile dashboard, report management, trends, checkup recommendations, summaries, settings.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Feishu/Lark bot&lt;/strong&gt; — the lightweight daily entry: snap a report photo, ask a quick question, log a metric — all in a chat you already have on your phone.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Data flows between both automatically. Same profile, same single source of truth.&lt;/p&gt;




&lt;h2&gt;
  
  
  What I'd tell my past self
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Build the privacy story first, not last.&lt;/strong&gt; Self-hosted users care about &lt;em&gt;why&lt;/em&gt; — lead with it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A photo of a report is the killer feature.&lt;/strong&gt; Multimodal extraction is what separates this from a spreadsheet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep it runnable on 2 GB RAM.&lt;/strong&gt; The easiest project to promote is the one people can actually deploy on a spare mini-PC.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ship a bilingual README&lt;/strong&gt; (English + Chinese) — the self-hosting community is global.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/wangzhengpengjay/AI-Health-Steward.git
&lt;span class="nb"&gt;cd &lt;/span&gt;AI-Health-Steward
&lt;span class="nb"&gt;cp&lt;/span&gt; .env.example .env        &lt;span class="c"&gt;# set MULTIMODAL_API_KEY and TEXT_API_KEY&lt;/span&gt;
&lt;span class="nb"&gt;cp&lt;/span&gt; .env backend/.env
docker compose up &lt;span class="nt"&gt;-d&lt;/span&gt;
docker &lt;span class="nb"&gt;exec &lt;/span&gt;health-steward-backend alembic upgrade &lt;span class="nb"&gt;head&lt;/span&gt;
&lt;span class="c"&gt;# WebUI: http://localhost:5173   |  API docs: http://localhost:8000/docs&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A one-command demo-data seed makes it easy to explore before wiring up real accounts.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If this resonates, give it a ⭐&lt;/strong&gt; — it helps other people who want their health data on their own shelf find it. And PRs and feature suggestions are genuinely welcome.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;AI Health Steward is an open-source project (&lt;a href="https://github.com/wangzhengpengjay/AI-Health-Steward/blob/main/LICENSE" rel="noopener noreferrer"&gt;MIT&lt;/a&gt;). It is not a medical device, does not provide diagnoses, and is not a substitute for professional medical care.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>selfhosted</category>
      <category>ai</category>
      <category>privacy</category>
      <category>healthtech</category>
    </item>
    <item>
      <title>How I Built a Self-Hosted Family AI Health Steward (Your Health Data, on Your Shelf)</title>
      <dc:creator>wang zhengpeng jay</dc:creator>
      <pubDate>Tue, 11 Aug 2026 03:14:41 +0000</pubDate>
      <link>https://dev.to/wang_zhengpeng_jay/how-i-built-a-self-hosted-family-ai-health-steward-your-health-data-on-your-shelf-mo1</link>
      <guid>https://dev.to/wang_zhengpeng_jay/how-i-built-a-self-hosted-family-ai-health-steward-your-health-data-on-your-shelf-mo1</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; — I built and open-sourced &lt;strong&gt;AI Health Steward&lt;/strong&gt;, a self-hosted, private AI health manager for families. It reads photos of lab reports with multimodal LLMs, builds a structured per-person health profile, shows trends on a dashboard, and answers health questions grounded in &lt;em&gt;your actual data&lt;/em&gt; — all running on your own server. Privacy isn't a feature; it's the whole point. &lt;a href="https://github.com/wangzhengpengjay/AI-Health-Steward" rel="noopener noreferrer"&gt;Star it on GitHub&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  The problem: your health data is a product
&lt;/h2&gt;

&lt;p&gt;Every family has a shoebox — or a folder — of medical reports: blood tests, blood-pressure logs, prescriptions, scan findings. And every "convenient" health app wants to hold those records for you. But hold them &lt;em&gt;where&lt;/em&gt;? On someone else's cloud, to be monetized, analyzed, or lost when the startup pivots.&lt;/p&gt;

&lt;p&gt;Health records are the most sensitive data you own. They shouldn't be a product. They should live on &lt;strong&gt;your&lt;/strong&gt; shelf.&lt;/p&gt;

&lt;p&gt;So I built the opposite: a self-hosted AI health steward where the data never leaves your server.&lt;/p&gt;




&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;📄 &lt;strong&gt;Take a photo of a lab report → structured data.&lt;/strong&gt; A multimodal LLM extracts key metrics (BP, glucose, lipids, CBC…) with your confirmation before anything is filed.&lt;/li&gt;
&lt;li&gt;🧬 &lt;strong&gt;A person-level health profile&lt;/strong&gt; as the single source of truth — basics, metrics, diagnoses, medications, allergies, lifestyle, family history, and &lt;em&gt;data provenance&lt;/em&gt; (where each value came from).&lt;/li&gt;
&lt;li&gt;📈 &lt;strong&gt;Trend visualization&lt;/strong&gt; with anomaly markers and clinical &lt;strong&gt;critical-value alerts&lt;/strong&gt; (e.g. BP ≥ 180/110 triggers a "see a doctor" banner).&lt;/li&gt;
&lt;li&gt;💬 &lt;strong&gt;AI consultation grounded in real data&lt;/strong&gt; — not a generic chatbot. Intent routing + function calling means answers reflect &lt;em&gt;your&lt;/em&gt; profile, not Wikipedia.&lt;/li&gt;
&lt;li&gt;🗓️ &lt;strong&gt;Personalized checkup plans&lt;/strong&gt; via a 1+X+Y framework, with budget tiers and safety/contraindication screening.&lt;/li&gt;
&lt;li&gt;📋 &lt;strong&gt;Periodic health summaries&lt;/strong&gt; (weekly/monthly/yearly), &lt;strong&gt;risk scales&lt;/strong&gt; (PHQ-9, GAD-7, diabetes, ASCVD), and &lt;strong&gt;follow-up/medication reminders&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;🧠 &lt;strong&gt;RAG over your own history&lt;/strong&gt; — archived reports are vectorized so you can ask "what did my A1C trend look like over 3 years?"&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  The architecture
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;┌──────────────┐     ┌──────────────────────────────────────┐
│   WebUI      │────▶│            FastAPI backend           │
│ React + Vite │     │  API / services / providers / prompts │
└──────────────┘     └───────────────┬──────────────────────┘
┌──────────────┐                     │
│ Feishu bot   │────▶  WebSocket ◀───┤
└──────────────┘                     ▼
                     ┌──────────────────────────────────────┐
                     │  PostgreSQL 16 + pgvector (RAG)      │
                     └──────────────────────────────────────┘
                     ┌──────────────────────────────────────┐
                     │  Model providers (pluggable)         │
                     │  OpenAI-compatible API / Ollama      │
                     └──────────────────────────────────────┘
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Backend:&lt;/strong&gt; Python 3.12 + FastAPI, SQLAlchemy 2.0 + Alembic&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontend:&lt;/strong&gt; React 18 + Vite + TypeScript + TailwindCSS&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data:&lt;/strong&gt; PostgreSQL 16 + pgvector (for report semantic search)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI:&lt;/strong&gt; pluggable OpenAI-compatible models (multimodal/text) + optional local Ollama for fully-offline operation&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deploy:&lt;/strong&gt; single &lt;code&gt;docker compose up -d&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Why FastAPI + React?
&lt;/h3&gt;

&lt;p&gt;FastAPI gives clean async handlers and Pydantic-validated schemas — perfect for the AI-agent-style tool-calling layer. React + Vite keeps the dashboard snappy. PostgreSQL + pgvector avoids a second vector database — one storage engine for structured data &lt;em&gt;and&lt;/em&gt; embeddings keeps the deploy story simple for a home server.&lt;/p&gt;




&lt;h2&gt;
  
  
  Key engineering decisions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. The "person-level profile" as a single source of truth.&lt;/strong&gt;&lt;br&gt;
Every extracted value carries provenance — which report, which date, confirmed or not. The AI consultation layer reads from this profile rather than re-interpreting raw uploads every time. This is what makes answers &lt;em&gt;grounded&lt;/em&gt; instead of hallucinated.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Cost is a real concern for a home app.&lt;/strong&gt;&lt;br&gt;
I aggressively cut LLM calls: no duplicate metric-extraction calls per conversation, and periodic summaries skip the LLM entirely when a period had no new data. A self-hosted app that costs pennies to run actually gets used.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Structured output + human confirmation.&lt;/strong&gt;&lt;br&gt;
AI extraction is powerful but not infallible. Every report goes through &lt;em&gt;extract → confirm → archive&lt;/em&gt;, so garbage never silently enters the health record.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Privacy as the default posture.&lt;/strong&gt;&lt;br&gt;
Data stays local. Model calls go only to the provider &lt;em&gt;you&lt;/em&gt; configure, and you can go fully offline with Ollama. Optional Bearer-token auth + per-member rate limiting protects the instance.&lt;/p&gt;




&lt;h2&gt;
  
  
  The dual-entry UX (Web + chat)
&lt;/h2&gt;

&lt;p&gt;A full dashboard is powerful but heavy for "hey, is this blood pressure okay?" So there are &lt;strong&gt;two entrances&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;WebUI&lt;/strong&gt; — the complete management backend: profile dashboard, report management, trends, checkup recommendations, summaries, settings.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Feishu/Lark bot&lt;/strong&gt; — the lightweight daily entry: snap a report photo, ask a quick question, log a metric — all in a chat you already have on your phone.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Data flows between both automatically. Same profile, same single source of truth.&lt;/p&gt;




&lt;h2&gt;
  
  
  What I'd tell my past self
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Build the privacy story first, not last.&lt;/strong&gt; Self-hosted users care about &lt;em&gt;why&lt;/em&gt; — lead with it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A photo of a report is the killer feature.&lt;/strong&gt; Multimodal extraction is what separates this from a spreadsheet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep it runnable on 2 GB RAM.&lt;/strong&gt; The easiest project to promote is the one people can actually deploy on a spare mini-PC.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ship a bilingual README&lt;/strong&gt; (English + Chinese) — the self-hosting community is global.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/wangzhengpengjay/AI-Health-Steward.git
&lt;span class="nb"&gt;cd &lt;/span&gt;AI-Health-Steward
&lt;span class="nb"&gt;cp&lt;/span&gt; .env.example .env        &lt;span class="c"&gt;# set MULTIMODAL_API_KEY and TEXT_API_KEY&lt;/span&gt;
&lt;span class="nb"&gt;cp&lt;/span&gt; .env backend/.env
docker compose up &lt;span class="nt"&gt;-d&lt;/span&gt;
docker &lt;span class="nb"&gt;exec &lt;/span&gt;health-steward-backend alembic upgrade &lt;span class="nb"&gt;head&lt;/span&gt;
&lt;span class="c"&gt;# WebUI: http://localhost:5173   |  API docs: http://localhost:8000/docs&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A one-command demo-data seed makes it easy to explore before wiring up real accounts.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If this resonates, give it a ⭐&lt;/strong&gt; — it helps other people who want their health data on their own shelf find it. And PRs and feature suggestions are genuinely welcome.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;AI Health Steward is an open-source project (&lt;a href="https://github.com/wangzhengpengjay/AI-Health-Steward/blob/main/LICENSE" rel="noopener noreferrer"&gt;MIT&lt;/a&gt;). It is not a medical device, does not provide diagnoses, and is not a substitute for professional medical care.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>selfhosted</category>
      <category>ai</category>
      <category>privacy</category>
      <category>healthtech</category>
    </item>
  </channel>
</rss>
