{"id":17736670,"url":"https://github.com/parro-it/libui-napi","last_synced_at":"2025-03-31T17:31:24.303Z","repository":{"id":32141298,"uuid":"131688423","full_name":"parro-it/libui-napi","owner":"parro-it","description":"Experimental bindings for libui using n-api","archived":false,"fork":false,"pushed_at":"2021-11-16T06:55:55.000Z","size":3935,"stargazers_count":36,"open_issues_count":11,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-06T09:25:16.603Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/parro-it.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-01T07:44:10.000Z","updated_at":"2023-09-15T23:30:41.000Z","dependencies_parsed_at":"2022-08-07T17:15:26.327Z","dependency_job_id":null,"html_url":"https://github.com/parro-it/libui-napi","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Flibui-napi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Flibui-napi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Flibui-napi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Flibui-napi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parro-it","download_url":"https://codeload.github.com/parro-it/libui-napi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246379366,"owners_count":20767694,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-26T00:23:58.891Z","updated_at":"2025-03-31T17:31:23.738Z","avatar_url":"https://github.com/parro-it.png","language":"C","readme":"# libui-node\n\n\u003e Node.js bindings for [libui](https://github.com/andlabs/libui) library.\n\n[libui](https://github.com/andlabs/libui) is a lightweight, portable GUI library that uses the native GUI technologies of each platform it supports.\n\nIt is in early stage of development, but is evolving at great pace and is really awesome. It could become an awesome alternative to Electron to develop multiplatform GUI, expecially suited to develop small apps.\n\n[![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/libui-node)\n[![Travis Build Status](https://img.shields.io/travis/parro-it/libui-node/master.svg)](http://travis-ci.org/parro-it/libui-node)\n[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/ebcssfrpaypfwha4?svg=true)](https://ci.appveyor.com/project/parro-it/libui-node)\n[![NPM module](https://img.shields.io/npm/v/libui-node.svg)](https://npmjs.org/package/libui-node)\n[![NPM downloads](https://img.shields.io/npm/dt/libui-node.svg)](https://npmjs.org/package/libui-node)\n\n\n# Screenshots\n\n\u003cp align=\"center\"\u003e\nmacOS\n\u003c/p\u003e\n\n![macOS](docs/media/Window-macOS.png)\n\n\u003cp align=\"center\"\u003e\nLinux\n\u003c/p\u003e\n\n![Linux](docs/media/Window-Linux.png)\n\n\u003cp align=\"center\"\u003e\nWindows\n\u003c/p\u003e\n\n![Windows](docs/media/Window-Windows.png)\n\n# Supported platforms\n\n* Windows: Windows Vista SP2 with Platform Update or newer\n* Unix: GTK+ 3.10 or newer\n* Mac OS X: OS X 10.8 or newer\n* Node.js version 4 or greater.\n\n# Prerequisites\n\n## Prebuilt binaries\n\nAll prebuilds are build on CI and afterwards downloaded and published in the npm install phase.\nPrebuild t binaries are available for the following platforms:\n\n* macOS 64bit\n* Windows 64bit\n* Linux 64bit\n\nIf you are using one of these platform, you don't need to recompile\nlibui-node source code from scratch.\n\nThe only additional dependecy you nedd is [GTK+ 3](https://packages.ubuntu.com/source/xenial/gtk+3.0) to run on Linux.\n\nOtherwise, libui-node sources will be compiled during part of the `install`\nphase. You need the following additionl dependency in order to compile:\n\n## Windows\n\n- [windows-build-tools](https://www.npmjs.com/package/windows-build-tools) or Visual Studio 2015 to compile the project.\n- [Visual C++ Redistributable Package per Visual Studio 2013](https://www.microsoft.com/it-it/download/details.aspx?id=40784)\n\n## Linux\n\nIf they are not provided by default in your distribution:\n- [build-essential](https://packages.ubuntu.com/xenial/build-essential) to compile the project.\n- [GTK+ 3](https://packages.ubuntu.com/source/xenial/gtk+-3.0)\n\n## macOS\n\n- [Xcode 8](https://developer.apple.com/xcode/) to compile the project.\n\n# Installation\n\n```bash\nnpm install -S libui-node\n```\n\n`libui` prebuilt binaries are automatically downloaded after install.\n\nIf you get this error on Windows:\n\n```\n'__pfnDliNotifyHook2': redefinition; different type modifiers\n```\n\nyou need to install latest npm version:\n\n```bash\n$ npm i -g npm\n```\n\nsee [this node-gyp issue](https://github.com/nodejs/node-gyp/issues/972)\nfor more details.\n\n# Documentation \u0026 examples\n\nDocumentation is in [docs folder](docs).\nYou can also find working examples in [example folder](https://github.com/parro-it/libui-node/tree/master/example).\n\n## How to run the examples\n\nFirst, you have to clone the GitHub repo and npm install it:\n\n```bash\ngit clone https://github.com/parro-it/libui-node.git\nnpm install\n```\n\nThen, to run the control gallery example (requires Node.js \u003e= 6), type:\n\n```bash\nnode example/core-api.js\n```\n\n\n# Contribution \u0026 design\n\n1) Make sure to read and agree with our [code of conduct](CODE_OF_CONDUCT.md)\n2) Follow guidelines provided in our [contribution guide](CONTRIBUTING.md)\n\n# Related projects\n\n* [libui](https://github.com/andlabs/libui) - Simple and portable (but not inflexible) GUI library in C that uses the native GUI technologies of each platform it supports.\n* [nbind](https://github.com/charto/nbind) - Magical headers that make your C++ library accessible from JavaScript\n* [proton-native](https://github.com/kusti8/proton-native) - A React environment for cross platform native desktop apps https://proton-native.js.org\n* [vuido](https://vuido.mimec.org/) - Native desktop applications using Vue.js.\nhttps://proton-native.js.org\n\n# Contributors\n\n[![Andrea Parodi](https://avatars0.githubusercontent.com/u/11197111?s=130)](https://github.com/parro-it) |\n[![Juha Järvi](https://avatars3.githubusercontent.com/u/778781?s=130)](https://github.com/jjrv) |\n[![Niklas Mischkulnig](https://avatars2.githubusercontent.com/u/4586894?s=130)](https://github.com/mischnic) |\n[![Gustav Hansen](https://avatars0.githubusercontent.com/u/9812956?s=130)](https://github.com/kusti8)\n---|---|---|---\n[Andrea Parodi](https://github.com/parro-it) | [Juha Järvi](https://github.com/jjrv) | [Niklas Mischkulnig](https://github.com/mischnic) | [Gustav Hansen](https://github.com/kusti8)\n\n# License\n\nThe MIT License (MIT)\n\nCopyright (c) 2018 parro-it\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparro-it%2Flibui-napi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparro-it%2Flibui-napi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparro-it%2Flibui-napi/lists"}