webui-dev / webui

Use any web browser or WebView as GUI, with your preferred language in the backend and modern web technologies in the frontend, all in a lightweight portable library.
https://webui.me
MIT License
2.37k stars 146 forks source link

difference between webui and http-server-cgi #288

Closed laoshaw closed 6 months ago

laoshaw commented 6 months ago

webui seems nice, better than webview based approach such as tauri and smaller than electron.js.

it's essentially running a web server(civetweb) on each OS right? how is this different from running a civetweb directly and open a browser tab to interact with that? yes I don't get a webui standalone interface(kiosk mode helps a bit) that is separated from the browser, but I can use all existing web programming on a tab from my browser.

I'm using civetweb on 3 OSes with simple html/js stuff.

AlbertShown commented 6 months ago

No difference. The most important feature of webui is not the web-server part but the WebSocket-server part, so just include webui.js to establish a connection between your custom browser-tab window and your backend application and here we go.

More details in custom web server example: https://github.com/webui-dev/webui/tree/main/examples/C/custom_web_server

laoshaw commented 6 months ago

Thanks. Closing this one as it's not an issue anyways.