Skip to content

Instantly share code, notes, and snippets.

@GGPrompts
Last active November 17, 2025 18:27
Show Gist options
  • Select an option

  • Save GGPrompts/2088bb3229e4fb21ab7afdd4621b1954 to your computer and use it in GitHub Desktop.

Select an option

Save GGPrompts/2088bb3229e4fb21ab7afdd4621b1954 to your computer and use it in GitHub Desktop.
GGPrompts Integration Plan - Unifying 54 repos into a Matrix-themed AI development environment #planning #architecture #integration #ggprompts #tmux #chrome-extension

GGPrompts Integration Plan - The Complete Vision

Date: November 17, 2025 Status: Planning Phase

🎯 The Big Picture

Combine all your best projects into a unified AI-powered development environment:

  • GGPrompts.com - Matrix-themed prompt marketplace (production ready!)
  • Tabz - Chrome extension with xterm terminals + tmux
  • Opustrator - Infinite canvas terminal orchestration
  • tmuxplexer - TUI for managing tmux sessions
  • TFE - Terminal file explorer with emoji file types
  • Chrome API MCP - Browser automation tools (to build)

🏗️ What You've Already Built

GGPrompts (Production Ready)

  • ✅ Matrix-themed UI with particle effects
  • ✅ 97+ production-ready prompts
  • ✅ User auth, profiles, forums
  • ✅ Performance optimized (9.8/10)
  • ✅ Security hardened (9.0/10)
  • ✅ React + Vite build system
  • ✅ GGPrompts.com domain ready

Tabz (Chrome Extension)

  • ✅ xterm.js terminals in browser sidebar
  • ✅ tmux integration (persistence across refreshes)
  • ✅ Works on single monitor
  • ⏳ Chrome API MCP server (planned)

Opustrator (Canvas Orchestration)

  • ✅ 5000x5000px infinite canvas
  • ✅ Draggable/resizable terminals
  • ✅ WebSocket + PTY backend
  • ✅ Zustand state management
  • ✅ Layout save/load system
  • ✅ tmux session support

tmuxplexer (TUI Tool)

  • ✅ tmux popup overlay
  • ✅ See all Claude session statuses
  • ✅ Send commands to specific sessions
  • ✅ Save/restore layouts
  • ✅ Attach/detach sessions

Your TUI Ecosystem

  • ✅ TFE - File explorer with emoji types
  • ✅ TUITemplate - Go/Bubbletea starter
  • ✅ TUIClassics - Games collection
  • ✅ Kanban board → GitHub Projects integration
  • ✅ Compiled Go binaries (portable, fast, universal)

💡 The Unified Architecture

┌─ GGPrompts.com (Web) ──────────────────────────────┐
│                                                     │
│  📚 Prompt Marketplace (Matrix theme) ✅           │
│  ├─ Browse/search/filter prompts                   │
│  ├─ User profiles & forums                         │
│  └─ 97+ production prompts                         │
│                                                     │
│  🎯 NEW: Send to Terminal Integration              │
│  ┌─────────────────────────────────────────────┐  │
│  │ [Prompt Card]                                │  │
│  │ "Debug API authentication errors"            │  │
│  │                                               │  │
│  │ [Send to Terminal ▼]                         │  │
│  │   ├─ claude-debug    (tmux pane 0)          │  │
│  │   ├─ claude-refactor (tmux pane 1)          │  │
│  │   ├─ claude-test     (tmux pane 2)          │  │
│  │   ├─ Tabz sidebar    (Chrome extension)     │  │
│  │   └─ Opustrator      (Canvas terminal)      │  │
│  └─────────────────────────────────────────────┘  │
│                                                     │
│  🎨 Optional: Visual Workflow Builder              │
│  ┌─────────────────────────────────────────────┐  │
│  │  Canvas (from Opustrator)                    │  │
│  │  ┌──────────┐   ┌──────────┐   ┌─────────┐ │  │
│  │  │ Prompt A │──→│ Prompt B │──→│ Report  │ │  │
│  │  │ (pane 0) │   │ (pane 1) │   │(pane 2) │ │  │
│  │  └──────────┘   └──────────┘   └─────────┘ │  │
│  │                                              │  │
│  │  Drag prompts, connect them, execute flows  │  │
│  └─────────────────────────────────────────────┘  │
└─────────────────────────────────────────────────────┘
              ↓ WebSocket / Chrome API
