Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selfhostable (website) version of spotube #780

Open
1 task done
Robin-Sch opened this issue Oct 4, 2023 · 8 comments
Open
1 task done

Selfhostable (website) version of spotube #780

Robin-Sch opened this issue Oct 4, 2023 · 8 comments
Labels
enhancement New feature or request

Comments

@Robin-Sch
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Pain

Not really a "pain", but I'd be nice if there was a web version of the app. This way I don't have to download spotube to multiple devices, I can just have one selfhosted version and all my settings, preferences, and everything else is "synced" between devices.

Suggested solution

A docker container maybe? Or else just something which you can install and it will listen on a specific port and you can then visit it using a web browser

Useful resources

No response

Additional information

No response

@Robin-Sch Robin-Sch added the enhancement New feature or request label Oct 4, 2023
@Robin-Sch Robin-Sch changed the title Selfhostable (website) versin of spotube Selfhostable (website) version of spotube Oct 4, 2023
@MerkomassDev
Copy link
Contributor

That would involve rewriting the entire app all over again (completely new app). From what I can tell, flutter is not compatible with web in any useful way.

@KRTirtho
Copy link
Owner

KRTirtho commented Nov 14, 2023

This is possible as Flutter supports web. But the problem is with CORS. YouTube API and some of the Spotify API simply won't work in the browser.

@timkgh
Copy link

timkgh commented Dec 28, 2023

If you make a self-hosted server, you could proxy requests to the YT and Spotify APIs via the server so it's the same domain, no CORS issues.

A web app would be nice and it would complete the offering.

@KRTirtho
Copy link
Owner

In that case, what will be the point of making this app if everything will be handled by a central server?
The benefit of using a binary app instead of client-server based app is it can do all the operations in real-time without facing any CORS errors with minimal resource usage.
If there's a client-server based config, we've to reimplement the entire logic in server-side dart and call from Spotube flutter web. What's really the point in that case? You get double the overhead and double resource usage. Btw, flutter web is not as smooth as native apps.

@timkgh
Copy link

timkgh commented Dec 29, 2023

You would not implement the entire logic, just a light (almost) pass-through proxy for the YT and Spotify API requests.

Btw, flutter web is not as smooth as native apps.

This probably kills the idea, though I think it would be nice to have something similar to https://spotfy.one or https://beatbump.io/ or https://hyperpipe.surge.sh/

@P6g9YHK6
Copy link

linuxserver released an image for this:
https://github.com/linuxserver/docker-spotube

@KRTirtho
Copy link
Owner

That's great 🚀 . But I wonder how that works through Web. Because analyzing the Dockerfile, it seems to only install the .deb package of Spotube. How's that gonna be accessible through PORT 3000?
My guess is probably somekind of automated VNC?

@Robin-Sch
Copy link
Author

It's based on kasmvnc, so yeah

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants