Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
libui-node
Advanced tools
libui Node.js bindings.
libui is a simple and portable (but not inflexible) GUI library in C that uses the native GUI technologies of each platform it supports.
It is in early stage of development, but is evolving at great pace and is really awesome.
It could become an awesome, lightweight alternative to Electron to develop multiplatform GUI.
The project run on any node version > 0.12.
However, some example in examples folder uses ES6 syntax. We will soon configure babel transpilation for them. Meanwhile, if you are testing the project on Node.js < 6,
you can check examples/core-api.js
that use Es5 syntax.
libui
API, except for these ones are implemented.linux
, so this is the preferred platform to test. OSX should work too, but it's not tested. Windows has yet to be configured in build scripts, but it will be supported in further releases.Travis
thank you to @jjrv awesome work.We don't publish new versions to NPM yet.
When we will, we are planning to download libui
binaries directly from its github repo. See some details here.
Meanwhile, you have to build libui
on your machine. This require the use of CMake 2.8.11 or newer.
brew install cmake
apt-get install cmake
You also need to pull the libui
git submodule to grab it's sources.
git clone https://github.com/parro-it/libui-node.git
git submodule init
git submodule update
npm install
To run the control gallery example, type:
npm start
Note: There is some problem with then control gallery example on OSX. We are investigating it, if you are affected, you can meanwhile try the core-api example:
npm run start-core
Plase look in examples folder. We will write complete API documentation soon...
This binding is actually implementing low-level API straight to the libui
ones.
We plan to add another level of API on top of it to simplify GUI building. You can get a taste of how they will be in example utils.js file.
This new API will support transpilation from JSX to further simplify GUI building.
These works will become in future the base for a React-Native like project.
Since libui
binaries are relatively small, we plan to precompile them for supported platforms and publish binaries file directly to NPM, to avoid the native build stage on install.
libui
widget implementaion is written in it's own C++ file in src
folder.src/ui-node.h
that contains all classes definitions.node
convention: if you attach an handler to an event, previous one will be overwritten and never be called. This will be resolved on future high-level API repo, where each widget will be an EventEmitter
instance.libui.startLoop
to start the GUI event loop. It run one step at a time, you can see in index.js how this is implemented.libui
git submoduleAndrea Parodi | Juha Järvi | Chan Guan Hao |
The MIT License (MIT)
Copyright (c) 2016 parro-it
FAQs
Node.js bindings for libui
The npm package libui-node receives a total of 17 weekly downloads. As such, libui-node popularity was classified as not popular.
We found that libui-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.