r/QuantifiedSelf • • 20h ago

Woke up with a random hip infarction at a young age, spent time in the hospital, and ended up building BioStack: a self-hosted home for all my labs, scans, and watch data

Thumbnail gallery
17 Upvotes

Hey r/QuantifiedSelf,

A while ago I woke up one random morning with brutal pain in my leg. At first I brushed it off and figured I just slept weird or pulled something. Every single step hurt like hell, I still tried to walk it off for a bit, and eventually realized this wasn't going away and went to the hospital.

The doctors told me I'd had an infarction in my hip joint (avascular necrosis), meaning blood supply cut off and bone tissue around there started dying. Honestly, I didn't even know a joint could have an infarct. I had to be admitted right away, looking at roughly a year of treatment and recovery.

Lying in that hospital bed, one thought kept bugging me: I actually try to take care of myself. I get blood work done, eat decently, live a pretty normal life, and yet this happens out of nowhere. Meanwhile, all my past blood tests, ultrasound reports, hospital papers, and watch data were scattered across random PDFs, messengers, and folders. I wanted one place to hold everything about my body and be able to ask my own AI questions (like what patterns I'm missing, what might be behind certain issues, or what to ask my doctor next) without re-explaining a million things every time, and definitely without uploading my medical history to some random cloud chatbot.

That's how BioStack started, and I finally cleaned it up to open-source under MIT: https://github.com/Green-Blood/biostack

What it actually does right now:

  • Keeps your hospital stays, doctor visits, lab reports, and medication/supplement courses on one timeline, with longitudinal charts, reference bands, and before/after course diffs.
  • Tracks organ ultrasounds over the years (thyroid, kidneys, liver, etc.) so you can see scan-to-scan changes instead of digging through old PDFs.
  • Pulls in Apple Health & Samsung Health ZIP exports (or phone sync webhooks): sleep stages, resting HR, HRV, SpO2, and steps against your own 30-day baseline.
  • Runs time-lagged correlation checks locally on your own logs (supplements, caffeine, air pressure, sleep, symptoms) and builds a printable one-page /doctor summary before appointments.
  • Local math first, your own AI second: Tabular lab PDFs and ultrasound measurements parse locally with rules. When you do want AI summaries or Q&A, it builds a compact structured snapshot from your SQLite DB and talks to local Ollama / LM Studio (AI_PROVIDER=openai_compat) or your own Gemini/OpenAI key.

Stack is FastAPI + SQLite + Next.js (single SQLite file + data/ folder, one-click full ZIP backup/restore).

If you want to poke around with synthetic data without touching anything, there's an isolated demo compose:

git clone https://github.com/Green-Blood/biostack.git
cd biostack
docker compose -f docker-compose.demo.yml up --build

(opens at http://127.0.0.1:3000)

Still actively building this while recovering. If you try it out, let me know what breaks or what you'd want added next (Garmin/Oura imports, family profiles, custom lab PDF formats, etc.).


r/QuantifiedSelf • • 1h ago

I've been logging every place I go on a hexagon grid

Post image
2 Upvotes

I wanted one long-term record of where I've physically been: not individual workouts or trips, but total coverage, built up over years.

I do a lot of urban exploring, and when you're browsing the satellite maps it hard to remember the things you've already checked out. So thats why I created an app for this. The map you see is zoomable, and the hexagons exist at 13 different zoomlevels. (Its using the uber H3 hexagon system)

Data is exportable as sqlite database, and you dont need any one accounts etc.

Its an opensource IOS app, for people that are interested in tracking their own map coverage: https://github.com/psy0rz/hexplorer

Its very amazing to be able to browse the map and pick out interesting looking places you've never been before.


r/QuantifiedSelf • • 20h ago

5'12, trying to dunk. after caffeine my best jump went down and my average went up

2 Upvotes

i wouldn't call caffeine a win off this one session. my answer changes depending on which jumps i count

i'm training to dunk by dec 31. i film my jumps in 240 fps slo-mo and get the height from air time (how long i'm off the ground). on 11/19 i tried a caffeine drink in the middle of a session:

  • set 1, no caffeine: 23.7", 24.5", 23.1" (average 23.8")
  • set 2, about 73 min after the drink: 24.3", 24.0" (average 24.2")
  • all standing two foot jumps, all read the same way

so the best rep went down 0.2" and the average went up 0.4". on the 24.5" jump, the same clip reads anywhere from 24.0" to 25.1" depending on the takeoff and landing frames

other limits: one day, 3 reps vs 2, i knew when i'd had it, and set 2 came later in the same session, so warm-up or tiredness is mixed in too

for n=1 tests like this, how many sessions would you run before you trusted a half inch difference?

Original research