Discover and explore top open-source AI tools and projects—updated daily.
CLI tool for generative terminal UI (TUI) creation
Top 74.1% on SourcePulse
Termite enables users to rapidly prototype terminal-based applications (TUIs) using natural language prompts. It's designed for developers and power users needing quick solutions for tasks like port monitoring, data visualization, or system management directly within their terminal environment. The primary benefit is accelerating TUI development by leveraging AI for code generation and iterative refinement.
How It Works
Termite utilizes a large language model (LLM) to interpret user prompts and generate Python scripts for TUIs. It supports multiple TUI libraries including urwid
(default), rich
, curses
, and textual
. The process involves generating a design document, implementing the TUI, and iteratively fixing runtime errors, with an optional self-reflection and refinement step for improved output. This approach automates much of the boilerplate TUI development, allowing for faster iteration.
Quick Start & Requirements
pipx install termite-ai
OPENAI_API_KEY
or ANTHROPIC_API_KEY
). Optionally, OPENAI_BASE_URL
for custom OpenAI endpoints.Highlighted Details
urwid
, rich
, curses
, textual
.~/.termite
for persistence.Maintenance & Community
The project is maintained by shobrook. Further community engagement details (Discord, Slack, roadmap) are not explicitly provided in the README.
Licensing & Compatibility
The README does not specify a license. Users should exercise caution due to the experimental nature and AI-generated code.
Limitations & Caveats
Termite is experimental and carries inherent risks associated with running AI-generated code. Current verification is limited to detecting runtime exceptions, meaning generated TUIs may still exhibit incorrect behavior or appearance. Destructive TUI actions are a potential concern during the refinement process.
8 months ago
Inactive