Huseynteymurzade28/hnoss
An immediate-mode TUI library for Odin. Pure Odin, no C, batteries included.
Featured achievements
The project's latest awards
#1 Repository of the week
#1 Repository of the week
#1 Repository of the week
🚀 hnoss: Immediate-mode TUI library for Odin
Draw widgets, handle input, and update only what changed — all in pure Odin.
hnoss is a small, batteries-included terminal UI library for the Odin programming language, created by Huseynteymurzade28. It provides an immediate-mode API where each widget call draws itself, processes input, and returns events, letting you build responsive terminal interfaces without managing a scene graph.
✨ Highlights
- Pure Odin: Only core and base packages; raw syscalls on Linux, no ncurses or C bindings.
- Immediate mode: Each widget call draws it, handles input, and returns what happened.
- Fast diff rendering: Only changed cells are written; a full 200×60 truecolor frame diffs in ~2 ms.
- Correct Unicode: Handles grapheme clusters, wide characters, and flags like 🇦🇿.
- Safe terminal: Raw mode, alt screen, and cursor are restored on exit, panic, or signals.
- Built-in widgets: Tabs, lists, braille graph, table, gauges, and text input with markup.
💡 Why it matters
Unlike traditional TUI frameworks that require linking C libraries or managing a retained tree, hnoss runs entirely in Odin, making it easy to embed in any Odin project without extra dependencies. Its immediate-mode design fits naturally with Odin's procedural style, and the diff-based output keeps performance high even with complex screens.
The library also takes Unicode seriously, correctly rendering grapheme clusters and wide characters, which many terminal libraries still get wrong. Combined with safe terminal handling, it's a solid choice for building dashboards, system monitors, or any interactive command-line tool that needs both speed and correctness.
#Odin #TUI #TiniX
Similar Projects
Discover other similar projects and AI models.
🙃 A delightful, community-driven framework for managing your zsh configuration. Built by 2,600+ contributors, with hundreds of plugins (git, rails, laravel, node, python, docker, kubectl, aws, and more), themes to spice up your terminal, and automatic updates to keep your command line feeling like home.
The lean application framework for Python. Build sophisticated user interfaces with a simple Python API. Run your apps in the terminal and a web browser.
Reverse engineer anything with agents, from app behavior down to native binaries.
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.