MicroUI – A tiny, portable, immediate-mode UI library written in ANSI C

245 points · 83 comments on HN · read original →

Points and comments are a snapshot, not live.

A tiny immediate-mode UI library in ANSI C with a fixed memory pool.

microui is a portable, 1100-sloc ANSI C library for building immediate-mode user interfaces. It uses a fixed-size memory region with no additional allocations. Built-in controls include windows, buttons, sliders, textboxes, labels, checkboxes, and wordwrapped text. The library does not handle input or rendering; users provide those functions, including text drawing. A demo uses SDL with a prebuilt font atlas rendered via batched OpenGL calls. The project is licensed under MIT and hosted on GitHub.

What commenters are saying

Commenters noted microui is similar to Dear ImGui and Nuklear, requiring users to supply their own windowing and rendering backend. Several clarified how text rendering is delegated: users implement three functions for text height, width, and drawing. A subthread debated accessibility in immediate-mode UIs. Some argued accessibility is irrelevant for debug menus and game tools, while others called it an ethical requirement. The thread also included a link to a fork using SDL3 and a minimal application layer example integrating microui.