Running commit cd46374.
About this site
A personal website I built to keep track of my hobbies: who I am, how much I play, what I smoke, and what I code. Everything here can be read by anyone; anything that changes data or costs money sits behind my login.
What's on it
- Gaming: Steam and PlayStation playtime, achievements and trophies, synced every night. Steam and PSN only report total playtime, so the site stores a snapshot each day and the weekly charts come from the differences.
- Shisha: my tobacco collection with stock in grams, mixes with their ratios, a log of every session (which takes the grams off the stock), charts of what I smoke, and mix suggestions from Claude based on what's in stock and what I rated well.
- GitHub: my public projects, synced every night.
How it's built
- Flask (Python) rendering pages on the server, with htmx for the interactive bits and Pico.css for the look. No JavaScript framework and no build step; the charts are plain SVG or Chart.js.
- SQLite: one database file holds everything.
- Made for the phone first: bottom tab bars, big tap targets, and it can be added to the home screen like an app.
Where it runs
On one small Hetzner server with 1 GB of RAM, running two copies of the site side by side: dev for trying things out and production, which is what you're looking at. nginx sends each hostname to its own app, and each has its own database.
Every push to GitHub runs the tests, and when they pass GitHub Actions deploys
it: to dev from the dev branch, to production from main. A deploy that
fails its health check rolls back to the previous version by itself. The
database is backed up every night.
Most of the code was written together with Claude Code.