By completely skipping Spotify, and creating your own self-hosted library by buying/pirating the songs. I recommend Jellyfin and Subsonic. Koel is another good option.
Funny that from the intro it looks like we should thank apple for their ridiculous SSD pricing ($200 for 256gb is really honest) - the dev ran out of space on their MacBook and so made this webapp to free 40gb.