DeskGap wants to be your go-to framework for building cross-platform desktop apps with web technologies
Enabling native capabilities while keeping the size in check, DeskGap is a framework you may want to have a look at! Did I mention it is designed as an alternative to Electron? Let’s take a closer look.
Designed to be a more lightweight alternative to Electron, DeskGap bundles a Node.js runtime and leaves the HTML rendering to the operating system‘s webview. This way, the framework enables native capabilities while keeping the in check.
Sounds interesting? Let’s have a closer look.
window.deskgap is available to UI scripts.
Communication between threads – UI threads communicate with the node thread in two ways:
messageNode(analogous to Electron’s
ipcMain) for sending messages.
asyncNode(to be documented; analogous to Electron’s
remotebut in an asynchronous style) for requiring CommonJS modules, invoking methods and accessing properties.
Synchronous and asynchronous dispatching – Most UI-related APIs in the node thread dispatches an action synchronously to the UI thread. Due to the lack of related functionalities provided by the system’s webview, UI threads do not have any API that synchronously dispatches actions to the node thread.
Have a look at the official documentation to find out more info on DeskGap’s functions. Keep in mind, however, that DeskGap is still a work in progress so you may find some parts of the documentation still missing.
If you are interested in giving DeskGap a try, there are several prerequisites you should keep in mind. You can find the build instructions here.