Frosteryd

1177 CLI

· frosteryd.me

the 1177 TUI

Your Swedish medical journal, in your terminal.

Your medical records live on journalen.1177.se, behind a login, one page at a time. This is a small terminal app that gets you a local copy: log in with BankID (the QR code renders right in your shell), sync your journal to Markdown + JSON, and browse it without touching a browser.

Why

Local files are the point. Grep years of records, diff what changed after a visit, run your own analysis — or point an AI agent at the files to help decode what the doctor actually wrote. Especially useful during ongoing care, when new notes and results land every week.

How it’s built

  • One Python file, on purpose — Playwright drives the site, Textual renders the TUI.
  • The whole BankID login happens in the terminal: the animated QR is sniffed from the IdP and re-rendered as unicode half-blocks in your shell.
  • Incremental sync into a local JSON store, rendered to per-date Markdown. Every BankID identity gets its own profile, so family members never mix.
  • Everything stays on your machine — nothing is sent anywhere.

Made with ❤️ from the patient side of Karolinska sjukhuset — tack, vården.

Buy me a coffee