Live data from Hacker News

Show HN: Workout Tracker – self-hosted, single binary web application

github.com

91–100 of 102 posts

Re: Show HN: Workout Tracker – self-hosted, single binary web application

#91
post #6

I love the minor movement toward self-hosted web apps. I wish they were easy enough to setup as installing an app on Android or iPhone.

Some kind of an app store concept on a VPS that le's you just plug in these self hosted projects, like installing an Android app, is really interesting. I think docker is the closest thing we have but I could be wrong, and it's much too technical for any average person.

I've been slowly moving everything to self hosted to reduce the pain if/when I'm ever randomly banned from Google or some other huge network and can't get it re-enabled.

The downside is that I'm now my own IT department and need to perpetually monitor these things.

Re: Show HN: Workout Tracker – self-hosted, single binary web application

#92

Earlier quoted context omitted.

I think a good question to ask is, what is gained here by being a web app? Couldn't this just be an Android or iPhone (or even desktop!) app?

Well that question implies that there is some intrinsic reason not to build it as a web app. That may be the case for you if you prefer Kotlin or Swift or something, but it wouldn't be the case for me.

There is a quote that informs my thinking on this.

"The most amazing achievement of the computer software industry is the continuing cancellation of the steady and staggering gains made by the computer hardware industry" -Henry Petroski

Efficiency is very important to me. (And in the era of climate change, it should be important to everyone.) I consider web apps to be about the least efficient form of software yet discovered. We suddenly need two relatively beefy computers with multi-GHz multi-core processors and GB of RAM, one of which must be powered on 24/7, to do something that could have been done on the hardware of the mid-80s.

Re: Show HN: Workout Tracker – self-hosted, single binary web application

#93
post #90
post #88

Earlier quoted context omitted.

I wonder how the accurate the biometrics even are on things like smarth watches ?

Many (even recreational) athletes use accurate measurements (heart rate chest bands, power meters integrated into bike cranks, ... continuous glucose monitors).

Sure they use them, but almost definitely for infinitely small marginal benefit... Despite what the manufacturers of those products want you to believe.

Re: Show HN: Workout Tracker – self-hosted, single binary web application

#94
post #90

Earlier quoted context omitted.

Many (even recreational) athletes use accurate measurements (heart rate chest bands, power meters integrated into bike cranks, ... continuous glucose monitors).

Sure they use them, but almost definitely for infinitely small marginal benefit... Despite what the manufacturers of those products want you to believe.

They are used to measure performance, not to enhance it, so there is no performance benefit. But if the athletes want to have that information, who are we to judge them? I just use Strava with GPS (no HR monitor, no powermeter or anything else) and I am pretty sure the stats keep me engaged and I would be doing less physical activities without them. If it works like this for someone using their powermeter, why not?

Re: Show HN: Workout Tracker – self-hosted, single binary web application

#95
post #84
post #55

Earlier quoted context omitted.

$ kubectl get deployments.apps | wc -l 25 Minus the header, looks like ~24. I use a single-node Kubernetes cluster running Talos [1]. Running a single-node cluster is kinda dumb architecturally, but adding a new service takes deployment: : spec: template: spec: { containers: [{ ports: [...] command: [...] volumeMounts: [...] }] volumes: [...] } And then running: cue export \ --out yaml \ --expression 'deployment. ' \…

Interested in how you're using DO as an ingress. I currently run a droplet that's reaching its capacity because I'm running all the services directly on that underpowered machine. I would much rather run them from a local computer. Is it pretty straightforward to set that kind of thing up with tailscale?

Indeed! I use Headscale (though hosted Tailscale will work just fine), DO hosts the controlplane, and is also on the tailnet itself. My Caddy config has something like:

   {
    reverse_proxy 100.64.0.
  }
The mini PC IP is a Tailscale container in a pod with a second Caddy instance that routes within the cluster. For sensitive/personal services, they're only configured in the cluster-internal Caddy config, and thus only accessible over the tailnet.

One can optionally add other "hardening" at the DO layer, like Crowdsec, to minimize automated/malicious/bot traffic into your home.

Re: Show HN: Workout Tracker – self-hosted, single binary web application

#96
post #48

Earlier quoted context omitted.

Web app = Always on. No interruption from power outages or wifi problems. Higher bandwidth and more anonymous (if it's going to make requests). Virtual android device in the cloud might be a great model for it since Android has good built-in security and process isolation.

Web apps are absolutely not always on, and they are absolutely not more anonymous...

I think it's pretty obvious from the context that GP is talking about a self-hosted web app on a VPS or cloud provider. It's a lot more "always on" than your smartphone, and the anonymity is the same.

Re: Show HN: Workout Tracker – self-hosted, single binary web application

#97

Earlier quoted context omitted.

> Web app = Always on. No interruption from power outages or wifi problems Web apps don't magically produce their own compute, power and networking. They still need to be run on something . (Web app does not automatically equal SaaS, especially in this case that is explicitly billed as self-hosted.)

Unless you're self-hosting on the same computer you're using, a web app is, by definition, software as a service. But then, either you're just... running a program, or your self-hosted application lives somewhere else that still requires power and network connectivity. I promise, everyone, it is very legal and very cool to just write applications that run without TCP roundtrips. I promise.

> Unless you're self-hosting on the same computer you're using, a web app is, by definition, software as a service.

This seems extremely arbitrary and seems to assume some implicit definitions that are not common, and in fact are the opposite of what I've heard used.

IME software as a service generally speaking means somebody else is doing all the hosting and you as an end user just point your browser to it or in some cases install a local app (and often you put in your credit card and pay a monthly subscription). Self-hosting means you do all that hosting yourself. I've never seen something marketed as SaaS that expected you to host the server-side yourself, but I'd be happy to hear of an example.

> I promise, everyone, it is very legal and very cool to just write applications that run without TCP roundtrips. I promise.

That's a hell of a strawman against an argument I see nobody making.

Re: Show HN: Workout Tracker – self-hosted, single binary web application

#98

This looks super neat and would be very useful. What apps/devices do people use to collec the GPX information? I found a few in the Play Store but they don't look very privacy respecting... Edit: Currently eyeing GPSLogger: https://gpslogger.app/

If you have a Galaxy Watch you can export workout as GPX file through the Samsung Health app

Re: Show HN: Workout Tracker – self-hosted, single binary web application

#99
post #40

I came into the github not expecting to like this, but you've done a great job so far! I currently use a combination of Garmin Connect (track on watch & head unit), Intervals.icu (for fitness/freshness and more obvious tracking of performance improvement over time via various power & HR metrics), Strava (for segment and route performance change over time, and of course the social aspect... and routing), Komoot (only…

I just can't get past the Intervals design. Wanted to like it but it's an absolute cluster for me.

[dead]

Re: Show HN: Workout Tracker – self-hosted, single binary web application

#100
post #94

Earlier quoted context omitted.

Sure they use them, but almost definitely for infinitely small marginal benefit... Despite what the manufacturers of those products want you to believe.

They are used to measure performance, not to enhance it, so there is no performance benefit. But if the athletes want to have that information, who are we to judge them? I just use Strava with GPS (no HR monitor, no powermeter or anything else) and I am pretty sure the stats keep me engaged and I would be doing less physical activities without them. If it works like this for someone using their powermeter, why not?

It's fun to watch numbers go up. No-one thinks that watching numbers go up makes them go up faster. (It probably makes them go up slower in the long run (lol), by encouraging short-term thinking and planning.)
Post reply on HN