RepositoryOdin
Huseynteymurzade28

Huseynteymurzade28/hnoss

An immediate-mode TUI library for Odin. Pure Odin, no C, batteries included.

115stars
3forks
17issues
3views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: odin-lang

#1 Repository of the week

1
TINIX TRENDING·Topic: truecolor

#1 Repository of the week

1
TINIX TRENDING·Topic: immediate-mode

#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.

RepositoryShell
ohmyzsh/ohmyzsh

🙃 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.

191.0k
Nov 29, 2026
RepositoryPython
Textualize/textual

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.

37.7k
Nov 9, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
RepositoryTypeScript
n8n-io/n8n

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

212.9k
Dec 2, 2026
RepositoryOdin
odin-lang/Odin

Odin Programming Language

12.4k
Dec 1, 2026
RepositoryOdin
karl-zylinski/karl2d

Odin 2D game library. Beginner friendly and easy to modify.

732
Nov 27, 2026
RepositoryOdin
dresswithpockets/odin-godot

Godot toolkit for the Odin programming language

169
Sep 9, 2026
RepositoryOdin
thetarnav/odin-wasm

Odin + WASM = 💙

142
Jan 11, 2025
RepositoryOdin
NateTheGreatt/odecs

A simple, modern ECS built in Odin

121
Mar 1, 2026