Lurker News
Hey HN! Some more info: I’m an NHS doctor and the founder of Pi-A (https://www.pi-a.io) which developed Lungy (https://www.lungy.app). Lungy is an app (iOS only for now) that responds to breathing in real-time and was designed to make breathing exercises more engaging and beneficial to do. It hopefully has many aspects of interest to the HN community – real-time fluid, cloth and soft body sims running on the phone’s GPU.

My background is as a junior surgical trainee and I started building Lungy in 2020 during the first COVID lockdown in London. During COVID, there were huge numbers of patients coming off ventilators and they are often given breathing exercises on a worksheet and disposable plastic devices called incentive spirometers to encourage deep breathing. This is intended to prevent chest infections and strengthen breathing muscles that have weakened. I noticed often the incentive spirometer would sit by the bedside, whilst the patient would be on their phone – this was the spark that lead to Lungy!
The visuals are mostly built using Metal, with one or two using SpriteKit. There are 20 to choose from, including boids, cloth sims, fluid sims, a hacky DLA implementation, rigid body + soft body sims. The audio uses AudioKit with a polyphonic synth and a sequencer plays generated notes from a chosen scale (you can mess around with the sequencer and synth in Settings/Create Music).
There are obviously lots of breathing and meditation apps out there, I wanted Lungy to be different - it's about tuning into your surroundings and noticing the world around you, so all the visuals are nature-inspired or have some reference to the physical world. I didn’t like other apps required large downloads and/or a wifi connection, so Lungy’s download size is very small (<50MB), with no geometry, video or audio files.
Lungy is initially a wellness app, but I’d like to develop a medical device version for patients with breathing problems such as asthma, chronic obstructive pulmonary disease (COPD) & long COVID. Thanks for reading - would love to hear feedback!

Comments (215) 85 threads

Earlier comments
gerbilly#
I wanted to chime in here and mention the concept of "Email Apnea"¹.

The idea is that we hold our breaths when anticipating an outcome.
The term was coined in relation to email, but I believe that programmers probably have it even worse, because we basically spend our entire day in a a loop where we, try something, anticipate the results try again, repeat...
I personally find myself doing it. I guess the best analogy for it is that we "wait with bated breath" to see the results of our last command or compilation. I think it's a problem inherent in all disembodied work.
We are supposed to move the body and the mind as a unit, instead, we are increasingly making ourselves into brains in a jar, and I think our breathing patterns reflect it.
1: https://www.msn.com/en-us/health/medical/email-apnea-is-a-re...

ElijahLynn2 replies#
Looks cool. I would try it. I'm on Android. This could be a PWA for both web and Android targets. Not sure about iOS yet, do they still not support PWAs?
Zanovis2 replies#
Or flutter to target all 3 :)
devadvance1 reply#
Highly encourage exploring Flutter as well, at least for new platforms. Lottie animations would pair nicely, as would any future goal of expanding to web or desktop.
domber2 replies#
Flutter is just awesome. Can't recommend it enough.

Never had an easier time porting UI to so many, different platforms.
Flutter alone saved a year of work.

Continue this thread — 2 replies

ElijahLynn#
Good point!
toastal#
PWA would cover KaiOS as well.
amadeuspagel1 reply#
Looks extremely cool, but I wish this was a web app. I can't use it because I don't have an iOS device and I also think it would be useful on desktop, to take a break, as an alternative to checking HN, twitter ...
lukko1 reply#
Thanks! Yep, I would love for it to also be a web app one day, I think definitely would be possible now with WebGPU. Will hopefully be able to release an Android version this year..
tr33house#
awesome. Looking forward to trying this on Android!
curun1r2 replies#
I’ve done a lot of freediving training and your app is now my fourth breathing app on my phone, so I may be an outlier, but in trying a few exercises in your app, I found that it was going way too quickly and causing me to over-breathe (hyperventilate) and get light headed. I played with the settings a bit and, while it helped, it was still nowhere near the right timing for me.

It’s interesting and beautifully done, but unless there’s something I’m doing wrong I’m afraid it’s just not usable for me in its current form. Perhaps there could be an advanced setting tucked away that let me bump up the exhale and hold times to prevent over breathing?
Maybe not the most useful feedback, but I’m always happy to see more apps in this space and I’d love it if this became part of my routine. And, as a side note, some information about what Lungy Deluxe actually adds would be useful to know if I want to unlock it.

phaedrus4411 reply#
Interesting feedback. What apps do you prefer?
curun1r#
My favorite is an app called ApneaTrainer. It has two different breathing patterns, but I do the 1-4-2 pattern for 30 min, 3 times a week. It helps you set your level as you improve. I’ve mostly plateaued at level 16, but I still find it useful for maintaining my level and I love the post workout calmness that I get.
lukko#
Thanks for the feedback and that's interesting - I wonder if your free-diving training has something to do with it - I guess you must be very attuned to feelings of hyperventilation before a long dive? If it feels like you're hyperventilating, you could try turning down the breath volume (to low) and increasing the sensitivity (to high). The standard box and rectangle breathing are relatively short breath phases and holds - the Deluxe version unlocks all the visuals, gives more progress data and does include some much longer breath phases. I would like to add custom timings too, so people can set their own exercise.

Load more comments