┌─ Execution Layer ──────────────────────────────────┐
│                                                     │
│  tmux Sessions (via tmuxplexer)                    │
│  ├─ pane 0: claude-debug                           │
│  ├─ pane 1: claude-refactor                        │
│  ├─ pane 2: claude-test                            │
│  └─ pane 3: build/test output                      │
│                                                     │
│  Chrome Extension (Tabz)                           │
│  ├─ xterm terminals in sidebar                     │
│  ├─ Chrome API MCP server                          │
│  └─ DevTools integration                           │
│                                                     │
│  Opustrator Backend                                │
│  ├─ PTY orchestration                              │
│  ├─ WebSocket server                               │
│  └─ Terminal registry                              │
└─────────────────────────────────────────────────────┘

🎯 Top 10 Chrome API Tools (for MCP Server)

When you build the Chrome API MCP server for Tabz:

  1. inspect_page (chrome.debugger) - Full DevTools Protocol access
  2. execute_script (chrome.scripting) - Run JS in tabs
  3. capture_screenshot (chrome.tabs) - Visual debugging
  4. monitor_network (chrome.debugger) - Capture requests/responses
  5. manage_tabs (chrome.tabs) - Create/close/navigate tabs
  6. inspect_cookies (chrome.cookies) - Debug auth issues
  7. inject_css (chrome.scripting) - Live CSS debugging
  8. get_console_logs (chrome.debugger) - Capture JS errors
  9. download_resource (chrome.downloads) - Save generated files
  10. open_url_in_tab (chrome.tabs) - Show docs/examples Claude generates

🚀 Implementation Roadmap

Phase 1: Basic Integration (1-2 days)

Goal: Send prompts from GGPrompts.com to terminals

  1. Add "Send to Terminal" button to prompt cards in GGPrompts
  2. Build tmux session detection
    tmux list-sessions -F "#{session_name}:#{session_windows}"
  3. Create WebSocket/API endpoint to send commands
    // GGPrompts frontend → Backend → tmux
    fetch('/api/send-to-terminal', {
      body: JSON.stringify({
        session: 'claude-debug',
        pane: 0,
        command: promptContent
      })
    })
  4. Test end-to-end: Click prompt → Appears in tmux session

Phase 2: Matrix-Styled tmuxplexer (2-3 days)

Goal: React component showing all Claude sessions

  1. Create React component in GGPrompts
    <MatrixTerminalSelector
      sessions={tmuxSessions}
      onSelect={(session) => sendToSession(session, prompt)}
    />
  2. Add real-time status indicators
    • ⚡ Running prompt
    • 💤 Idle
    • 🔄 Processing
    • ✅ Complete
  3. Style with Matrix theme (green particles, monospace)
  4. Add to prompt card dropdown

Phase 3: Chrome Extension Integration (3-4 days)

Goal: Send prompts to Tabz sidebar

  1. Build Chrome API MCP server (Node.js)
  2. Expose 10 core tools (see list above)
  3. Add Tabz to terminal selector
  4. Message passing: GGPrompts → Chrome Extension → Terminal
    chrome.runtime.sendMessage({
      type: 'execute_prompt',
      prompt: promptContent,
      terminal: 'sidebar-1'
    })

Phase 4: Visual Workflow Builder (Optional - 1 week)

Goal: Drag-and-drop prompt workflows

  1. Import Opustrator canvas component into GGPrompts
  2. Allow dragging prompts onto canvas
  3. Draw connections between prompts (workflow graph)
  4. Execute workflows:
    Prompt A (pane 0) → wait for completion
    → Prompt B (pane 1) → capture output
    → Generate Report (pane 2)
    
  5. Save/load workflows as templates

💎 Unique Value Propositions

1. Browser-Native Development

  • AI terminals inside Chrome sidebar (Tabz)
  • No separate terminal window needed
  • Chrome DevTools + Claude in one place

2. Visual Prompt Orchestration

  • See all Claude instances at once
  • Send prompts to specific agents
  • Build multi-step workflows visually

3. Accessibility Features

  • Summarize web pages for screen readers
  • Claude explains page content in natural language
  • Better than traditional screen readers for modern SPAs

4. TUI Ecosystem Integration

  • All your TUI tools work everywhere:
    • Local terminal
    • Tabz sidebar
    • Opustrator canvas
    • SSH sessions
  • Portable Go binaries never break

5. Single Monitor Workflow

  • Everything in browser tabs
  • Canvas terminal wall (Opustrator)
  • No window switching

🔥 Marketing Angles

For Web Developers

"Turn Chrome into an AI-powered development environment"

  • Claude Code in browser sidebar
  • DevTools integration
  • Visual workflow automation
  • Single-monitor productivity

For Accessibility

"AI-powered web accessibility beyond screen readers"

  • Natural language page summaries
  • "Where's the checkout button?"
  • "Are there any discount codes?"
  • Works with modern SPAs

For Power Users

"Visual terminal orchestration with AI agents"

  • Matrix-themed prompt marketplace
  • Multi-agent workflows
  • tmux integration
  • Infinite canvas terminal wall

📊 Project Consolidation Strategy

