pcharbon

pcharbon

TermUi - a direct mode terminal user interface framework with components

A direct-mode Terminal UI framework for Elixir/BEAM, inspired by BubbleTea (Go) and Ratatui (Rust).

TermUI leverages BEAM’s unique strengths—fault tolerance, actor model, hot code reloading—to build robust terminal applications using The Elm Architecture.

Blue Theme Yellow Theme

Features

  • Elm Architecture - Predictable state management with init/update/view

  • Rich Widget Library - Gauges, tables, menus, charts, dialogs, and more

  • Efficient Rendering - Double-buffered differential updates at 60 FPS

  • Themable - True color RGB support (16 million colors)

  • Cross-Platform - Linux, macOS, Windows 10+ terminal support

  • OTP Integration - Supervision trees, fault tolerance, hot code reload

Installation

Add term_ui to your dependencies in mix.exs:

def deps do
  [
    {:term_ui, "~> 0.1.0"}
  ]
end

https://github.com/pcharbon70/term_ui

Most Liked

pcharbon

pcharbon


TermUI v0.2.0

New Widgets

Basic Widgets:

  • TextInput - Single-line and multi-line text input with cursor movement

Overlay Widgets:

  • AlertDialog - Modal dialog for confirmations with standard button configurations
  • ContextMenu - Right-click context menu with keyboard and mouse support

Layout Widgets:

  • Viewport - Scrollable view with keyboard and mouse support
  • SplitPane - Resizable multi-pane layouts for IDE-style interfaces
  • TreeView - Hierarchical data display with expand/collapse

Input Widgets:

  • FormBuilder - Structured forms with validation and multiple field types
  • CommandPalette - VS Code-style command discovery with fuzzy search

Visualization Widgets:

  • BarChart - Horizontal/vertical bar charts for categorical data
  • LineChart - Line charts using Braille characters for sub-character resolution
  • Canvas - Direct drawing surface for custom visualizations

Data Streaming Widgets:

  • LogViewer - High-performance log viewer with virtual scrolling and filtering
  • StreamWidget - GenStage-integrated widget with backpressure support

BEAM Introspection Widgets:

  • ProcessMonitor - Live BEAM process inspection with sorting and filtering
  • SupervisionTreeViewer - OTP supervision hierarchy visualization
  • ClusterDashboard - Distributed Erlang cluster monitoring

Other Changes

  • Added usage_rules for AI assistant integration - see usage_rules | Hex
  • Added README documentation for all 25 example directories
  • Fixed mouse tracking cleanup on application exit
  • Fixed ToastManager rendering
  • Improved ContextMenu mouse support and hover highlighting
  • Various bug fixes and documentation improvements
pcharbon

pcharbon

Yes unfortunately (or fortunately) you cant see the refresh. The rendering process uses two ETS buffers and only render a diff of the previous buffer and the next. I actually spent time trying to figure out why the refresh did not work haha

Note: you can see the past refresh by changing the theme.

kevinschweikert

kevinschweikert

I tried the dashboard example and the refresh did not update the view. Would that be caused by

because the state diff is the same?

Where Next?

Popular in Announcing Top

Crowdhailer
Experimenting with this code. OK.try do user <- fetch_user(1) cart <- fetch_cart(1) order = checkout(cart, user) save_orde...
New
kelvinst
Hey everyone! Well, we made this lib a while ago and now we decided to finally go out and public with it! It’s a tool for creating and m...
New
handnot2
Samly can be used to enable SAML 2.0 Single Sign On in a Plug/Phoenix application. This library uses Erlang esaml to provide plug enabl...
New
treble37
Just looking for a little feedback on a tiny helper library I built - Sometimes I find the need to convert maps with atom keys to maps w...
New
tmbb
PhoenixWS - Websockets over Phoenix Channels Source code on Github here: GitHub - tmbb/phoenix_ws: Websockets implemented over Phoenix Ch...
New
zachdaniel
Ash Framework What is Ash? Ash Framework is a declarative, resource-oriented application development framework for Elixir. A resource can...
New
markmark206
simple_feature_flags is a tiny package that lets you turn features on or off based on which environment (e.g. localhost, staging, product...
New

Other popular topics Top

vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
dogweather
I wrote this comment on r/haskell, and it’s not popular there. :wink: But I think I’m on to something… Haskell reminds me of Java, and e...
New
AstonJ
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New

We're in Beta

About us Mission Statement