• Stars
    star
    8,749
  • Rank 3,978 (Top 0.09 %)
  • Language
    C++
  • License
    MIT License
  • Created about 5 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A library for building cross-platform native desktop applications with Node.js and CSS ๐Ÿš€. React NodeGui : https://react.nodegui.org and Vue NodeGui: https://vue.nodegui.org

NodeGui

All Contributors JS Party #96 Build and Test status Discuss on GitHub

Build performant, native and cross-platform desktop applications with Node.js and CSS like styling.๐Ÿš€

NodeGUI is powered by Qt6 ๐Ÿ’š which makes it CPU and memory efficient as compared to other chromium based solutions like Electron.

If you are looking for React based version, check out: React NodeGUI.

If you are looking for Vue based version, check out: Vue NodeGUI.

If you are looking for Svelte based version, check out: Svelte NodeGUI

Visit https://nodegui.github.io/nodegui for docs.

logo

How does it look?

demo_linux demo_win demo_mac
kitchendemo_macdemo_win

Code Examples

https://github.com/nodegui/examples


Features

  • ๐Ÿงฌ Cross platform. Works on major Linux flavours, Windows, and MacOS.
  • ๐Ÿ“‰ Low CPU and memory footprint. Current CPU stays at 0% on idle and memory usage is under 20MB for a Hello World program.
  • ๐Ÿ’… Styling with CSS (includes actual cascading). Also has full support for Flexbox layout (thanks to Yoga).
  • โœ… Complete Nodejs API support (Currently runs on Node v16.x - and is easily upgradable). Hence has access to all Nodejs 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 ๐Ÿ˜‰).

Getting Started

Installation

To install latest stable release:

npm install @nodegui/nodegui

To install the latest version available on master branch:

npm install https://github.com/nodegui/nodegui/releases/download/v0.0.0-latest-master/nodegui-master.tgz

or a shorter version:

npm i http://master-release.nodegui.org

If the installation fails to download the Qt binaries, a mirror can be used by setting the following environment variable and running the install command again:

QT_LINK_MIRROR=<alternative domain> # eg. QT_LINK_MIRROR=https://qt-mirror.dannhauer.de

npm install @nodegui/nodegui

See FAQs for more details.

Community guides

Talks/Podcasts

Docs for contributing

It is easier than you think, try it

Looking to contribute? 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

Building from source

This section is useful for those wanting to work on NodeGui itself.

Required tooling

NodeGui requires CMake and Compilation Tools as it is a wrapper for a native C++ widget toolkit QT. Detailed instructions here: https://www.sitepoint.com/build-native-desktop-gif-searcher-app-using-nodegui/

TL;DR:

MacOS

brew install cmake
brew install make

Windows

https://cmake.org/download/

Linux (Debian/Ubuntu)

sudo apt-get install pkg-config build-essential
sudo apt-get install cmake make
sudo apt-get install mesa-common-dev libglu1-mesa-dev

Linux (Fedora/RHEL/CentOS)

sudo dnf groupinstall "Development Tools" "Development Libraries"
sudo dnf groupinstall "C Development Tools and Libraries"
sudo dnf install mesa-libGL mesa-libGL-devel

Building

Once you have cloned this git repository, run this to build:

npm install
npm run build

The last step will takes some time to run as it builds the C++ binaries at the core of NodeGui.

Using your own custom Qt installation (Optional)

Compiling Qt from source

You will need to download and install Qt from source since there are no binaries from Qt for M1 yet.

