xgo | v8-jsi | |
---|---|---|
3 | 1 | |
2,052 | 147 | |
- | -0.7% | |
0.0 | 6.5 | |
over 2 years ago | 2 months ago | |
Shell | C++ | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
xgo
-
Sciter, the 5 MB Electron alternative, has switched to JavaScript
I see, in this thread, talks about what Sciter does and does not offer.
It's not the only alternative to Electron, but it might be one that offers predictable and repeatable results.
I released a small open source project on HN last week (https://github.com/Fusion/pngsource) and I wrote its backend logic in Go. I built the frontend using Tailwind (https://tailwindcss.com) and DaisyUI (https://daisyui.com) and, using Go compiler flags, I can release the app using both WebView (github.com/webview/webview) (which, yes, does require the host OS' collaboration) and Wails (wails.app) (which also does.)
On Linux/AMD64, the binary's size is 3.7M when building for WebView, and 6.8M when targeting Wails.
The way the app works is I drag/drop files to the UI, magic happens, and I use github.com/ncruces/zenity to prompt the user for a save location.
I cross-compile the apps using xgo (https://github.com/karalabe/xgo)
It's been working pretty well on Linux, Windows, MacOS. I think WebView's approach of limiting the feature set is working well as it feels more "native" than Wails (better refreshes and resize operations for instance)
However, I already have a few tickets reporting that, for instance, the app is displayed as a blank window in some environments. And it's hard to debug remotely, obviously. So, this is where Sciter may be a better option.
-
Go & secondary groups: a kaniko adventure!
The test program runs great on macOS, but when I use xgo to cross-compile it for Linux, all it outputs is:
-
Yet another way to convert a website (with backend) to desktop app
And, xgo to build cross-platform from Linux; yet I can run in Windows and macOS.
v8-jsi
-
Sciter, the 5 MB Electron alternative, has switched to JavaScript
It's possible though not straight-forward. React Native Windows seems to have a version of V8 wrapped with JSI (for use in React Native) though by the looks of the project, it appears to be only used internally and not really meant for stand-along consumption: https://github.com/microsoft/v8-jsi
What are some alternatives?
daisyui - ๐ผ ๐ผ ๐ผ ๐ผ ๐ผ โThe most popular, free and open-source Tailwind CSS component library
quickjspp - Port of QuickJS Javascript Engine.
kaniko - Build Container Images In Kubernetes
quickjs - Public repository of the QuickJS Javascript Engine.
sciter - Sciter: the Embeddable HTML/CSS/JS engine for modern UI development
Tailwind CSS - A utility-first CSS framework for rapid UI development.
systray - a cross platfrom Go library to place an icon and menu in the notification area
busybox - The Swiss Army Knife of Embedded Linux - private tree
sciter-js-sdk - Sciter.JS - Sciter but with QuickJS on board instead of my TIScript
zhquiz - Quiz for Chinese Hanzi, Vocab and Sentence daily!