[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109374":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":13,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":14,"forks30d":14,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":23,"topics":24,"createdAt":9,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":14,"starSnapshotCount":14,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},109374,"CUI","yappologistic\u002FCUI","yappologistic","Native UI components for C: about 150 of them, with spring motion and full keyboard support. Windows, macOS and Linux, no dependencies.",null,"C",1251,99,12,0,18,132,1143,82,103.93,"MIT License",false,"master",true,[],"2026-11-23 18:57:17","2026-11-23 16:34:51","\u003Cdiv align=\"center\">\n\n\u003Cpicture>\n  \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"web\u002Fsite\u002Fimg\u002Fcui-mark-dark.svg\">\n  \u003Cimg src=\"web\u002Fsite\u002Fimg\u002Fcui-mark-light.svg\" width=\"64\" height=\"64\" alt=\"\">\n\u003C\u002Fpicture>\n\n# CUI\n\n**Native UI components for C.**\n\nAbout 170 components with spring motion and full keyboard support.\u003Cbr>\nWindows, macOS and Linux from one C99 codebase. No dependencies, about 240 KB.\n\n[![CI](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Factions\u002Fworkflow\u002Fstatus\u002Fyappologistic\u002FCUI\u002Fci.yml?branch=master&label=CI&style=flat-square&labelColor=24292f)](https:\u002F\u002Fgithub.com\u002Fyappologistic\u002FCUI\u002Factions\u002Fworkflows\u002Fci.yml)\n[![License: MIT](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-57606a.svg?style=flat-square&labelColor=24292f&color=57606a)](LICENSE)\n![C99](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FC-99-57606a.svg?style=flat-square&labelColor=24292f&color=57606a)\n![Platforms](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fplatforms-Windows%20%C2%B7%20macOS%20%C2%B7%20Linux-57606a.svg?style=flat-square&labelColor=24292f&color=57606a)\n\n[Getting started](docs\u002Fgetting-started.md) ·\n[Components](docs\u002Fcomponents.md) ·\n[Live docs](https:\u002F\u002Fyappologistic.github.io\u002FCUI\u002F) ·\n[Examples](examples) ·\n[Design principles](docs\u002Fdesign.md)\n\n\u003Cbr>\n\n\u003Cpicture>\n  \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Fimages\u002Fshowcase\u002Fcomponents-dark.png\">\n  \u003Cimg src=\"docs\u002Fimages\u002Fshowcase\u002Fcomponents.png\" alt=\"CUI components: a sign up form, metric cards, a calendar with time slots, a bar chart, team members and settings\">\n\u003C\u002Fpicture>\n\n\u003Csub>Every image on this page is drawn by CUI itself, from plain C.\u003C\u002Fsub>\n\n\u003C\u002Fdiv>\n\n> [!TIP]\n> **Try it before you install it.** The [live docs](https:\u002F\u002Fyappologistic.github.io\u002FCUI\u002F) run every component in your browser: the same C library, compiled to WebAssembly and drawn by a WebGL2 port of its renderer.\n\n## Your interface is plain C\n\n```c\n#include \u003Ccui\u002Fcui.h>\n#include \u003Ccui\u002Fcui_app.h>\n\nint main(void) {\n    cui_app *app = cui_app_create(&(cui_app_desc){\n        .title = \"Hello\", .width = 420, .height = 300 });\n    if (!app) return 1;\n    bool notifications = true;\n    int clicks = 0;\n\n    while (cui_app_frame(app)) {\n        cui_ctx *ui = cui_app_ui(app);\n        cui_column(ui, .pad = 32, .gap = 16) {\n            cui_heading(ui, \"Hello, CUI\", 2);\n            cui_secondary(ui, \"A native window, a few components \"\n                              \"and no dependencies.\");\n            cui_switch(ui, \"Notifications\", &notifications);\n            cui_row(ui, .gap = 8) {\n                if (cui_button(ui, \"Click me\", .variant = CUI_BUTTON_PRIMARY))\n                    clicks++;\n                cui_textf(ui, \"Clicked %d times\", clicks);\n            }\n        }\n    }\n    cui_app_destroy(app);\n    return 0;\n}\n```\n\n\u003Ctable>\n\u003Ctr>\n\u003Ctd width=\"40%\" valign=\"middle\">\u003Cimg src=\"docs\u002Fimages\u002Fshowcase\u002Fhello-dark.png\" alt=\"The hello example: a heading, a line of text, a switch and a button\">\u003C\u002Ftd>\n\u003Ctd valign=\"middle\">\n\n**Components are functions.** They draw themselves, handle input and return what happened.\n\n**Options are named arguments,** so the common case stays short and everything else is one `.field = value` away.\n\n**Your variables are the state.** The screen is described again every frame, so there is nothing to keep in sync.\n\n\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftable>\n\n## Why CUI\n\n\u003Ctable>\n\u003Ctr>\n\u003Ctd width=\"50%\" valign=\"top\">\n\n**A complete library**\n\nButtons, fields, pickers, dialogs and tables, plus a command palette, a virtualized data grid, kanban boards, gantt charts, a dozen kinds of chart, AI chat components, and tool panels such as docking, a node editor, a code editor, a terminal and a flame graph. They are designed together and look finished without styling.\n\n\u003C\u002Ftd>\n\u003Ctd width=\"50%\" valign=\"top\">\n\n**Small and fast**\n\nA full screen builds, lays out and paints in 0.1 to 0.25 ms. Idle apps use no CPU. A complete app is about 240 KB.\n\n\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd valign=\"top\">\n\n**Native everywhere**\n\nWin32, Cocoa and X11, or SDL2 and GLFW, drawn with OpenGL or a software renderer. The core only emits triangles, so your own renderer works too.\n\n\u003C\u002Ftd>\n\u003Ctd valign=\"top\">\n\n**Careful by default**\n\nNeutral surfaces, one accent, hairline borders, shadows only on things that float, and motion that explains what changed. Every component works from the keyboard and every animation has a reduced motion path. The [design principles](docs\u002Fdesign.md) list the rules.\n\n\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftable>\n\n## Install\n\nCUI uses CMake and builds with GCC, Clang, MSVC and MinGW. Add it to your project:\n\n```cmake\ninclude(FetchContent)\nFetchContent_Declare(cui\n    GIT_REPOSITORY https:\u002F\u002Fgithub.com\u002Fyappologistic\u002FCUI.git\n    GIT_TAG master)\nFetchContent_MakeAvailable(cui)\ntarget_link_libraries(my_app PRIVATE cui::cui)\n```\n\nOr build it and run an example:\n\n```sh\ngit clone https:\u002F\u002Fgithub.com\u002Fyappologistic\u002FCUI.git\ncmake -S CUI -B build -DCMAKE_BUILD_TYPE=Release\ncmake --build build\n.\u002Fbuild\u002Fexamples\u002Ftracker\n```\n\nOn Linux you need the X11 development headers (`libx11-dev`). Windows and macOS need nothing beyond the SDK. [Getting started](docs\u002Fgetting-started.md) covers other build systems and backends.\n\n## Components\n\n| Group | Components |\n|---|---|\n| **Actions** | button, icon button, button group, split button, toggle group, copy button, hold to confirm, segmented control, menus, command palette |\n| **App chrome** | menu bar, toolbar, status bar, document tabs, docking layout with saved layouts |\n| **Inputs** | text field, password, search, text area, number, money and scrub fields, tag input, one time code, select, combobox, multi-select, shortcut recorder |\n| **Pickers** | date and date range, time, wheel and dial pickers, calendar, color picker, emoji picker, ruler and histogram sliders, knob and fader |\n| **Selection** | checkbox, switch, radio group and cards, sliders, chips, rating |\n| **Navigation** | tabs, sidebar, breadcrumb, pagination, stepper, table of contents, dock, tab bar |\n| **Overlays** | dialog, sheet, popover, hover card, tooltip, toast stack, confirm popover, guided tour |\n| **Feedback** | alert, banner, progress bar and ring, meter, spinner, skeleton, badge, avatar, empty state, timeline |\n| **Data** | card, metric, table, virtualized data grid, tree table, path bar, list, tree, accordion, filter bar, file browser and open\u002Fsave dialog |\n| **Code** | code block, code editor, diff viewer, markdown view, JSON viewer |\n| **Tool panels** | property inspector, log console, terminal, node editor, flame graph, hex viewer, curve and gradient editors, timeline editor, level meter |\n| **Charts** | line, area, bar, donut, sparkline, gauge and radial gauge, candlestick, heatmap, treemap, radar, funnel, sankey, waffle, scatter and more |\n| **Media** | image viewer with zoom and pan, image cropper, image compare, carousel |\n| **Planning** | kanban board, week and month calendars, gantt chart with dependencies |\n| **AI** | reasoning, tool calls, agent plan, sources and citations, context meter, prompt suggestions, model picker, chat composer |\n| **Custom** | a canvas with a full 2D drawing API, per component state and spring animation helpers |\n\nEvery component is documented with a screenshot, usage, options and keyboard behaviour in [Components](docs\u002Fcomponents.md) and [More components](docs\u002Fcomponents-more.md).\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>The extended set\u003C\u002Fb>\u003C\u002Fsummary>\n\u003Cbr>\n\n\u003Cpicture>\n  \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Fimages\u002Fshowcase\u002Fcomponents-pro-dark.png\">\n  \u003Cimg src=\"docs\u002Fimages\u002Fshowcase\u002Fcomponents-pro.png\" alt=\"Extended CUI components: an AI answer with tools, a contribution heatmap, a sankey diagram, an agent plan, control tiles, a player and a radar chart\">\n\u003C\u002Fpicture>\n\nCapture (dropzone with real file drops, avatar upload, signature pad), conversation (chat bubbles, comments, presence, rolling counter, ticker, carousel, image compare, card stack), motion (shimmer text, typewriter, word reveal, spotlight cards, loaders, waveform, now playing) and more, all in [More components](docs\u002Fcomponents-more.md).\n\n\u003C\u002Fdetails>\n\n## Showcase\n\n\u003Ctable>\n\u003Ctr>\n\u003Ctd colspan=\"2\">\u003Cpicture>\u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Fimages\u002Fcomponents\u002Fdocking-dark.png\">\u003Cimg src=\"docs\u002Fimages\u002Fcomponents\u002Fdocking.png\" alt=\"A docked workspace with a scene tree, a viewport, a log console and a property inspector, with a tab being dragged to a new place\">\u003C\u002Fpicture>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd colspan=\"2\" align=\"center\">\u003Csub>\u003Cb>Docking\u003C\u002Fb>: drag a tab to stack it or split any side; the layout saves as a short string · \u003Ca href=\"docs\u002Fcomponents-more.md#docking\">docs\u003C\u002Fa>\u003C\u002Fsub>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd colspan=\"2\">\u003Cimg src=\"docs\u002Fimages\u002Fshowcase\u002Fhero-data.png\" alt=\"A data grid with a filter bar, two selected rows, team tags and score bars\">\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd colspan=\"2\" align=\"center\">\u003Csub>\u003Cb>Data grid\u003C\u002Fb>: 2,000 virtualized rows, filters, sorting, resizable columns and spreadsheet style selection\u003C\u002Fsub>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd width=\"50%\">\u003Cimg src=\"docs\u002Fimages\u002Fshowcase\u002Fhero-board.png\" alt=\"A kanban board with a card being dragged between columns\">\u003C\u002Ftd>\n\u003Ctd width=\"50%\">\u003Cimg src=\"docs\u002Fimages\u002Fshowcase\u002Fhero-palette-dark.png\" alt=\"A command palette with grouped commands and shortcuts\">\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd align=\"center\">\u003Csub>\u003Cb>Kanban\u003C\u002Fb>: the lifted card follows the pointer and the column opens a slot for it\u003C\u002Fsub>\u003C\u002Ftd>\n\u003Ctd align=\"center\">\u003Csub>\u003Cb>Command palette\u003C\u002Fb>: fuzzy search, groups and shortcuts\u003C\u002Fsub>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd colspan=\"2\">\u003Cimg src=\"docs\u002Fimages\u002Fshowcase\u002Fhero-pick-dark.png\" alt=\"A date range picker with presets and two months, and a wheel time picker\">\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd colspan=\"2\" align=\"center\">\u003Csub>\u003Cb>Pickers\u003C\u002Fb>: a date range with presets over two months, and wheels that spin with momentum\u003C\u002Fsub>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftable>\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>More: charts, planning, conversation, effects\u003C\u002Fb>\u003C\u002Fsummary>\n\u003Cbr>\n\n\u003Ctable>\n\u003Ctr>\n\u003Ctd width=\"50%\">\u003Cimg src=\"docs\u002Fimages\u002Fshowcase\u002Fhero-charts.png\" alt=\"A contribution heatmap, a sankey of test runs, a radar chart and a task plan\">\u003C\u002Ftd>\n\u003Ctd width=\"50%\">\u003Cimg src=\"docs\u002Fimages\u002Fshowcase\u002Fhero-desk-dark.png\" alt=\"Control tiles, a now playing card, a waveform and a dock\">\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd align=\"center\">\u003Csub>\u003Cb>Charts\u003C\u002Fb>: calendar heatmap, sankey and radar, with a live task plan\u003C\u002Fsub>\u003C\u002Ftd>\n\u003Ctd align=\"center\">\u003Csub>\u003Cb>Dock, tiles and player\u003C\u002Fb>: icons grow under the pointer, the waveform seeks on click\u003C\u002Fsub>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cimg src=\"docs\u002Fimages\u002Fshowcase\u002Fhero-social-dark.png\" alt=\"Chat bubbles, threaded comments, a rolling counter and presence avatars\">\u003C\u002Ftd>\n\u003Ctd>\u003Cimg src=\"docs\u002Fimages\u002Fshowcase\u002Fhero-effects-dark.png\" alt=\"Three cards for choosing a renderer, one lit by the pointer\">\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd align=\"center\">\u003Csub>\u003Cb>Conversation\u003C\u002Fb>: grouped bubbles, threads, a rolling counter, presence\u003C\u002Fsub>\u003C\u002Ftd>\n\u003Ctd align=\"center\">\u003Csub>\u003Cb>Spotlight cards\u003C\u002Fb>: the surface and edge nearest the pointer light up\u003C\u002Fsub>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd colspan=\"2\">\u003Cimg src=\"docs\u002Fimages\u002Fshowcase\u002Fhero-plan-dark.png\" alt=\"A gantt chart with dependencies, progress and a today line\">\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd colspan=\"2\" align=\"center\">\u003Csub>\u003Cb>Gantt\u003C\u002Fb>: drag to reschedule, pull the ends to resize, arrows follow dependencies\u003C\u002Fsub>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftable>\n\n\u003C\u002Fdetails>\n\n## Example apps\n\nComplete apps in [`examples\u002F`](examples), each a single C file.\n\n\u003Ctable>\n\u003Ctr>\n\u003Ctd colspan=\"2\">\u003Cimg src=\"docs\u002Fimages\u002Fshowcase\u002Fassistant.png\" alt=\"An AI assistant built with CUI\">\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd colspan=\"2\" align=\"center\">\u003Csub>\u003Cb>Muse\u003C\u002Fb>: reasoning, tool calls, sources, a plan and a composer with a model picker · \u003Ca href=\"examples\u002Fassistant.c\">assistant.c\u003C\u002Fa>\u003C\u002Fsub>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd width=\"50%\">\u003Cimg src=\"docs\u002Fimages\u002Fshowcase\u002Ftracker.png\" alt=\"An issue tracker built with CUI\">\u003C\u002Ftd>\n\u003Ctd width=\"50%\">\u003Cimg src=\"docs\u002Fimages\u002Fshowcase\u002Fdashboard-dark.png\" alt=\"An analytics dashboard built with CUI\">\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd align=\"center\">\u003Csub>\u003Cb>Orbit\u003C\u002Fb>: grouped issues, custom glyphs, an activity pane · \u003Ca href=\"examples\u002Ftracker.c\">tracker.c\u003C\u002Fa>\u003C\u002Fsub>\u003C\u002Ftd>\n\u003Ctd align=\"center\">\u003Csub>\u003Cb>Larkspur\u003C\u002Fb>: figures, charts and a sortable table · \u003Ca href=\"examples\u002Fdashboard.c\">dashboard.c\u003C\u002Fa>\u003C\u002Fsub>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftable>\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>All examples\u003C\u002Fb>\u003C\u002Fsummary>\n\u003Cbr>\n\n| Example | What it shows |\n|---|---|\n| [`assistant`](examples\u002Fassistant.c) | AI assistant: reasoning, tool calls, sources, plan, composer with a model picker |\n| [`tracker`](examples\u002Ftracker.c) | Issue tracker: grouped list, custom status glyphs, detail pane, activity |\n| [`music`](examples\u002Fmusic.c) | Music player: cover art drawn on a canvas, track list, transport bar |\n| [`finance`](examples\u002Ffinance.c) | Personal finance: top navigation, charts, painted card, budgets, goals |\n| [`dashboard`](examples\u002Fdashboard.c) | Sidebar, top bar, KPIs, charts and a sortable table |\n| [`mail`](examples\u002Fmail.c) | Three pane inbox, folders, reading pane, compose dialog |\n| [`notes`](examples\u002Fnotes.c) | Split view, search, context menus, dialogs, shortcuts, file export |\n| [`settings`](examples\u002Fsettings.c) | Forms, validation, preferences and a danger zone |\n| [`gallery`](examples\u002Fgallery_ui.c) | Every component, light and dark, all accents |\n| [`hello`](examples\u002Fhello.c) | The smallest app |\n\n\u003Ctable>\n\u003Ctr>\n\u003Ctd width=\"50%\">\u003Cimg src=\"docs\u002Fimages\u002Fshowcase\u002Fmusic.png\" alt=\"Music player\">\u003C\u002Ftd>\n\u003Ctd width=\"50%\">\u003Cimg src=\"docs\u002Fimages\u002Fshowcase\u002Ffinance.png\" alt=\"Personal finance app\">\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cimg src=\"docs\u002Fimages\u002Fshowcase\u002Fmail-dark.png\" alt=\"Mail client\">\u003C\u002Ftd>\n\u003Ctd>\u003Cimg src=\"docs\u002Fimages\u002Fshowcase\u002Fnotes-dark.png\" alt=\"Notes app\">\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftable>\n\n\u003C\u002Fdetails>\n\n## Light, dark and eight accents\n\n\u003Cpicture>\n  \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Fimages\u002Fshowcase\u002Faccents-dark.png\">\n  \u003Cimg src=\"docs\u002Fimages\u002Fshowcase\u002Faccents.png\" alt=\"The same controls in all eight accents\">\n\u003C\u002Fpicture>\n\n```c\ncui_set_theme(ui, CUI_THEME_DARK);      \u002F* animates *\u002F\ncui_set_accent(ui, CUI_ACCENT_BLUE);    \u002F* neutral, violet, blue, green, amber, orange, coral, rose *\u002F\n```\n\nAll colors are semantic tokens (`CUI_COLOR_SURFACE`, `CUI_COLOR_TEXT_SECONDARY`, `CUI_COLOR_ACCENT` and so on), so your own boxes follow the theme too. Run any app in the other theme with `CUI_THEME=dark` or `CUI_THEME=light`. See [Theming](docs\u002Ftheming.md).\n\n## Size and speed\n\n| Measure | Result |\n|---|---|\n| `hello` on Linux, stripped, whole executable | about 240 KB |\n| `assistant` (the AI app above), whole executable | about 350 KB |\n| Whole library: about 170 components, both renderers, X11 backend, fonts and icons | about 930 KB |\n| Build, layout and paint a frame (gallery pages, 1240 × 820 points at 2×) | 0.09 to 0.75 ms, most under 0.25 |\n| Software rasterization of the same frame, all of it (2480 × 1640 pixels, 4 threads) | 3.4 to 19 ms |\n| Software rasterization after the first frame | only what changed: 4 to 15% of the pixels in a typical frame |\n| A real app in use (Notes, Mail, an IDE; software renderer, 1280 × 800) | 2 to 3% of a core, 11 to 13 MB resident |\n| Library memory over an hour of use | 2 to 9 MB, flat, nothing left after `cui_destroy` |\n| Idle CPU | 0%, event driven |\n\nThe library is compiled for dead code stripping, so apps only carry what they use, and every heavy part (fonts, image decoding, the window layer) can be turned off ([Integration](docs\u002Fintegration.md#binary-size)). Timings are wall clock on a 4 core cloud VM; `cui_bench` in [`tests\u002F`](tests) reproduces them, and [Performance](docs\u002Fperformance.md) has the hour-long soak tests behind the memory and CPU rows.\n\n## Platforms\n\n| Platform | Backend | Renderer | Tested in CI |\n|---|---|---|---|\n| Windows 7+ | Win32 (per monitor DPI, dark title bar) | OpenGL 3.3, GDI software fallback | MSVC, MinGW |\n| macOS 10.13+ | Cocoa (Retina, native menus, text input) | OpenGL 3.3+, layer software fallback | Apple clang |\n| Linux, BSD | X11 (XIM text input, HiDPI) | OpenGL 3.3 (GLX), XPutImage fallback | GCC, Clang |\n| Wayland and others | SDL2 or GLFW | OpenGL 3.3 | GCC |\n| Anything | Your own | Your own (one shader) | |\n\nSet `CUI_RENDERER=software` to force the software renderer and `CUI_SCALE=2` to override the display scale. To use CUI inside an engine with your own window and renderer, see [Integration](docs\u002Fintegration.md) and [Rendering](docs\u002Frendering.md).\n\n## Status and limitations\n\nCUI 1.2 is complete enough to build real desktop apps. Every push runs unit, interaction and render tests, a randomized input fuzzer under AddressSanitizer and UndefinedBehaviorSanitizer, and real windows on Windows, macOS and Linux. What it does not do yet:\n\n- **Screen readers.** There is no accessibility tree yet. Keyboard navigation and focus are complete.\n- **Complex scripts.** Text is UTF-8 with kerning and font fallback. The optional `CUI_TEXT_SHAPING` CMake option adds Arabic-script shaping, Unicode bidi and shaped paragraph wrapping for static text (see [integration](docs\u002Fintegration.md#optional-arabic-script-text-shaping)). Screens mirror for right-to-left languages with `.direction = CUI_DIRECTION_RTL` ([layout](docs\u002Flayout.md)). Explicit embeddings, overrides and isolates are unsupported. It is off by default. Editing and other complex scripts remain outside this experimental path. CJK works once you add a fallback font.\n- **Inline IME composition.** Committed text from input methods works; the text being composed shows in the system's IME window.\n- **Native Wayland.** Use the SDL2 or GLFW backend, or XWayland.\n\n## Documentation\n\n| Guide | What it covers |\n|---|---|\n| [Getting started](docs\u002Fgetting-started.md) | Install, build, the frame loop, your first screens |\n| [Layout](docs\u002Flayout.md) | Rows, columns, sizes, alignment, grids, scrolling, split views |\n| [Components](docs\u002Fcomponents.md) and [more](docs\u002Fcomponents-more.md) | Every component with screenshots, options and keyboard support |\n| [Theming](docs\u002Ftheming.md) | Tokens, light and dark, accents, fonts, motion |\n| [Icons](docs\u002Ficons.md) | The built-in Lucide icons, and how to use any other icon font |\n| [Custom components](docs\u002Fcustom-components.md) | Canvas, drawing API, state and animation |\n| [Integration](docs\u002Fintegration.md) | Your own window, input and renderer |\n| [Rendering](docs\u002Frendering.md) | The vertex format and the reference shader |\n| [Performance](docs\u002Fperformance.md) | How memory and speed are tested over hours of use, and the results |\n| [Design principles](docs\u002Fdesign.md) | The rules every component follows |\n\n**Live docs.** The same guide, with every component running in your browser, is at **https:\u002F\u002Fyappologistic.github.io\u002FCUI\u002F**: the library compiled to WebAssembly and drawn with a WebGL2 port of its renderer. It is rebuilt from `master` on every push. To run it locally, use `web\u002Ftools\u002Fserve.sh` (needs clang with the `wasm32` target) and open http:\u002F\u002Flocalhost:8765. See [`web\u002F`](web).\n\n## Development\n\n```sh\ncmake -S . -B build -DCMAKE_BUILD_TYPE=Debug\ncmake --build build\nctest --test-dir build --output-on-failure    # unit, interaction and render tests, the fuzzer\n```\n\nThe documentation images in [`docs\u002Fimages`](docs\u002Fimages) are rendered by the tests (`tests\u002Fcomponent_shots.c` for components and showcase scenes, `tests\u002Fscreenshots.c` for the overviews), so a visual change and its documentation move together.\n\n## Contributing\n\nBug reports and pull requests are welcome, from people and from AI agents. Every report needs an honest account of who wrote it (and which model, if an AI did) and evidence you produced yourself: the commands you ran and their output. [Contributing](docs\u002FCONTRIBUTING.md) explains what that means, and the issue forms and pull request template ask for it.\n\n## Credits\n\nType: [Inter](https:\u002F\u002Frsms.me\u002Finter\u002F) and [Geist](https:\u002F\u002Fvercel.com\u002Ffont) (SIL Open Font License). Icons: [Lucide](https:\u002F\u002Flucide.dev) (ISC). Font rasterization and PNG output: [stb](https:\u002F\u002Fgithub.com\u002Fnothings\u002Fstb) (public domain). See [THIRD_PARTY.md](THIRD_PARTY.md). The live docs' overview uses Ansel Adams' *The Tetons and the Snake River* (1942, U.S. National Archives, public domain).\n\n## License\n\nMIT. See [LICENSE](LICENSE).\n","CUI 是一个面向 C 语言的跨平台原生 UI 组件库，提供约 170 个轻量级、无依赖的 UI 控件。核心特性包括基于物理的弹簧动画（spring motion）、完整的键盘导航与焦点管理、单文件 C99 实现，支持 Windows\u002FmacOS\u002FLinux 三端统一构建（约 240 KB）。所有组件以纯函数形式调用，无需事件循环或对象生命周期管理，渲染由库内建的轻量绘图后端完成（含 WebAssembly\u002FWebGL2 移植版）。适用于嵌入式工具、系统级实用程序、CLI 增强界面、低依赖桌面应用及 C 生态中的快速原型开发。",2,"2026-11-24 04:36:40","CREATED_QUERY"]