(https://www.reddit.com/r/QtFramework/comments/ll58wg/how_to_build_qt_creator_for_macos_arm64_a_guide/)

git clone git://code.qt.io/qt/qt5.git
cd qt5
git checkout 5.15

./init-repository --module-subset=essential -f
git submodule init qtsvg
git submodule update qtsvg

cd ..
mkdir qt5-5.15-macOS-release
cd qt5-5.15-macOS-release

../qt5/configure -release QMAKE_APPLE_DEVICE_ARCHS=arm64 -opensource -confirm-license -nomake examples -nomake tests -skip qt3d -skip webengine -skip qtactiveqt -skip qtcanvas3d  -skip qtdeclarative -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtcharts -skip qtgraphicaleffects -skip qtlocation  -skip qtpurchasing -skip qtquickcontrols -skip qtquickcontrols2 -skip qtremoteobjects -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtvirtualkeyboard -skip qtscript

make -j15

make install

This should install Qt into something like this /usr/local/Qt-5.15.3 (your directory can change. This will be displayed when running make)

Pointing nodegui to use your custom Qt installation

Now just set export QT_INSTALL_DIR=<your qt path> . In the above example it would look something like this export QT_INSTALL_DIR=/usr/local/Qt-5.15.3. Add this in your .zshrc or .bashrc so that you dont need to repeat this process again.

Now just rm -rf node_modules and do npm install again.

The logs should say something like CustomQt detected at <your qt path>. Hence, skipping Mini Qt installation.

Running example programs

A number of small programs to show different parts of the Qt API are in src/examples. They can be run directly with:

npm run qode dist/examples/modelview_1_readonly.js

Updating docs

npm run docs

then followed by:

cd website && GIT_USER=<your_git_username> yarn deploy

Funding

NodeGui is an open source project and requires your support. If you like this project, please consider supporting my work by clicking on the Sponsor button on this Github repository or via Ko-Fi. Alternatively, Issues on NodeGui can be funded by anyone via Issuehunt and the amount will be distributed to respective contributors.

Buy Me a Coffee at ko-fi.com ย  ย issuehunt

Special Thanks

Code of Conduct

https://github.com/nodegui/.github/blob/master/CODE_OF_CONDUCT.md

License

MIT

Backers ๐Ÿš€

Thanks goes to these wonderful people.

Yuriy Yazlovytskyy
Yuriy Yazlovytskyy
John Susek
John Susek
Marc Dijoux
Marc Dijoux
Stephen Belanger
Stephen Belanger
Rustam
Rustam

Maintainers โœจ

People maintaining this project.

Atul R
Atul R
Simon Edwards
Simon Edwards

Contributors โœจ

Thanks goes to these wonderful people (emoji key):


Lucas Ramage

๐Ÿ“–

Denis Sikuler

๐Ÿ“–

Nahuel Josรฉ

๐Ÿ’ฌ

Kakul Gupta

๐Ÿ’ป

Rahul Gaba

๐Ÿ’ป

Paweล‚ Borecki

๐Ÿ’ป

Marcus S. Abildskov

โš ๏ธ

รtila Camurรงa Alves

๐Ÿ“–

James Hibbard

๐Ÿ’ป

Soonwoo Hong

๐Ÿ’ป

Roy Sommer

๐Ÿ’ป

Paulo Coghi

๐Ÿค”

Balthild Ires

๐Ÿ’ป

Dimitar Nestorov

๐Ÿ’ป

Mikko Sairio

๐Ÿ’ป

Pepijn

๐Ÿ’ป

slidinghotdog

๐Ÿ’ป

Bundyo (Kamen Bundev)

๐Ÿ’ป

feng8848

๐Ÿ’ป

Maksim Karelov

๐Ÿ’ป

mspencer92

๐Ÿ’ป

blncd2020

๐Ÿ“–

gluaxspeed

๐Ÿ’ป

Solant

๐Ÿ’ป

Shubham Zanwar

๐Ÿ’ป

Singha360

๐Ÿ’ป

Mihkel

๐Ÿ’ป

Stephen A

๐Ÿ’ป

ๆตๅ›้…ฑ

๐Ÿ’ป

Adam Gastineau

๐Ÿ’ป

swittk

๐Ÿ’ป

craftingmod

๐Ÿ’ป

Doug Barbieri

๐Ÿ’ป

HENRIQUE DE SOUZA NERY

๐Ÿ’ป

Ruslan Garifullin

๐Ÿ’ป

Ranieri

๐Ÿ’ป ๐Ÿ“–

Nathanael Anderson

๐Ÿ’ป

Ross

๐Ÿ’ป ๐Ÿ“–

4h7l

๐Ÿ’ป

Maks

๐Ÿ’ป

zhb124404

๐Ÿ“–

Wyatt Kirby

๐Ÿ’ป

Steven Koch

๐Ÿ’ป

Simon Edwards

๐Ÿ’ป

This project follows the all-contributors specification. Contributions of any kind welcome!

More Repositories

1

react-nodegui

Build performant, native and cross-platform desktop applications with native React + powerful CSS like styling.๐Ÿš€
TypeScript
6,164
star
2

svelte-nodegui

Build performant, native and cross-platform desktop applications with native Svelte + powerful CSS-like styling.๐Ÿš€
TypeScript
2,835
star
3

vue-nodegui

Build performant, native and cross-platform desktop applications with native Vue + powerful CSS like styling.๐Ÿš€
TypeScript
800
star
4

packer

Package and deploy apps built with NodeGui to all platforms
TypeScript
200
star
5

examples

Repo containing example apps made with NodeGui and React NodeGui
TypeScript
186
star
6

react-nodegui-starter

Starter repository for react based native desktop apps using react-nodegui
JavaScript
173
star
7

nodegui-starter

A starter repo for NodeGui projects
TypeScript
122
star
8

qode

DEPRECATED: Please see https://github.com/nodegui/qodejs instead
C++
91
star
9

awesome-nodegui

Useful resources for creating apps with NodeGui
82
star
10

svelte-nodegui-starter

JavaScript
55
star
11

vue-nodegui-starter

starter skeleton repository for vue-nodegui projects
Vue
32
star
12

nodegui-plugin-webview

[WIP] A NodeGui plugin that adds webview support
C++
29
star
13

nodegui-plugin-animation

A NodeGui plugin that adds native animation capabilities to NodeGui widgets and objects. Based on QAnimation
C++
13
star
14

nodegui-plugin-title-bar

Plugin for NodeGUI to hide macOS title bar and leave only traffic lights.
Objective-C++
12
star
15

os-utils

A helper module for NodeGui which contains OS specific native features.
C++
9
star
16

cra-template-react-nodegui

The CRA bootstrap template for creating desktop apps with react-nodegui
JavaScript
7
star
17

nodegui-plugin-example

an example native plugin
C++
6
star
18

postcss-nodegui-autoprefixer

A postcss plugin for prefixing css in NodeGui to make it work with Qt
TypeScript
6
star
19

parcel-plugin-nodegui

official parcel plugin for using and bundling assets with your nodegui app
JavaScript
6
star
20

devtools

React NodeGui's devtools support module.
JavaScript
5
star
21

artifact-installer

An artifact or prebuilt binary/dependency installer for NodeGui. Used to setup minimal Qt installation etc
TypeScript
2
star
22

svelte-nodegui-preprocessor

TypeScript
2
star
23

.github

Default Org health files
1
star