Build performant, native and cross-platform desktop applications with Node.js and Svelte.π
Svelte NodeGUI is powered by Svelte and Qt5 π which makes it CPU- and memory-efficient when compared to Chromium-based solutions like Electron. Svelte NodeGUI is essentially a Svelte renderer for NodeGUI.
If you are looking for the React-based version, check out: React NodeGUI.
If you are looking for the Vue-based version, check out: Vue NodeGUI.
Visit: https://svelte.nodegui.org for docs.
More screenshots?
https://github.com/nodegui/examples
- 𧬠Cross platform. Should work on major Linux flavours, Windows and macOS.
- π Low CPU and memory footprint. Current CPU stays at 0% on idle and memory usage is under 20 MB for a Hello World program.
- π Styling with CSS (includes actual cascading). Also has full support for Flexbox layout (thanks to Yoga).
- β Complete Node.js api support (Currently runs on Node v12.x - and is easily upgradable). Hence has access to all Node.js-compatible npm modules.
- πͺ Native widget event listener support. Supports all events available from Qt / NodeJs.
- πΈ Can be used for Commercial applications.
- π΅οΈββοΈ Good Devtools support.
- π Good documentation and website.
- π§ββοΈ Good documentation for contributors.
- π¦Ήπ»ββοΈ Good support for dark mode (Thanks to Qt).
- π First class TypeScript support. (Works on regular JS projects too π).
- Check out svelte-nodegui-starter to get up and running with your own Svelte NodeGUI app!
- Read through the Svelte NodeGUI docs
- Check out the examples: https://github.com/nodegui/examples.
- Tutorial: Build a native Meme Search Desktop app with Javascript (NodeGUI) and Giphy API
File issues and get in touch (e.g. on the Svelte Discord's #nativedev
channel), and we can guide you to something broken that needs fixing!
Looking to contribute to NodeGUI? If you wish to implement a new widget/add more features and need help understanding the codebase, you can start here: Contributing developer docs.
Please read https://github.com/nodegui/.github/blob/master/CONTRIBUTING.md
npm run build
Optionally set QT_INSTALL_DIR='/path/to/qt'
environment variable to build using your own version of Qt.
The docs generation process is currently a manual operation (text edit everything yourself). The docs are a copy-paste of the React NodeGUI docs, with some text replacement. We're also carrying around a slight fork of the React NodeGUI source in the codebase. In future we hope to clean up this workflow and make it more automatable using typedoc
just like the original React NodeGUI workflow.
cd website && GIT_USER=<your_git_username> npm run deploy
As no funding infrastructure is in place for Svelte NodeGUI specifically, please consider supporting NodeGUI instead, which would be just as productive!
- NodeGUI logo: Thanks to Vishwas Shetty from the Noun Project.
- halfnelson for Svelte Native, which Svelte NodeGUI forks (as it is an excellent example of building a custom Svelte renderer).
- rigor789 for NativeScript Vue Next, from which Svelte NodeGUI takes (and adapts) its DOM implementation.
- a7ul for creating NodeGUI and unwittingly teaching me how to build renderers in the first place.
https://github.com/nodegui/.github/blob/master/CODE_OF_CONDUCT.md
MIT
People maintaining this project.
Jamie Birch |
Thanks goes to these wonderful people (emoji key):
Jamie Birch π» |
Saurav Sahu π» |
Matthieu PERREIRA DA SILVA π» |
Jonas Grunert π» |
LukeyBeachBoy π» |
This project follows the all-contributors specification. Contributions of any kind welcome!