nodegui VS libui

Compare nodegui vs libui and see what are their differences.

nodegui

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 (by nodegui)

libui

Simple and portable (but not inflexible) GUI library in C that uses the native GUI technologies of each platform it supports. (by andlabs)
GUI
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
nodegui libui
17 22
8,740 10,590
0.7% -
7.6 0.0
about 2 months ago over 1 year ago
C++ C
MIT License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

nodegui

Posts with mentions or reviews of nodegui. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-20.
  • Brig: A user interface toolkit for Node.js, which is based on Qt for rendering
    3 projects | news.ycombinator.com | 20 Jan 2024
    This looks like it hasn't been maintained in years but there's a modern equivalent in NodeGUI [1] which also has React/Svelte/Vue implementations. Unfortunately it requires a custom build of Node that merges the libuv and Qt6 event loops so YMMV.

    It actually inspired me to write my own implementation with Svelte on top of QuickJS and Qt Widgets but the task of wrapping the entire Qt6 API in Rust proved to be intractable once I found out that most methods weren't marked Q_INVOKABLE and thus couldn't be called via reflection (requiring manual wrapping). Providing a `Document.createElement` API that created Qt Widgets with working attributes and event handling worked surprisingly well though!

    [1] https://github.com/nodegui/nodegui

  • Build performant, native and cross-platform desktop apps with Node.js and CSS
    1 project | news.ycombinator.com | 14 Nov 2023
  • Does anybody have trouble running NodeGui projects? Does 'nodegui-starter' repo work for you?
    2 projects | /r/node | 23 Apr 2023
    Hi, so this NodeGui library for building apps with native components is something I really want to get into, but, it does not work for me.. so I am starting this thread to check with yous (I depleted google results) if any one of you have tips or workarounds I can use. I wish to build a desktop app, but I really do not want to bundle a web browser for that purpose and NodeGui seems perfect.
  • [Hiring] Create UI to Accept User Input using NodeGui to create a Native Desktop Application
    1 project | /r/forhire | 29 Apr 2022
    Use NodeGui (or some equivalent tool) for this. Source: https://docs.nodegui.org/ This is needed because this entire project will run natively, by that I mean it will run with no browser, no local host and it no internet connection.
  • Neutralinojs - Alternativa para o Electron
    6 projects | dev.to | 21 Mar 2022
    NodeGUI
  • NodeGui – Build performant, native, cross platform desktop apps
    1 project | news.ycombinator.com | 13 Dec 2021
  • Electron Adventures: Episode 75: NodeGui React
    4 projects | dev.to | 6 Oct 2021
    Let's continue exploring Electron alternatives. This time, NodeGui. NodeGui uses Qt5 instead of Chromium, so we'll be leaving the familiar web development behind, but it tries to not be too far from it, as web development is what everyone knows.
  • How do you create a cross-platform GUI without using Electron?
    21 projects | news.ycombinator.com | 10 Sep 2021
  • Are we GUI Yet? The state of building user interfaces in Rust
    8 projects | news.ycombinator.com | 9 Jul 2021
    (Disclaimer: My knowledge of Rust very limited, but I have quite a bit of experience with getting Qt/KDE classes to work with other languages.)

    You are absolutely right. The effort to be acceptable bindings for Qt would be a tiny fraction of the cost compared to building a whole new Rust native GUI library.

    Qt is huge set of libraries with an equally huge API. But there are a lot of shortcuts and smart ways of approaching the problem to get what you want out of Qt for minimum effort.

    Bindings like PyQt and even PySide go for the nuclear option of generating bindings for the whole Qt API and trying to match the C++ API in style too. This is an absolutely massive huge task. Also, getting people to contribute to an open source bindings project is hard. Getting people to contribute to a bindings generator is even harder.

    NodeGui https://github.com/nodegui/nodegui, Qt bindings for Nodejs, on the other hand takes a very different approach which in one way is low-tech but I think is actually very smart. I'll summerise the differences:

    * It focuses on Qt Widgets first. This greatly reduces the amount of work to the parts that people actually need. (BTW, if you just want QML and Rust back-end then Jos van den Oever's work at https://invent.kde.org/sdk/rust-qt-binding-generator has probably got you covered already.)

  • Todo list of development tasks
    3 projects | /r/dogecoindev | 12 May 2021
    There is actually a new GUI framework based out of Qt (a C++ GUI framework) that I have found recently : https://docs.nodegui.org/

libui

Posts with mentions or reviews of libui. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-04.
  • Short history of all Windows UI frameworks and libraries
    1 project | news.ycombinator.com | 10 Feb 2024
    You can kind of see the desktop UI train wreck in real time here.

    We started with simple stable APIs for a common look and feel. For a while these were evolved and made available in other languages. This was back when native apps were consistent and intuitive and you could… uhh… actually write and ship them without bundling giant runtimes or checking a huge compatibility matrix.

    Then around 2012 the train rounds the bend and screeeeech it hits some bad track and starts to derail. UI starts trying to emulate the web, a terrible UI platform, and sane compositional UI libraries and APIs are abandoned in favor of XML soup.

    Since this stuff is a trash fire, this is followed by multiple incompatible attempts to replace or fix this. Most of these are abandoned dead ends.

    Meanwhile the dev community just said fuck it and went to Electron, creating today’s world where a “hello world” app with an OK button is hundreds of megabytes and has to load an entire private copy of a language runtime and rendering engine.

    Versions of this comedy of errors have occurred on every other platform, and of course there has been little effort to create a cross platform UI API that’s sane beyond Qt (with its own problems) and dozens of half completed OSS projects.

    So enjoy Electron I guess.

    There was one sane human being who tried to do this a while ago:

    https://github.com/andlabs/libui

    It’s the only sane desktop UI project I’ve seen in almost 20 years, an attempt to create an actual cross platform common API. But it’s abandoned of course, likely too difficult for one dev and nobody is going to provide financial support for anything that sane.

    Maybe AI will get good enough some day that we can use it to do a thing like that.

  • BeeWare Toga v0.4.0 – A Python native, OS native GUI toolkit
    3 projects | news.ycombinator.com | 4 Nov 2023
  • Is there no simple GUI library for pure C?
    4 projects | /r/C_Programming | 15 May 2023
    What about https://github.com/andlabs/libui
  • Capy – Cross-platform library for making true native GUIs in Zig
    4 projects | news.ycombinator.com | 1 Aug 2022
    Fantastic! This is similar to the C library `libui` since it also acts as a wrapper of native libraries of each platform.

    If only there was a way to interface to these using some declarative minimal and highly opinionated programming language and paradigm...

    https://github.com/andlabs/libui

  • Mathematical Patterns
    2 projects | /r/cprogramming | 27 Jun 2022
    For the GUI you will need a library or framework that interacts with your specifiv operating system and allows you to create windows and a canvas to which you can draw. You could give libui a chance.
  • libui-ng-sys: external FFI bindings for libui-ng
    2 projects | /r/rust | 20 Apr 2022
    libui-ng is a cross-platform GUI library with native widgets written in C. It is based on an earlier, (currently) inactive project known as libui. While Rust bindings for libui have existed for years (see ui-sys and iui), there is no solution for the new libui-ng; libui-ng-sys aims to fill this role.
  • What GUI library should I start with after learning C?
    3 projects | /r/C_Programming | 17 Feb 2022
    libui
  • Not-gtk GUI Libs/frameworks for plain C
    6 projects | /r/C_Programming | 22 Jan 2022
    https://github.com/andlabs/libui is very nice, but unfortunately dead, if it serves your purpose consider using it, this is a fork under development https://github.com/libui-ng/libui-ng
  • Ask HN: Is there any cross platform non native GUI written in C that looks good?
    2 projects | news.ycombinator.com | 7 Dec 2021
    https://github.com/andlabs/libui

    Better yet, it has excellent DSLs that make it possible to build desktop apps in a way similar to HTML, but much better due to keeping all code dynamic in one language (no static/dynamic multi-language separation/mixing dissonance):

  • Usable cross-platform GUI?
    2 projects | /r/vlang | 4 Nov 2021
    Maybe a module that uses https://github.com/andlabs/libui or a light HTML renderer?

What are some alternatives?

When comparing nodegui and libui you can also consider the following projects:

tauri - Build smaller, faster, and more secure desktop applications with a web frontend.

imgui - Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies

neutralinojs - Portable and lightweight cross-platform desktop application development framework

nuklear - A single-header ANSI C immediate mode cross-platform GUI library

QtScrcpy - Android real-time display control software

wxWidgets - Cross-Platform C++ GUI Library

awesome-electron-alternatives - A curated list of awesome Electron alternatives.

nana - a modern C++ GUI library

Jetpack-Compose-Playground - Community-driven collection of Jetpack Compose example code and tutorials :rocket: https://foso.github.io/compose

ncurses - snapshots of ncurses - see http://invisible-island.net/ncurses/ncurses.faq.html (no pull requests are accepted)

Signal-Desktop - A private messenger for Windows, macOS, and Linux.

GTK+ - Read-only mirror of https://gitlab.gnome.org/GNOME/gtk