Beautiful terminal-like UI components for the web. Build CLI experiences in React.
🤖 AI Agent Friendly! This repo has comprehensive guides for AI agents (OpenClaw, etc.) to contribute automatically. See AGENTS.md and PROJECT_CONTEXT.md.
A collection of React components that bring the elegance of terminal UIs to the browser. Perfect for:
- 🤖 AI agent interfaces (like OpenClaw)
- 📚 Interactive CLI tutorials
- 🎮 Developer tools and dashboards
- 🎨 Retro-futuristic web apps
- 🎨 Beautiful out of the box - Glassmorphic design with smooth animations
- ⚡ Lightweight - No heavy dependencies
- 🎹 Keyboard-first - Full keyboard navigation support
- 🌈 Syntax highlighting - Built-in code formatting
- 📱 Responsive - Works on desktop and mobile
- 🎭 Customizable - Theming system with CSS variables
pnpm add @openknots/terminal-uiimport { Terminal, TerminalCommand } from '@openknots/terminal-ui'
export default function App() {
return (
<Terminal prompt="user@demo">
<TerminalCommand>npm install terminal-ui</TerminalCommand>
<TerminalOutput>✓ Installed terminal-ui@0.1.0</TerminalOutput>
</Terminal>
)
}- Terminal - Main container with window chrome
- TerminalCommand - Render a command with prompt
- TerminalOutput - Format command output
- TerminalSpinner - Loading indicators
- TerminalProgress - Progress bars → Issue #2
- TerminalTable - Render tables → Issue #4
- TerminalTree - File tree views → Issue #9
- TerminalPrompt - Interactive input → Issue #12
This repository is designed for AI agent contributions. Complete documentation provided:
Simplest approach:
@agent Read https://github.com/OpenKnots/terminal-ui/blob/main/AGENTS.md
and implement a good-first-issue
What AGENTS.md contains:
- ✅ Complete project structure
- ✅ Step-by-step theme guide (just copy-paste CSS)
- ✅ Component templates with examples
- ✅ Development workflow (setup → test → PR)
- ✅ Styling rules and patterns
- ✅ PR checklist and examples
- ✅ Common pitfalls to avoid
# Task: Add Dracula color theme (5 minutes)
1. Read AGENTS.md section "Adding a Color Theme"
2. Get official colors from draculatheme.com
3. Add theme block to app/globals.css
4. Run `pnpm run build` to verify
5. Take screenshot
6. Open PR with title "feat: add Dracula color theme"
7. Include screenshot and checklist- AGENTS.md — Complete agent guide (13KB, read this first!)
- PROJECT_CONTEXT.md — Project status and decisions
- OPENCLAW_USAGE.md — OpenClaw-specific instructions
- .github/STARTER_ISSUES.md — 12 pre-written issues to implement
| Task | Time | Difficulty | Guide Section |
|---|---|---|---|
| Add color theme | 5 min | ⭐ Easy | "Adding a Color Theme" |
| Create TerminalProgress | 15 min | ⭐⭐ Medium | "Creating a Component" |
| Add JSDoc comments | 10 min | ⭐ Easy | "Component Guidelines" |
| Fix mobile scrolling | 20 min | ⭐⭐ Medium | Follow issue #7 |
All tasks include:
- Step-by-step instructions in the issue
- Code templates in AGENTS.md
- Clear acceptance criteria
- Example PRs to reference
Agents that follow AGENTS.md consistently produce production-ready PRs that can be merged immediately. The guide includes:
- ✅ TypeScript patterns
- ✅ Component templates
- ✅ Styling rules (CSS variables + Tailwind)
- ✅ Testing workflow
- ✅ PR checklist
- ✅ Common mistakes to avoid
Result: High-quality automated contributions! 🎉
We love contributions! This repo is designed for practice PRs.
Good first issues:
- 🎨 Add a new color theme
- 📦 Create a new component
- 📚 Improve documentation
- 🐛 Fix a bug
- ✨ Add an example
For Humans:
- 📖 CONTRIBUTING.md - Contribution guidelines
- 💡 GOOD_FIRST_ISSUES.md - Ideas for PRs
For AI Agents:
- 🤖 AGENTS.md - Complete agent guide (start here!)
- 🎯 PROJECT_CONTEXT.md - Project overview & status
- 🚀 OPENCLAW_USAGE.md - How to use with OpenClaw
Quick Start for Agents:
1. Read AGENTS.md (complete patterns & templates)
2. Browse good-first-issues: https://github.com/OpenKnots/terminal-ui/issues?q=label%3A%22good-first-issue%22
3. Pick an issue, follow AGENTS.md guide
4. Open PR with checklist completed
- Make CLI UIs accessible - Bring terminal aesthetics to the web
- Practice PR workflow - Perfect for testing tools like code-flow
- Build community - Create a library together
MIT © OpenKnots
Built with ❤️ by the OpenClaw community