txtui is a catalog of plain text UI patterns designed for AI agents.
When working with AI agents, sharing a visual image of a UI pattern can be difficult. txtui provides ready-to-copy text-based UI patterns that you can paste directly into your conversations with AI agents to quickly communicate your target UI structure.
Why txtui?
When you ask an AI agent to build a UI, describing what you want in words often leads to misunderstanding and multiple rounds of revision. txtui solves this by giving you ready-made text-based UI patterns that you can paste directly into your prompt.
- Smoother communication — Share the structure of individual UI parts clearly with AI agents — just copy and paste.
- Fewer iterations — A concrete visual reference helps the AI reach the desired output in fewer rounds.
- Save tokens — Plain text uses far fewer tokens than image analysis, and fewer iterations means even more savings.
- Works anywhere — Plain text works in CLI tools, API calls, and any chat interface — no image support required.
- Technology agnostic — You don't need to know HTML, SwiftUI, or any specific framework to communicate your design.
How to use
- Browse UI patterns on the top page
- Edit/Pretty the pattern to fit your use case
- Copy the variation that matches your target structure
- Paste it into your AI agent conversation