<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/cui-native-ui-components-for-c-oiwxmvv2t" -->

---
title: CUI – Native UI components for C | daily.dev
description: CUI is a native UI component library written in a single C99 codebase with zero dependencies. It ships around 160 components, including a data grid, command...
canonical: https://daily.dev/posts/cui-native-ui-components-for-c-oiwxmvv2t
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: CUI – Native UI components for C | daily.dev
og:description: CUI is a native UI component library written in a single C99 codebase with zero dependencies. It ships around 160 components, including a data grid, command...
og:url: https://daily.dev/posts/cui-native-ui-components-for-c-oiwxmvv2t
og:image: https://api.daily.dev/og/posts/oIwxMVv2t.png
og:image:alt: CUI – Native UI components for C
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# CUI – Native UI components for C

**[Hacker News](https://daily.dev/sources/hn)** · 3 min read · 0 upvotes · 0 comments

## Summary

CUI is a native UI component library written in a single C99 codebase with zero dependencies. It ships around 160 components, including a data grid, command palette, node editor, property inspector, charts and chat, all with spring motion and full keyboard support. A complete app built with it is about 250 KB and renders a frame in under 0.25 ms. It runs on Windows, Mac and Linux via Win32, Cocoa and X11, or through SDL2 and GLFW with OpenGL or a software renderer. The API uses an immediate mode style where components are functions that draw themselves each frame.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://yappologistic.github.io/CUI>

## Questions this post answers

### Is there a native UI library for C with no external dependencies?

Yes, CUI is a native UI component library written as a single C99 codebase with zero dependencies. It includes about 160 components such as a data grid, command palette, node editor and charts, runs on Windows, Mac and Linux, and renders a full app in under 0.25 ms per frame at roughly 250 KB.

_Developers evaluating lightweight native UI stacks for C track releases like this on daily.dev._

### What is immediate mode GUI programming in C?

Immediate mode GUI programming means components are plain functions that draw themselves and return what happened each frame, rather than persistent widget objects you must keep in sync. In CUI, your own variables hold the state, and the whole screen is described again every frame, so there is no separate UI tree to maintain.

_Developers weighing immediate mode against retained mode UI patterns follow these approaches on daily.dev._

## Community take

How the wider developer community reacted, aggregated from 1 discussion and 82 comments across hackernews (as of 2026-11-10).

**TL;DR:** Reaction is split between appreciation for the look and smallness of the library and strong skepticism about it being almost entirely AI-generated in just a few days, with many questioning its long-term value, testing, and originality.

**Sentiment:** 25% positive · 25% mixed · 50% skeptical

**The case for**

- Several people found the demo components visually attractive and the API examples clean to read.
- Some see value in a small, dependency-free binary size compared to Electron-style apps.
- A few are curious to try it for quick UI needs despite knowing it was AI-generated.

**The pushback**

- Many doubt the code has been meaningfully tested or reviewed by a human, pointing to bugs, duplicate logic, and broken mobile interactions.
- Several argue the project doesn't solve a real problem and could be trivially reproduced by anyone prompting an LLM.
- Concerns that fast, unmaintained 'vibecoded' projects tend to be abandoned within weeks.
- Some call the 'native' label misleading since it doesn't use platform-native widgets.
- Criticism that the project reflects poorly on code quality and contributes to low-effort AI-generated software ('slop').

**By community**

- hackernews (heated): Discussion splits sharply between people impressed by the visuals/size and a large contingent dismissing it as low-effort, untested vibecoded slop, with a long tangential subthread on AI/C/Rust compile-time tradeoffs.

**Hottest debate:** Whether an almost entirely AI-generated ('vibecoded') library built in days deserves real use and credibility, or is disposable slop with hidden bugs.

**Open questions**

- How well does the id-generation and widget system handle complex or dynamic UIs?
- Will the original author maintain and fix the reported bugs and edge cases over time?
- How does it perform on embedded or resource-constrained devices like ESP32?

**Highlights**

> Okay, so this is cool, but also vibecoded by someone who just does frontend. I totally support AI development, but the first commit was 4 days ago and it's entirely written by claude. The UI looks like "the style that that AI comes up with" turned into a C framework. I don't want to discourage this kind of experimentation, but I also question how much of the last 20+ years of UI and C knowledge was not used in the construction of this project. Also, do I want to build a kanban board in C? Unsure. Just take care when evaluating this for actual usage.
> — [nepthar on hackernews · 7 comments](https://news.ycombinator.com/item?id=50431634)

> I promise you, this project has not addressed the quirks and edge cases. I don't think many of these components have even been tested by a human, because there are glaring omissions that you'd see if you just played around with them for a minute. Do you think that this person is going to stick around and fix those issues, or just move on to the next impressive project in a week?
> — [creata on hackernews](https://news.ycombinator.com/item?id=50434586)

> The thing with these kind of projects is that... What value do they really bring to the table? Because if it's so easy to come up with something like this (and arguably easier over time), then if I need a UI toolkit and components for my app, I can just prompt them right away to obtain something like this with minimal effort. Plus, adapted to my needs, my code, my platforms and language. UI/UX done right is still a dance between design and engineering. But I'm not sure these libraries do solve anything meaningful today that is worth the abstraction and dependency.
> — [arecsu on hackernews · 3 comments](https://news.ycombinator.com/item?id=50432417)

> One of the most hideously ugly C codebases I’ve ever laid my eyes on. I don’t even care if it’s bug free. What value does this add to the programming community? A “library” generated by a morally bankrupt megacorporation’s plagiarism machine. Good job learning nothing, contributing nothing except another shadcn looking UI shitkit, and further training the beast that will eat you alive one day. I will now use this opportunity to promote Clay (not mine obviously), which is absolutely loaded with heart and soul, and is a beautiful piece of engineering: https://www.nicbarker.com/clay
> — [mllev15 on hackernews](https://news.ycombinator.com/item?id=50433843)

> So funny seeing these kinds of frameworks being vibe-coded. I can tell the author has never used the zillions of frameworks the LLM was trained on. Writing (and maintaining) this kind of code is absolute nightmare fuel.     bool narrow = cui_viewport_size(ui).x < 760;     cui_row(ui, .width = CUI_FILL, .height = CUI_FILL, .align = CUI_ALIGN_STRETCH) {         if (!narrow) { sidebar(ui, s); cui_separator(ui); }         content(ui, s, narrow);   /* a menu button opens the drawer when narrow */     }     cui_sheet(ui, "Menu", &s->drawer, .side = CUI_SIDE_LEFT, .size = 280) { nav(ui, s); } There's a reason QT uses XML for their layouting, there's a reason people prefer Tauri + Vue/React, there's a reason Swift uses declarative paradigms in all their UI code. It's not that you can't build good UI frameworks in low-level languages; for example, I think Go's Fyne[1] is a pleasure to use. But people actually used their brains when designing that framework, as opposed to "hey Claude build a UI framework in C, make no mistakes." [1] https://fyne.io/
> — [dvt on hackernews · 3 comments](https://news.ycombinator.com/item?id=50432064)

**Source threads**

- [hackernews](https://news.ycombinator.com/item?id=50430621) · 144 points · 82 comments

## Similar posts on daily.dev

- [Blender's UI and Runtime: Much Faster Than GPUI](https://daily.dev/posts/blender-s-ui-and-runtime-much-faster-than-gpui-efzwlqbox) · Hacker News · 1 upvotes · 0 comments
- [A 2026 Survey of Rust GUI Libraries](https://daily.dev/posts/a-2026-survey-of-rust-gui-libraries-e93cfc0b7) · Lobsters · 1 upvotes · 0 comments
- [Microsoft.UI.Reactor: a C\#-first way to build WinUI apps](https://daily.dev/posts/microsoft-ui-reactor-a-c--first-way-to-build-winui-apps-lquagzmoy) · DevBlogs · 39 upvotes · 2 comments

---

Tags: [#c](https://daily.dev/tags/c), [#opengl](https://daily.dev/tags/opengl)

[View this post on daily.dev](https://daily.dev/posts/cui-native-ui-components-for-c-oiwxmvv2t)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"CUI – Native UI components for C","url":"https://daily.dev/posts/cui-native-ui-components-for-c-oiwxmvv2t","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/cui-native-ui-components-for-c-oiwxmvv2t"},"datePublished":"2026-11-09T20:45:26.287Z","dateModified":"2026-11-10T01:16:45.263Z","description":"CUI is a native UI component library written in a single C99 codebase with zero dependencies. It ships around 160 components, including a data grid, command...","image":"https://media.daily.dev/image/upload/s--HRgLpUt6--/f_auto/v1722860399/public/Placeholder%2003","thumbnailUrl":"https://media.daily.dev/image/upload/s--HRgLpUt6--/f_auto/v1722860399/public/Placeholder%2003","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/cui-native-ui-components-for-c-oiwxmvv2t","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"c,opengl","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"CUI – Native UI components for C"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/cui-native-ui-components-for-c-oiwxmvv2t#faq","mainEntity":[{"@type":"Question","name":"Is there a native UI library for C with no external dependencies?","acceptedAnswer":{"@type":"Answer","text":"Yes, CUI is a native UI component library written as a single C99 codebase with zero dependencies. It includes about 160 components such as a data grid, command palette, node editor and charts, runs on Windows, Mac and Linux, and renders a full app in under 0.25 ms per frame at roughly 250 KB. Developers evaluating lightweight native UI stacks for C track releases like this on daily.dev."}},{"@type":"Question","name":"What is immediate mode GUI programming in C?","acceptedAnswer":{"@type":"Answer","text":"Immediate mode GUI programming means components are plain functions that draw themselves and return what happened each frame, rather than persistent widget objects you must keep in sync. In CUI, your own variables hold the state, and the whole screen is described again every frame, so there is no separate UI tree to maintain. Developers weighing immediate mode against retained mode UI patterns follow these approaches on daily.dev."}}]}
```

