Last Updated: 2026-02-25 07:32 AM CT
This file provides context for AI agents and contributors about the terminal-ui project.
Repository: OpenKnots/terminal-ui
Created: 2026-02-25
Purpose: React component library for building terminal-style UIs in the browser
Status: Ready to launch (not yet pushed to GitHub)
Location: ~/Documents/GitHub/OpenKnots/terminal-ui
- Framework: Next.js 16
- React: 19.2.4
- TypeScript: 5.9.3
- Styling: Tailwind CSS 4.2.1
- Icons: lucide-react
- Package Manager: pnpm (required, never use npm)
- Terminal - Main window with traffic light chrome
- TerminalCommand - Render commands with prompt
- TerminalOutput - Format output (success, error, info, warning, normal)
- TerminalSpinner - Loading indicator
- Landing page (
app/page.tsx) - Hero, demo, features - Playground (
app/playground/page.tsx) - Interactive examples
- Default dark theme in
:root - CSS variables for all colors (
--term-bg,--term-fg, etc.) - Ready for additional themes (Dracula, Nord, Monokai, etc.)
All documentation is written and ready:
- README.md - Project overview, quick start, features
- CONTRIBUTING.md - Human contributor guide
- AGENTS.md - AI agent contribution guide (13KB, comprehensive)
- OPENCLAW_USAGE.md - How to use with OpenClaw
- GOOD_FIRST_ISSUES.md - 20+ future PR ideas
- LAUNCH_CHECKLIST.md - Deployment guide
- DISCORD_ANNOUNCEMENT.md - Community announcement templates
- .github/SETUP.md - GitHub repository setup
- .github/STARTER_ISSUES.md - 12 pre-written issues
12 starter issues prepared:
- Add Dracula theme
- Add Nord theme
- Add Monokai theme
- Add GitHub Dark theme
- Create TerminalProgress (progress bars)
- Create TerminalTable (data tables)
- Create TerminalTree (file trees)
- Create TerminalPrompt (interactive input)
- Add JSDoc comments to all components
- Add screenshots to README
- Fix mobile scrolling on iOS
- Add copy button to Terminal
All issues have:
- Clear acceptance criteria
- Step-by-step instructions
- Getting started guide
- Example code (where applicable)
Location: .git/hooks/pre-commit (local only, not tracked)
Blocks:
- API keys, tokens, passwords
- Internal network and VPN URLs
- Device IDs
- GitHub tokens
- AWS credentials
- Private IPs
- .env files
Status: ✅ Tested and working
Documentation: .git-hooks-setup/README.md
Quick Start:
Read https://github.com/OpenKnots/terminal-ui/blob/main/AGENTS.md
then pick a good-first-issue and implement it.
AGENTS.md contains:
- Complete project structure
- How to add themes (step-by-step)
- How to create components (with template)
- Development workflow
- PR guidelines and checklist
- Common pitfalls to avoid
Example Task:
Add the Dracula color theme:
1. Read AGENTS.md section "Adding a Color Theme"
2. Get colors from draculatheme.com
3. Add to app/globals.css
4. Test with pnpm run build
5. Screenshot
6. Open PR
Required for all themes:
--term-bg /* Main background */
--term-bg-light /* Elevated surfaces */
--term-fg /* Primary text */
--term-fg-dim /* Secondary text */
--term-green /* Success */
--term-blue /* Info */
--term-yellow /* Warning */
--term-red /* Error */
--term-purple /* Accent */
--term-cyan /* Accent */- ✅ Use CSS variables for colors
- ✅ Use Tailwind utility classes
- ✅ Use
font-monofor terminal text - ❌ No inline styles
- ❌ No hardcoded colors
# 1. Fork and clone
git clone https://github.com/YOUR_USERNAME/terminal-ui.git
cd terminal-ui
# 2. Install (MUST use pnpm)
pnpm install
# 3. Create branch
git checkout -b feat/your-feature
# 4. Make changes
pnpm run dev # Test at http://localhost:3000
# 5. Verify build
pnpm run build # Must pass
# 6. Commit and push
git add .
git commit -m "feat: your feature"
git push origin feat/your-feature
# 7. Open PR on GitHub- Follows existing code style
- TypeScript types included
- JSDoc comments (for components)
- Example in playground (for components)
- Build passes
- Screenshot (if visual change)
- References issue number
- Repository initialized
- Core components built
- Landing page designed
- Playground created
- All documentation written
- 12 issues prepared
- Issue/PR templates created
- Automation scripts ready
- Security audit passed (no leaks)
- Pre-commit hook installed
- AI agent guide (AGENTS.md)
- Push to GitHub
- Create labels
- Create issues
- Pin good-first-issues
- Create welcome discussion
- Deploy to Vercel
- Announce on Discord
Time to launch: ~30 minutes (follow LAUNCH_CHECKLIST.md)
- Practice PRs - Safe place for beginners to learn GitHub workflow
- Learn React - Simple, well-structured components
- Test code-flow - Generate real PRs to review with our maintainer console
- Build UIs - Real components for CLI-style interfaces
- Community - Grow OpenKnots contributor base
- Beginners learning open source contribution
- Developers building AI agent interfaces
- OpenClaw users who want terminal aesthetics
- Maintainers practicing PR review (code-flow)
- AI agents testing automated PR generation
- pnpm only - Faster, better than npm
- Tailwind v4 - No
@applydirectives (use utilities) - TypeScript strict - All components typed
- Next.js 16 - Uses
proxy.tsnotmiddleware.ts - Glassmorphic design - Backdrop blur, subtle shadows
- Public repo - Anyone can contribute
- Beginner-friendly - Issues have detailed instructions
- No tests required - Keep barrier low (for now)
- Fast review - Aim for <24 hour PR review
- Recognize contributors - All added to README
- 5+ stars
- 3+ contributors
- 5+ merged PRs
- 25+ stars
- 10+ contributors
- 20+ merged PRs
- All 4 themes complete
- At least 1 new component
- 100+ stars
- 25+ contributors
- All 12 starter issues complete
- 5+ new components
- Featured in a newsletter
This repo is perfect for testing code-flow (our maintainer console):
- Add
OpenKnots/terminal-uito code-flow - Filter by
good-first-issuelabel - Watch PRs appear
- Use PR detail modal to review
- Practice the 3-phase workflow (Review → Prepare → Merge)
Win-win: Contributors learn, maintainers practice, code-flow gets real testing data.
Primary: Val (@ValOpenClaw)
Response Time: < 24 hours (usually same-day)
Timezone: America/Chicago (CST/CDT)
Everything is in place. Just need to:
- Run 3 commands (see LAUNCH_CHECKLIST.md)
- Post to Discord (templates ready)
- Watch the PRs roll in! 🚀
This file is for context only. For contribution instructions, see CONTRIBUTING.md or AGENTS.md.