LoS

  • personal
  • 2023 – now
  • role: everything
  • solo
  • ongoing

A life-tracking system I've built and used since 2023: today one PWA that works offline on phone and desktop, on an Express and PostgreSQL backend that runs on a Raspberry Pi at home.

The LoS library, "On the desk": the latest books and films, each with when I finished it and my stars

results

  • 32 PostgreSQL tables (tasks, habits, mood, money, time, people, travel, library…), every row keyed by UUID
  • Works offline: saves queue up in order and retry until the server is back; a small Android wrapper installs it
  • AI reviews of my week, month, quarter and year with Claude and GPT: the server computes the numbers, the model writes, and each review builds on the smaller ones
  • Self-hosted on a Raspberry Pi behind Cloudflare Tunnels; CI runs the server tests, the front-end checks and Playwright on every push

the story

It started in Obsidian. In 2021 I fell deep into it and started putting everything I knew, thought and did into one ever-growing personal knowledge base. It quickly became both powerful and overwhelming: a dense map of notes, habits, ideas and fragments of daily life.

At some point I wanted more than storage: a system that could help me run my days. So in 2023 I started building my own app, LoS, short for Life Operating System. It tracks tasks, journal entries, mood, time, money, habits, books and films, and the people in my life, all structured the way I think about them.

The road here was messy. It started as an Electron desktop app, then I needed it in my pocket, so I rebuilt it in React Native with Expo and local SQLite, and kept both for a while, learning the hard way about shared codebases. Then some things turned out to be painful on a phone: long-form writing, analysis, zooming out over months. So I moved the database to a Raspberry Pi and built a web app next to the mobile one.

In the end the web app won on the phone too. Today LoS is one React and TypeScript PWA, with a small Android wrapper to install it, on an Express and PostgreSQL backend with 32 tables. It works offline: a service worker keeps a copy of what the app last read, and saves wait in a queue, in order, until the server answers again. Each section has a small Three.js scene, and the charts are D3.

The data also gets read by more than me. Claude and GPT write reviews of my week, month, quarter and year, streamed into the app as they're generated: a second pair of eyes on patterns I'm too close to see. They're built so the model has little room to make things up. The server computes the numbers (totals, trends, what changed) and the model only turns them into prose; and the reviews build on each other, the month from its weeks and the year from its months, so every call gets a small input instead of a year of raw rows.

Years of data, every rewrite

Keeping years of data intact through every rewrite, from SQLite on a phone to PostgreSQL on a Pi. Every row has a UUID, so it can move between devices and databases without clashing, and a script carried the old SQLite data into PostgreSQL. Since then the tests guard it: CI runs the server tests, the front-end checks and Playwright against a fresh, migrated database on every push.

built with