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

Now.gg webapp #2633

Open
4 tasks done
Combustion-is-fun opened this issue Aug 14, 2024 · 14 comments
Open
4 tasks done

Now.gg webapp #2633

Combustion-is-fun opened this issue Aug 14, 2024 · 14 comments

Comments

@Combustion-is-fun
Copy link

What is the name of the app?

Now.gg

Where is the app hosted?

It's a web app. Now.gg

About the app

Best solution until the Great Waydroid Crisis has been solved

(still doesn't work on RPI 5)

TLDR its a cloud-based mobile gaming platform.

I know that you will not like this that much because it is a web app. It allows "access" to android apps without having to install them. I am curious about whether a bash script can be made to install it. (Context, I code python/kivy/kivymd, bash is weird.)

From the website

About Us

now.gg provides an infinite gaming device in the cloud to its users. The specs of this device can expand dynamically based on the game the user is playing. The device is ad supported so there is no cost of playing the game in the cloud.

now.gg is a member of the Open Gaming Store Alliance (OGSA) and the Open Gaming Store is natively integrated into the experience. The user in addition is able to upload games they would like to play if they are not available via the Open Gaming Store.

Unlike traditional services, the now.gg portal and website is completely built by UGC and AI. The game recommendation system, like the home page, automatically selects games which users are playing on the platform.

The system automatically creates community pages for gamers on the platform around the game they are playing. The ability to see each other's gameplay by default is coming soon to these community pages.

now.gg, Inc. is headquartered in the Silicon Valley and its 500+ employees are distributed over 20 countries. It is backed by leading venture capital firms in the US, Japan, Korea and India.

Confirmations

@theofficialgman
Copy link
Collaborator

We are not interested in additional webapps at this time. See #1791 , links from there, and search the repo for "webapps" for more information.

Users can add their own webapps using the existing "Web Apps" application in pi-apps

@theofficialgman theofficialgman closed this as not planned Won't fix, can't repro, duplicate, stale Aug 14, 2024
@theofficialgman theofficialgman changed the title A temporary possible solution to the Waydroid crisis (maybe) Now.gg webapp Aug 14, 2024
@Combustion-is-fun
Copy link
Author

Combustion-is-fun commented Aug 14, 2024

Just a thought.

If it is possible to install web apps through PI Apps directly wouldn't that allow the list of apps to expand by 100 fold? 90% of the Apps I use on my RPI are web apps. Web Apps have the advantage of automatic updates and do not take up huge amounts of space. I know this is already possible by the "Web Apps" App and almost all the browsers but my thinking is to streamline the set-up for new users as much as possible as well as improve the app store to more than a couple hundred apps.

You beat me to it, but thanks.

@Botspot
Copy link
Owner

Botspot commented Aug 14, 2024

If it is possible to install web apps through PI Apps directly wouldn't that allow the list of apps to expand by 100 fold? 90% of the Apps I use on my RPI are web apps. Web Apps have the advantage of automatic updates and do not take up huge amounts of space. I know this is already possible by the "Web Apps" App and almost all the browsers but my thinking is to streamline the set-up for new users as much as possible as well as improve the app store to more than a couple hundred apps.

Fair point. But is more better? Or is it a dilution of what Pi-Apps is known for - the only place to get things that are hard to install?

@Combustion-is-fun
Copy link
Author

An exploration of this idea.

Ignore any spelling and grammar mistakes. These are my random thoughts typed on a page for the purpose of exploring the idea of many web apps on Pi Apps further.

What is the vision for Pi Apps?

The first thing to note is that this is your project and you get the biggest say in the future of this project. I can only give my opinion as a user. How far you take Pi Apps depends on your ambition for it. I am not proposing to get rid of "Web Apps" app but instead adding safe, popular and useful web apps as a means of saving the developers at Pi Apps time.

Pi Apps isn't just "the only place to get things that are hard to install".

I see Pi Apps as a medium for maximising the user experience on the Raspberry Pi. This is why I would like to be able to install web apps via PI Apps. I believe that its potential has not been pursued far enough.

Is more better? More Choice is better.

Competition leads to innovation out of necessity to improve. I want 10 different drawing apps (for example), constantly competing, improving and adding features to become better. Choice is essential to improvement. Adding web apps increases the speed of use, number and visibility of software available on the Raspberry Pi. I think that this is a good thing.

Raspberry Pi as the desktop computer.

The usability of the Pi is detrimental to its future. PI Apps improves the smoothness of the transition between nicer Operating Systems and Linux. The idea of a Raspberry Pi as a desktop computer is impossible without Pi Apps for 99% of users because we do not have your technical knowledge. That is the effect of only 200 apps.

Native Apps are not the future.

The future of the app is uncertain. Apps when developed are hardware-specific, this is bad because when you change XYZ in hardware you have to update your app, and sometimes rewrite it. It also means you can't run the same software on different hardware without an emulator or docker both of which are difficult. This means that it is easier to build a web app and maintain it because it will run on all devices that can run a browser. So in the coming years and decades, the number of new native apps will decline and the number of web apps will increase. Why maintain an app for Windows, IOS, Android, Linux amd64, and Linux Arm64 when you could have 1 web app? Allowing web apps to PI Apps future proofs it. Chrome OS can run native apps, however most of the apps installed are web apps.

Professional Developers

Just relying on open-source GitHub projects for your apps limits Pi Apps. I love open-source GitHub projects. However, such projects depend on the owners to maintain them and development is slow. I can make a kivy app which displays Wikipedia articles but it'll never compare to a Wikipedia web app because Wikipedia has more time, money, resources and knowledge to satisfy that particular need. The same can be said about everything from 3D art software to advanced physics calculators. By adding web apps you can use popular professionally developed stable web software.

The power of Javascript.

I have played around with the language, it's difficult compared to Python but powerful. Many simple open-source web apps are hosted on Git Hub, which can speed up the development of simple but needed tools. With JS web apps updates happen automatically rather than lengthy updates, further increasing UX.

Security

Pi Apps would not have web apps with any malware or anything. Everything on here is checked to be secure. That is the trust that people put into it. People would not need to check the source code of every app before installing them because Pi Apps is trusted to have done that. Therefore installing web apps through Pi Apps is faster and safer than installing through the "Web Apps" app or normally through your browser for the average user. Remembering people of all ages use the Pi.

My quick list of pros and cons.

Pro's

  • Security
  • Improvements to UX
  • Future-proof's Pi Apps
  • Allows you to use the work of professional developers at companies.
  • Web apps don't care about 32bit or 64bit, installation scripts will be easier to manage.
  • Increases the chances that users of Pi Apps find a solution to their problem/need.
  • It gives users more choice.
  • Javascript and associated libraries are powerful.
  • Web apps use less space than regular apps.

Cons

  • Dilution of what Pi-Apps is known for?
  • A bit more work for everyone to get it to work.

Maybe you could poll the users of Pi Apps to see what they think.

In the end, it's down to you, Botspot and theofficialgman, do you want Pi Apps to be a small project which fixes a limited set of problems on the RPi or a massive community-driven user-friendly platform and app store? The Google Play Store is The App Store for Android but it had to start somewhere. Pi Apps has the potential to be The App Store for the Raspberry Pi but not with just a couple hundred apps. But web apps could make it happen. I want to see Pi Apps do well.

@Combustion-is-fun
Copy link
Author

Combustion-is-fun commented Aug 16, 2024

I feel sorry for @Botspot having to read all that. But that was my best attempt to sell the idea.

@Botspot
Copy link
Owner

Botspot commented Sep 9, 2024

I finally read it! Sorry for the delay - I have been moving back to college and had a lot of things to work on in the real world. (homemade electric vehicles, setting up a workshop in my dorm room, expanding a small business, etc)

Early on, I actually was interested in some form of app store for Pi to contain user-generated stuff like reviews and screenshots. That did not end up happening, but it is interesting that you mentioned it @Combustion-is-fun.

I think our visions are aligned more than you think. But my main reason to say 'no' to most ideas is one simple fact: I don't have the time or willpower to do everything people want.
I sincerely wish Pi-Apps could be like Wikipedia or other lively open-source projects, where hundreds of people are working in unison with leadership. But maybe pi-apps is too niche.

And it's not for a lack of trying. I have tried my best to keep at least the app-scripts super easy to read, and have spent extensive time on documentation, all in an effort to encourage interested users into turning into contributors. And that happened! A little bit, for a little while, but only for as long as COVID lockdowns were in effect. If you look at the contributors graphs for pi-apps, it has really been only me and gman since 2021.

We need help. Not suggestions and ideas, help.

  • Someone suggested a python interface for pi-apps, to make it less "clunky". But they did not know how, and they were not willing to learn how.
  • Someone suggested pi-apps be made compatible with x86, and actually forked it and did some of the work, but then they lost interest and abandoned the effort.
  • Someone recently suggested pi-apps be made compatible with Arch linux instead of only Debian, but when I said I could not do that by myself and that most of the work on the Arch side would need to come from them, the idea stayed in the idea stage.
  • People have suggested pi-apps stop using scripts and only use pre-downloadable debs.
  • People have suggested pi-apps add multiple languages.
  • People have suggested pi-apps add downgrading support and security features like checksums for all downloads.
  • People have suggested the ability to choose between downloading precompiled versions of apps, or compiling locally.
  • People have suggested making pi-apps POSIX-compliant.
  • People have suggested adding hundreds of applications from the debian repos.

The majority of these ideas sound awesome and I would be eager to assist in the efforts. But what all of these people have in common is a "seagull parenting" mentality: fly in, make a mess telling everyone how things ought to be done, and then leave. Usually they say "the team should get it done". There is no team. It's me and one other guy, and much of the time nowadays it's just him. And he has better repos to work on.

So with this web apps suggestion, I propose to you this: if you demonstrate that you can spend some time on this, then I will too.

Here's my proposal:

@Combustion-is-fun You find 100+ high quality web apps and put them into a spreadsheet. Have columns for the name, menu category, URL, a description, and maybe one more for source code or docs. Also make a folder with crisp 64x64 icons for each webapp.
If you can do this to reasonable satisfaction, I will then do one of two things:

  • Add a new category and type of app to Pi-Apps which will list these webapps, where installing them would generate a launcher in the menu. To reduce effort and dilution of the existing apps folders, these apps would be stored differently in a simpler folder structure and a TSV text file.
  • Make a simple GUI for your spreadsheet that will function like the first option, but will be in its own github repo and an app that is installable from Pi-Apps. (Similar to what I chose to do with the Windows Screensavers app, where it made more sense to do it that way than adding each screensaver to pi-apps directly)

How does that sound?

@theofficialgman
Copy link
Collaborator

Just wanted to add some brief commentary as the "other guy".

I sincerely wish Pi-Apps could be like Wikipedia or other lively open-source projects, where hundreds of people are working in unison with leadership. But maybe pi-apps is too niche.

Wikipedia just has a much much lower bar to entry by its nature. Know something about something? You can edit or write a Wikipedia article. The same is not true for pi-apps and never will be (and thats OK, I think we have done our reasonable best to lower the bar to entry).

We need help. Not suggestions and ideas, help.

I can confirm this sentiment. For anyone that happens to read this, a good place to start learning how to help is by reading our documentation https://pi-apps.io/wiki/development/

... The majority of these ideas sound awesome and I would be eager to assist in the efforts. But what all of these people have in common is a "seagull parenting" mentality: fly in, make a mess telling everyone how things ought to be done, and then leave. Usually they say "the team should get it done". There is no team. It's me and one other guy, and much of the time nowadays it's just him. And he has better repos to work on.

Same as Botspot mentioned for him, I have irl responsibilities to take care of. Over the past few years, I have tried my best to contribute in multiplicative ways to any project (ie: add automation for detection of issues, automation for updating, automated notifications, and writing documentation). IMHO, if you want anything to last beyond you (or just make your life easier in the future) all of those things help over and over again (multiplicative). For example, our bot is more active than Botspot or I could ever be https://github.com/Botspot/pi-apps/commits?author=github-actions%5Bbot%5D and these updates used to be an entirely manual process where we often were slow to update or missed updates entirely.

So with this web apps suggestion, I propose to you this: if you demonstrate that you can spend some time on this, then I will too.

Here's my proposal:

... How does that sound?

I'd just like to add that I approve of that proposal as well.

@Combustion-is-fun
Copy link
Author

Challenge Accepted

Thank you @Botspot and @theofficialgman.

The Method itself.

  1. Finding 100 high-quality, web apps. Difficulty: Easy.
  2. Getting the icons. Difficulty: Medium.
    (If anyone is interested) I will loop through a list of URLs and use the web scraping Python library, beautifulsoup4 to download the icons whilst implementing try/except error handling to keep the script smooth.
  3. Making a table. Difficulty: easy.

Understanding your situation.

I understand your educational situation because I am now in your position educationally.

What I have been working on.

It's funny really, since I did not think you would reply or be accepting of this idea I have already started research for the Python version of pi apps which is backwards compatible with previous installation scripts. I began researching the ".desktop" files for web apps and then engineered the web app install via a Python script. This is similar to how the "Web Apps" app works but installing it as a desktop app rather mobile/tablet app for a better UI feel.

The installation method is really easy. Far easier than native apps. For example the Youtube web app.
install.py

def INSTALL_WEB_APP(APP_NAME, APP_URL, APP_ICON):
    DESKTOP_FILE_CONTENT = f'''#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name={APP_NAME}
Icon=../project_name/icons/{APP_ICON}
Exec=/usr/bin/chromium-browser --app={APP_URL} --start-maximized'''
    DESKTOP = open(f"../Desktop/{APP_NAME}.desktop", "w")
    DESKTOP.write(DESKTOP_FILE_CONTENT)
    DESKTOP.close()

APP_NAME = "YouTube"
APP_URL = "https://www.youtube.com/"
APP_ICON = "youtube.png"
INSTALL_WEB_APP(APP_NAME, APP_URL, APP_ICON )

I think the bash equivalent uses echo "some text" | sudo tee -a <file name>.

Lightening the load.

Serious consideration of funding.

You need to start community financial support and use that money for rewards for solving problems. There are GitHub repos with a crypto wallet to donate to and other methods of funding such as buymeacoffee. This isn't me saying you should become the next evil Google or whatever just that money gives you choices. It alleviates pressure on you to maintain a difficult project.

Bash isn't where the coders are.

Sorry, this hurts but it had to be said. People learn (and should learn) the programming languages Python and Javascript (Django and React frameworks respectively) because that is where the money is (those bills won't pay themselves). The only reason they know a little bash is because they have to work with the terminal. Whilst this project is fantastic, long-term Pi Apps needs a Python-based "superset" in a stable GUI library such as PyQT (not Kivy unfortunately).

Questions

Do icons have to be png?

This is important because some sites use favicons or jpegs, SVG's. If so, Is that a pi-apps limitation?

How strict is your definition of "web app"?

Any site can be packaged to look like a desktop app. There is a whole range of virtual infrastructure that makes up the web from pure html/css sites to static javascript sites to full-blown framework sites with database connectivity.

What I will do in the meantime.

I will create a document of 100 full-blown web apps and add any useful site which might not be considered a web app as well.

@theofficialgman
Copy link
Collaborator

It's funny really, since I did not think you would reply or be accepting of this idea I have already started research for the Python version of pi apps which is backwards compatible with previous installation scripts.

Botspot never said that and I also do not agree with that statement. python would be useful for a UI rewrite (eg: PyQt) not for installation/uninstallation scripts. Using python (or any language) only increases the barrier to entry (every project on the internet has documentation for how to install, compile, package, etc their project using bash scripting, anything else needlessly complicates things).

Serious consideration of funding.

You need to start community financial support and use that money for rewards for solving problems. There are GitHub repos with a crypto wallet to donate to and other methods of funding such as buymeacoffee. This isn't me saying you should become the next evil Google or whatever just that money gives you choices. It alleviates pressure on you to maintain a difficult project.

Funding simply doesn't work in small open source projects. I have had a GitHub sponsors profile since April and nobody has funded me there. Even if we were funded it would not resolve anything. We need people, not money. We could never make enough money through donations to afford to setup rewards.

Bash isn't where the coders are.

Unless we want to rewrite underlying pi-apps GUI (which we don't need to do for the long term health of the project), we don't need coders. We just need people willing to read some documentation and write install/uninstall scripts and package them up the pi-apps way and commit to maintaining them for the projects they are interested in.

@Combustion-is-fun
Copy link
Author

Update: I am still working on this, I have over 300 web apps because I found a web resource with loads. Based on the requirements for Pi apps, I am currently sorting through them. In conjunction with web apps provided by large companies, (like Google and Microsoft) I have found other great projects which will be great editions to Pi Apps. Such as SketchPad. Do you have any other recommendations?

@Botspot
Copy link
Owner

Botspot commented Sep 15, 2024

I do have a number of simpler websites bookmarked for doing simple tasks. Here are a few examples:

Bear in mind not all of these may fit well with the other web apps that you have in mind, or they may be too niche, or they may require an account. Just because I listed these does not mean you should feel pressured to add them.

@Botspot Botspot reopened this Sep 15, 2024
@Combustion-is-fun
Copy link
Author

If I get time, I will add them too. I am still going through all of the others that I web-scraped from a site and removing unsafe ones (HTTP://, dubious advertising, or strange downloads). A good lot of them are niche but useful. I am trying to get multiple web apps for each service. The criteria also include being either free or free tier but I am not excluding web apps which require an account. I think I am going to break the process up a bit. 20 web apps at a time because the Python script I wrote provided a ".ods" file with hundreds of lines. Is this ok with you?

@Botspot
Copy link
Owner

Botspot commented Sep 17, 2024

I think I am going to break the process up a bit. 20 web apps at a time because the Python script I wrote provided a ".ods" file with hundreds of lines. Is this ok with you?

My reason for asking for there to be at least 100 is to force us to do either nothing at all, or launch in a big and meaningful way.

@Combustion-is-fun
Copy link
Author

Fair enough. It won't be just 100 unfortunately, that's too small. I am still working on this but I do have academic obligations now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants