Hacker GitHub

← All repos

andlabs/libui

View on GitHub ↗ ★ 10,890 C

Simple and portable (but not inflexible) GUI library in C that uses the native GUI technologies of each platform it supports.

71 mentions on Hacker News by 51 people: 6 stories, 65 comments · first 2016-05-20 · latest 2026-03-01

Mentions per year 71 mentions · busiest year 2018 (27)
20082026
  1. Some other options. 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. Missing a lot of desktop features and abandoned.…
    comment by irq-1 · 2026-03-01 · in PureBasic: The Quiet Survivor
  2. …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…
  3. LibUI for C [0] [0] https://github.com/andlabs/libui
  4. …programming language and paradigm... There is a Janet binding for it but it looks abandoned. https://github.com/andlabs/libui https://github.com/janet-lang/janetui
  5. I don't know about non-native, but LibUI offers native GUI in C: 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…
  6. I find the concepts (i.e. "SWT without Java") behind libui ( https://github.com/andlabs/libui ) exciting, and I could picture myself using it someday (through its Python bindings). I'm a bit worried, though, that the project is described…
  7. libui has bindings for many languages but might be too immature for complex needs https://github.com/andlabs/libui
  8. …good lightweight native UI compatibility layer. Look at this heroic effort by a single developer: https://github.com/andlabs/libui It's not there, but it's probably too big of a project for one person.
  9. …Probably far larger than one developer can tackle in their spare time, but the effort is admirable: https://github.com/andlabs/libui This one person somehow gets it. Back to the topic at hand. It's not that Kotlin is a bad language. I've…
    comment by api · 2020-11-05 · in JetBrains Compose
  10. wxWidgets, of course! There’s also these tiny but high-quality frameworks for C++: https://github.com/andlabs/libui https://github.com/cycfi/elements
  11. Something like this is what we need: https://github.com/andlabs/libui Unfortunately it's a one man band. The author has done great work but it has little support. IMHO it's the only sane UI effort for desktop in the world.
  12. …There are bindings for it in many languages, like Node.js, Rust, Swift, Kotlin and more. [1] https://github.com/andlabs/libui
    comment by giovannibonetti · 2020-05-17 · in Native desktop apps are far superior to Web/Electron
  13. …platform therefore it does not exist. This is not a technical problem. Check this project out: https://github.com/andlabs/libui Yes it's minimal and rough around the edges, but it's the work of one developer in their spare time. If one…
  14. How about libui? https://github.com/andlabs/libui/
    comment by dsego · 2019-11-10 · in Rust 2020: GUI and Community
  15. I pimp this project any chance I get: https://github.com/andlabs/libui We're considering using it for the next generation of the ZeroTier desktop UI. Unfortunately no mobile support (but we already have native mobile UIs), but it looks…
  16. If you need native look and feel: https://github.com/andlabs/libui If you need HTML5 canvas-style drawing: I propose building an (abstract) SVG document and render with Skia. When part of the SVG document changes, that part will be redrawn…
  17. …before. I'm hopeful for libui in the future, but maybe I should consider immediate mode libraries? https://github.com/andlabs/libui
  18. How stable is it? The readme says it's at Alpha 4.1 https://github.com/andlabs/libui
  19. An alternative is this: https://github.com/andlabs/libui There are Go bindings here: https://github.com/andlabs/ui
  20. …of a project I heard of a while ago: https://github.com/parro-it/libui-node . It's built on top of https://github.com/andlabs/libui , "a portable GUI library for C" and it powers a truly native React Native for desktop:…
  21. There is also libui: https://github.com/andlabs/libui
  22. Here is a promising cross platform library: https://github.com/andlabs/libui They made some good decisions like using real native controls and writing it in c to allow bindings to many languages, including 3 for rust. The biggest catch for…
    comment by flukus · 2018-09-19 · in Falling in love with Rust
  23. …, albeit missing several needed widgets (but work is active there and the base C lib at https://github.com/andlabs/libui ). Granted uses Cgo but that should not be a deal breaker for interfacing w/ the native OS libs.
    comment by kodablah · 2018-09-07 · in On the Road to Pure Go X11 GUIs
  24. It is being actively worked on, though: https://github.com/andlabs/libui/issues/310
  25. …GUI libraries. People that know C should be able to read and understand the interface file at: https://github.com/andlabs/libui/blob/master/ui.h The function / variable names are informative enough. There are examples which should get you…
    comment by deorder · 2018-05-20 · in Libui: a portable GUI library for C
  26. One of the funniest commit messages I've ever seen: https://github.com/andlabs/libui/commit/422ec83162de7b9689b7...
    comment by jxub · 2018-05-20 · in Libui: a portable GUI library for C
  27. …become a binding to libui. > As such, package ui is the only official binding. From the README — https://github.com/andlabs/libui#language-bindings
    comment by guessmyname · 2018-05-20 · in Libui: a portable GUI library for C
  28. …consider a well written code a documentation, and it doesnt get outdated ;) Have you checked this: https://github.com/andlabs/libui/blob/master/examples/contro... ?
    comment by _o_ · 2018-05-20 · in Libui: a portable GUI library for C
  29. …*>; g->indexof = new std::map<uiControl *, size_t>; At least needless level of indirection ... https://github.com/andlabs/libui/blob/master/windows/grid.cp...
    comment by c-smile · 2018-05-20 · in Libui: a portable GUI library for C
  30. …when you're worried about out circumstances most devs wouldn't have to deal with or care about. [0] https://github.com/andlabs/libui/blob/master/unix/main.c#L11
    comment by noobermin · 2018-05-20 · in Libui: a portable GUI library for C
  31. The entire API is 1100 lines. https://github.com/andlabs/libui/blob/master/ui.h You don't need a separate documentation for that. In fact, most functions have sufficient docstrings if their names don't fully describe their function. Your…
    comment by vortico · 2018-05-20 · in Libui: a portable GUI library for C
  32. …"control.c") and very few introductory comments. The opposite of "literate programming". [1] https://github.com/andlabs/libui/blob/master/doc/main [2] https://github.com/andlabs/libui/tree/master/common
    comment by fernly · 2018-05-20 · in Libui: a portable GUI library for C
  33. …for instance). The library that Vuido runs on, libui, has bindings to all kinds of languages: https://github.com/andlabs/libui#language-bindings
  34. …up contributing to a single library. (PS: libui has bindings to other languages as well [3]!) [1] https://github.com/andlabs/libui [2] https://github.com/parro-it/libui-node [3] https://github.com/andlabs/libui#language-bindings
  35. Here's a link to the libui library that Vuido is based upon: https://github.com/andlabs/libui Both libui and Vuido are works in progress but seemed quite promising and are being actively developed.
  36. …Both are based on libui. Proton discussion: https://news.ycombinator.com/item?id=16978901 libui: https://github.com/andlabs/libui
  37. libui[0] is C library that aims to provide this. It have many (WIP) language bindings. [0] https://github.com/andlabs/libui
  38. I was actually thinking of the table view: https://github.com/andlabs/libui/issues/310 . Doesn't seem to be done yet and is critical for a lot applications.
  39. …runs on libui-node, which is a binding to the libui library. https://github.com/parro-it/libui-node https://github.com/andlabs/libui
  40. …and ecosystem. Performance and memory use problems can be fixed. I have been watching this project: https://github.com/andlabs/libui It's a genuinely lightweight wrapper that looks really promising. Trouble is everyone I show it to says…
  41. …with something like wxWidgets or libui [0], which already use each platform's native widgets. [0] https://github.com/andlabs/libui
    comment by mwcampbell · 2018-04-24 · in Qt for WebAssembly Technology Preview
  42. …which has numerous language bindings, but seems to be in long term flux in terms of scope. [0]: https://github.com/andlabs/libui
  43. …with WPF but it's C# only). Right now the closest attempt to something like this that I know of is https://github.com/andlabs/libui I think libui could even be a starting point for such a library, but the library I'm thinking of would need…
  44. For lazy folks, this uses libui underhood to render to native components via a React API. [1]: https://github.com/andlabs/libui
  45. LibUI ( https://github.com/andlabs/libui ) is another promising one with plenty of bindings. A portable wrapper around native widgets, just needs the table API to be completed.
  46. Golang led me to this popular lightweight C library: https://github.com/andlabs/libui
  47. libui looks amazing but it's not quite ready yet https://github.com/andlabs/libui
  48. …simpler ones. [0] https://github.com/wxWidgets/wxWidgets [1] https://github.com/vurtun/nuklear [2] https://github.com/andlabs/libui
  49. A project I've been keeping my eye on is libui ( https://github.com/andlabs/libui ), it's basically a thin wrapper around the native libraries (very SWT like) that can be used in a number of languages.
  50. > GTK is a painfull to install. Also no longer cross platform. LibUI ( https://github.com/andlabs/libui ) looks promising but I don't think the rust bindings are being worked on.
    comment by flukus · 2017-02-07 · in Rust's 2017 Roadmap