I was wondering the exact same thing a few days ago and spent some amount of time googling it.
There’s already such a project actually, called Swanye. There seems to be a single person working on it, so if anyone has time to help I’m sure it will be appreciated
Tidal’s pretty good, they cost the same as spotify but all accounts have access to lossless. The playlists it makes for me are no worse than spotify’s and I can sleep happy knowing the artists I listen to get compensated better than on either Spotify or Apple Music.
I also feel the app’s design helps me see music in the context of the album it was released in instead of as random tracks, which has made me reconnect with some kinds of music I’d grown apart from after I got Spotify.