You have 54 GitHub repos from 6 months of rapid prototyping. Here's the consolidation plan:

Keep & Combine (Core Projects)

  1. GGPrompts - Main marketplace
  2. Tabz - Chrome extension
  3. Opustrator - Canvas backend (or merge into GGPrompts)
  4. TFE - File explorer TUI
  5. tmuxplexer - Session manager TUI
  6. TUITemplate - Starter for new tools

Archive (Experiments/Learning)

  • GGPrompts-backup, GGPrompts-clean (consolidate into main)
  • Old prototypes that served their purpose
  • Duplicated concepts

Extract Components (Reusable Libraries)

  • MatrixCards → Component library
  • Canvas system → Shared package
  • TUI utilities → Go package

🎓 Key Lessons Learned

"Point of No Return" Problem

"It's very easy to hit a point of no return when the codebase gets big"

Solution: TUI Building Blocks

  • Small, focused Go binaries
  • Single responsibility
  • Universal interface (PTY)
  • Portable (works anywhere)
  • Never breaks (compiled)

Unix Philosophy Applied

  • Each tool does one thing well
  • Compose tools together
  • Text-based interfaces
  • Scriptable and automatable

Why TUIs Win

  1. Zero integration cost - Just spawn the binary
  2. No dependency hell - Compiled, no runtime
  3. Universal - Works in any terminal context
  4. Survive rewrites - Tools outlive frameworks
  5. Performance - Native code, fast startup

🚦 Next Steps for Tomorrow

Quick Win (1-2 hours)

Build basic "Send to Terminal" button:

  1. Add button to GGPrompts prompt cards
  2. Create simple API endpoint
  3. Send to tmux via tmux send-keys
  4. Test with one prompt

Medium Task (Half day)

Create Matrix-styled terminal selector:

  1. Design dropdown component
  2. Fetch tmux session list
  3. Show real-time status
  4. Handle selection + send

Big Task (Full day)

Start Chrome API MCP server:

  1. Set up Node.js server
  2. Implement 2-3 basic tools (screenshot, execute_script)
  3. Test from Claude Code
  4. Connect to Tabz extension

📝 Technical Notes

tmux Integration

# List sessions
tmux list-sessions -F "#{session_name}:#{session_windows}:#{session_attached}"

# Send to specific pane
tmux send-keys -t session-name:window.pane "command" Enter

# Capture pane output (for verification)
tmux capture-pane -t session-name:window.pane -p

# Check if session exists
tmux has-session -t session-name 2>/dev/null

Security Considerations

tmux send-keys is safe because:

  • Only sends to sessions you own
  • Goes through the shell (respects restrictions)
  • User can see what's being typed
  • Same permissions as manual typing
  • Can't access other users' sessions

Still need:

  • Web UI authentication (who can send commands?)
  • Input sanitization (escape shell special characters)
  • CSRF/XSS protection (standard web security)

Chrome Extension Message Passing

// GGPrompts.com → Chrome Extension
window.postMessage({
  type: 'GGPROMPTS_SEND_TO_TERMINAL',
  prompt: promptContent,
  terminal: terminalId
}, '*');

// Extension content script receives
window.addEventListener('message', (event) => {
  if (event.data.type === 'GGPROMPTS_SEND_TO_TERMINAL') {
    chrome.runtime.sendMessage(event.data);
  }
});

🎨 Design Consistency

Everything should match the Matrix aesthetic:

  • ✅ GGPrompts - Already has Matrix theme
  • ⏳ tmuxplexer React version - Use same green particles
  • ⏳ Tabz UI - Add Matrix styling
  • ⏳ Opustrator - Could adopt Matrix theme (currently has Balatro theme)

Color palette:

  • Background: #000000
  • Primary: #00ff41 (Matrix green)
  • Accent: #00ffff (Cyan)
  • Error: #ff4444
  • Text: #ffffff

🏁 Success Metrics

MVP Complete When:

  • Click prompt in GGPrompts → Appears in tmux terminal
  • Dropdown shows all available Claude sessions
  • Real-time status indicators working
  • Works with Tabz sidebar

Full Launch When:

  • Chrome API MCP server operational (10 tools)
  • Visual workflow builder functional
  • 100+ prompts in marketplace
  • Documentation complete
  • Demo video created

💬 Original Insight Quote

"The main thing I've learned is that it's very easy to hit a point of no return when the codebase gets big. That's why I made a TUITemplate and a ton of Go/Bubbletea apps. The TUI apps can always be used in any new project and can do almost anything."

This is gold. You've discovered that TUI building blocks are the perfect abstraction layer. They're like Lego pieces that never expire.


Built with 6 months of rapid prototyping and 54 GitHub repos worth of learning.

Tomorrow: Start with the quick win! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment