dannote

Terminal emulator library for the BEAM — libghostty-vt NIFs with OTP integration

19
0
100% credibility
Found Apr 02, 2026 at 19 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Elixir
AI Summary

Ghostty is a library for Elixir applications that emulates terminals to display and interact with command output, including support for running shells and rendering in web browsers.

How It Works

1
🔍 Discover Ghostty

You hear about a handy tool that lets you add real-looking terminals right inside your apps, perfect for running commands and seeing colorful output.

2
📦 Bring it into your project

You simply tell your app to include this terminal tool, and it grabs everything needed automatically for your computer.

3
🖥️ Create your first terminal

You start a new terminal window with your preferred width and height, and it's ready to display text.

4
🌈 See magic in action

You send colorful messages and commands, watch them appear with bold text, backgrounds, and even resize smoothly as lines wrap perfectly.

5
🐚 Run a real shell

You connect a full command shell like bash, type inputs, and get live output flowing back just like on your desktop.

6
🌐 Put it on the web

You drop it into your web page, and now anyone can interact with the terminal right in their browser, typing keys and seeing updates instantly.

🎉 Interactive terminals everywhere

Your app now has smooth, colorful, resizable terminals that feel just like the real thing, ready for consoles, logs, or web demos.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 19 to 19 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is ghostty_ex?

Ghostty_ex embeds a high-performance terminal emulator directly into Elixir apps on the BEAM, wrapping Ghostty's VT library via precompiled NIFs for Linux and macOS. Developers get GenServer terminals that parse full VT sequences with 24-bit color, Unicode, and reflowable scrollback, plus real PTY support to run interactive shells like bash or vim. Snapshots export to plain text, styled HTML, or raw VT, ideal for log viewers or command automation.

Why is it gaining traction?

It delivers SIMD-speed parsing without the overhead of external processes, unlike spawning shells via Erlang ports—think ghostty execute command or ghostty export term xterm 256color in a single call. Phoenix LiveView integration shines with a drop-in component and JS hook handling ghost extended keys, mouse, and focus events like ghostty exit full screen. Ghostty examples cover supervision trees, ANSI stripping, and browser terminals, making prototypes fast.

Who should use this?

Elixir backend devs building admin dashboards with web consoles, like tailing logs or running ad-hoc commands in LiveView. Ops engineers scripting terminal github clone workflows or processing colored output from tools like htop. Phoenix teams needing online terminal emulator linux/mac without APK bloat or shell hacks.

Verdict

Solid for niche Elixir terminal needs like LiveView REPLs, but 19 stars and 1.0% credibility score signal early maturity—docs and examples are strong, tests exist, but expect tweaks. Clone and test a ghostty example config before production.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.