News for hackers. Stuff that matters.

Show HN: Liftosaur – Weightlifting tracker app for coders

https://www.liftosaur.com/about/

I made a weightlifting tracker app specifically for coders.

In weightlifting, progressive overload is one of the most important parts of gaining muscle. You should constantly increase weights, reps, use different set schemes, and that will make your muscles grow.

There're many weightlifting programs, using various overloading schemes - linear increasing of weights, some periodic ladder-up increase, switching to different set schemes in case of failures, etc. You can implement all of that in Liftosaur.

It works this way: each exercise may define a bunch of variables, that could be changed when you finish a workout. It could be weight, your 1 rep max, number of successful attempts, etc. You can use those variables in reps and weight values. To update the variables, you define a script, that will change them after you've done all the sets of the exercise. The script may change them based on whether you successfully done all the sets x reps, or if you failed any of the sets.

For scripting, I added a super simple scripting language with JavaScript-like syntax called Liftoscript. It mostly only supports if/else, variable setting, and has some built-in types like numbers, pounds and kilograms.

The app contains a bunch of built-in programs, they all are implemented using Liftoscript, and completely customizable. Check it out!

( 9 comments | 4 points | on HN )
Re:Show HN: Liftosaur – Weightlifting tracker app for coders by natalia-a on Wednesday February 22, 2023 @03:02PM (#34901786)
Tried it, it looks pretty cool, I could use it. A bit confusing at the beginning, a lot of stuff going on, probably would benefit from some tutorial.

Would really help to provide some examples or maybe a library of scripts, right now it's a bit unclear how to write those scripts and what the syntax is.

Re:Show HN: Liftosaur – Weightlifting tracker app for coders by astashov on Wednesday February 22, 2023 @03:17PM (#34901988)
Thanks for the feedback! Yeah, that's a valid point. You can probably right now look at built-in programs for examples, or check the docs on the site: https://www.liftosaur.com/docs/docs.html. Hopefully that helps!
Re:Show HN: Liftosaur – Weightlifting tracker app for coders by arran-nz on Wednesday February 22, 2023 @04:41PM (#34903302)
Very impressive! I appreciate all the effort that has clearly gone into the documentation - I'm going to try this with the Strong Lifts program.

Have you considered FDroid for distribution as you're using the AGPL license? [0]

[0]: https://github.com/astashov/liftosaur

Re:Show HN: Liftosaur – Weightlifting tracker app for coders by astashov on Wednesday February 22, 2023 @04:57PM (#34903505)
Thanks! Yeah, there was a similar issue on Github - https://github.com/astashov/liftosaur/issues/37.

But I'm frankly not super familiar with FDroid and alternative stores, and have no idea how hard or easy to distribute it there. The main benefit is that'd be available for devices without Google services, right? Or something else?

Re:Show HN: Liftosaur – Weightlifting tracker app for coders by arran-nz on Sunday February 26, 2023 @05:21AM (#34944461)
Yeah, for people living a de-googled life - For example, people running LineageOS or GrapheneOS.
Re:Show HN: Liftosaur – Weightlifting tracker app for coders by zoover2020 on Wednesday February 22, 2023 @06:51PM (#34904855)
Amazing! As an avid lifter this is a really cool concept. Any background on the DSL implementation?

Will try it soon :)

Re:Show HN: Liftosaur – Weightlifting tracker app for coders by astashov on Wednesday February 22, 2023 @07:00PM (#34904933)
It's a simple recursive descent parser, written in TypeScript from scratch. About 500 lines of code: https://github.com/astashov/liftosaur/blob/master/src/parser...
Re:Show HN: Liftosaur – Weightlifting tracker app for coders by dsabanin on Friday February 24, 2023 @11:37AM (#34926404)
Congrats on the launch, it looks great! I'm thinking of giving it a go.
Re:Show HN: Liftosaur – Weightlifting tracker app for coders by astashov on Friday February 24, 2023 @01:30PM (#34928002)
Thanks! Lemme know how it goes :)