r/AskProgramming • • Oct 10 '26

whats a good web browser engine/library for linux that can be used as part of code projects?

i need a web browser code library thing whatever, which runs on linux, can be programmed, integrated into other code projects, and is standalone. i need something i can add onto things that require a web browser/html/javascript/web code, to run properly.

my goal is to make webapps that i need, run standalone as if theyre desktop programs. im starting with beepbox (https://www.beepbox.co/) because i use it alot. beepbox is free and open source, and has a offline version, but it requires a browser to run. however i may find other webapps i need to do this to in future.

also i dont want to use chromium, because its very ram intensive. i thought maybe gecko (firefox is based on it), but im not experienced in web dev, so yall probably know better, so its a good idea to ask.

can anyone recommend a good library/browser thing that can do this type of thing?

(i hope this is the right sub to post this to)

2 Upvotes

19 comments sorted by

1

u/m0ahgra Oct 10 '26 edited Oct 10 '26

the problem is that if i can download and setup the webapp offline, it still depends on a web browser to run its code, and to display its graphics. i just want a web browser code library thing or whatever would be best for this, to just be able to take the webapp and then combine it with a copy of this reduced browser, and then basically have converted the webapp to a desktop app. i dont want to use my default web browser because i want the webapp to become standalone, as if its its own app, not tied up with my actual browser. also this is just for me, im not doing this for a company or for release or something.

2

u/lgastako Oct 10 '26

Sounds like you might be looking for https://www.electronjs.org/ ?

2

u/m0ahgra Oct 10 '26

unless i see better answers, i will likely go with this. thanks!

4

u/BoBoBearDev Oct 10 '26

The question makes no sense to me. The entire point of web app is to run on all OS and all browsers. And yet you want to lock it. And web apps are naturally RAM intensive, doesn't matter it is Firefox or Chrome (Chromium is not the problem). If you actually care about RAM, you can use dotnet or java.

1

u/Different_Pain5781 Oct 10 '26

They're just trying to run web apps like normal desktop programs. Qt WebEngine or WebKit might be worth exploring.

1

u/YMK1234 Oct 10 '26

And web apps are naturally RAM intensive

Just no. Modern browser engines are just absolute pigs in that regard. Look at how resource preserving Presto was in comparison as an example.

1

u/Distdistdist Oct 10 '26

I think what's happening is that you've learned how to make web apps (HTML+JS/Framework) and now you want to do grown-up apps.

If you want a stand alone, you want to create an actual app that runs natively, or cross-platform. Forget all that nonsense you are talking about.

1

u/m0ahgra Oct 10 '26 edited Oct 10 '26

nope. whats happened is exactly what it says in the post; i use some webapps (not written by me) for certain things, and want them to run standalone away from my normal browser, for convenience.

1

u/Distdistdist Oct 10 '26

Most of webapps require backend to function. You can't bring that locally.

1

u/m0ahgra Oct 10 '26

im not intending to do this to ones that require internet servers, just ones that actually run in the local browser. the point is to essentially bolt the browser part onto it so it can be a standalone program.

1

u/Distdistdist Oct 13 '26

You might be reinventing ChromeOS.

1

u/m0ahgra Oct 14 '26

definitely out of scope for what im doing. its just a few specific apps.

2

u/KingofGamesYami Oct 10 '26

So you want to make a PWA? But with a full browser included instead of reusing what the user already has. Why?

1

u/ConsciousBath5203 Oct 10 '26

The JavaScript runtime is the bloat. Just go download typescript and try running that. It's not worth it just learn C, it's not that hard.

0

u/m0ahgra Oct 10 '26 edited Oct 10 '26

by web app i mean any program which runs in the browser. im trying to make webapps i use, standalone. this doesnt mean i want to make ones standalone that rely on the internet, like discord for example, just things like "synthesizer in your browser" or "make fonts with your browser", that sort of thing.

1

u/grantrules Oct 10 '26

So you want to open a site (like https://midi.city/) in something that's not a browser? Like you download an app, open it up, and https://midi.city/ appears?

0

u/m0ahgra Oct 10 '26

more like the webapp thats in the website, downloaded, and modified a bit to run it in a copy of the reduced browser, so then u can run it as if it were a regular desktop app, independent from any web browser thats already on the computer. these are not webapps written by me either, converting them to another language would be laborious, so merging it with a limited browser is my compromise to just make it work without a normal browser.

1

u/Confident-Dare-9425 Oct 12 '26

You won't get a "reduced" browser. You're down to two options: something that bundles Chromium or something that uses the system browser (in you case, its libwebkit2gtk). The first option is Electron, MoBrowser, Qt Web Engine, CEF and its derivatives. The second option is Tauri, Wails, Qt WebView, SWT's Browser, and many more.

But none of them are "reduced" browsers. They will all eat up roughly the same amount of resources. If performance is really important, create apps with Qt or GTK and make them use the same API endpoints. Let Claude help you with that.