What is the TUI?
The TUI is a keyboard-driven, full-screen terminal interface that gives you a comprehensive view of your API simulator environment. It combines service management, log monitoring, and configuration inspection into a single, unified interface.Key features
- Real-time service status - See which services are running and on which ports
- Live request logs - Monitor API requests as they happen
- Log filtering - Filter by service, method, status code, or search terms
- Service control - Start, stop, and manage services interactively
- Keyboard navigation - Fast, mouse-free workflow
- Multi-pane layout - Service list, logs, and actions all visible at once
- Endpoint explorer - Browse available endpoints for each service
Why use the TUI?
Visual monitoring
See request traffic in real-time without parsing log files.
Fast debugging
Quickly filter logs to find specific requests or errors.
Service management
Start, stop, and inspect services without remembering CLI commands.
Workflow efficiency
Stay in the terminal with a mouse-free, keyboard-driven interface.
Getting started
Launch the TUI
Simply run:- Load all service definitions from the current directory
- Start any configured services
- Display the interactive dashboard
TUI layout
The interface is divided into several panes:Keyboard shortcuts
Navigation
- Tab - Switch between panes (service list, logs, endpoint explorer)
- ↑/↓ - Navigate within the current pane
- PgUp/PgDn - Scroll logs quickly
- Home/End - Jump to top/bottom
Service management
- s - Start selected service
- x - Stop selected service
- r - Reload service configuration
- i - Inspect service details
- e - Open endpoint explorer
Log management
- f - Open filter dialog
- c - Clear logs
- / - Search logs
- n - Next search result
- N - Previous search result
General
- ? - Show help dialog
- q or Ctrl+C - Quit TUI
- Ctrl+L - Refresh screen
Views and modes
Dashboard view (default)
Shows service list and request logs side-by-side. This is the main view for monitoring activity.Endpoint explorer
Press e to open the endpoint explorer for the selected service:Config inspector
Press i to view detailed service configuration:Filtering logs
Press f to open the filter dialog:Filter options
- Service - Show logs from specific service only
- Method - Filter by HTTP method (GET, POST, etc.)
- Status - Filter by status code range:
200-299- Success responses400-499- Client errors500-599- Server errorsAll- No filtering
- Search - Text search in request path or response
Active filters indicator
When filters are active, the status bar shows:Log entry details
Select a log entry and press Enter to see details:Service status indicators
- 🟢 Green dot - Service is running
- 🔴 Red dot - Service is stopped
- 🟡 Yellow dot - Service is starting/stopping
- ⚠️ Warning - Service has errors
Practical workflows
Debugging a failing endpoint
Inspect request
Select the failing request and press Enter to see full details including request body and headers.
Monitoring multiple services
Testing scenario changes
Configuration
TUI settings
Configure TUI behavior inapicentric.json:
Custom themes
Supported color schemes:default- Standard terminal colorsdark- Dark background optimizedlight- Light background optimizedsolarized- Solarized color palette
Performance tips
The TUI automatically throttles log updates to prevent terminal overload during traffic spikes.
Troubleshooting
TUI not rendering correctly
Issue: Garbled display or incorrect colors. Solutions:- Ensure your terminal supports 256 colors:
echo $TERMshould showxterm-256coloror similar - Try resizing the terminal window (minimum 80x24)
- Use a modern terminal emulator (iTerm2, Alacritty, Windows Terminal)
Service won’t start
Issue: Service shows red dot and won’t start. Solutions:- Press i to inspect service configuration
- Check for YAML syntax errors
- Verify port is not already in use
- Press r to reload after fixing issues
Logs not appearing
Issue: Request logs aren’t showing up. Solutions:- Check if filters are active (status bar shows filter indicator)
- Press f and click “Clear” to remove all filters
- Verify the service is actually receiving requests
- Press Ctrl+L to refresh the display
Tips and best practices
The TUI requires the
tui feature, which is included in most installation methods. If unavailable, reinstall with: cargo install apicentric --features tuiNext steps
- Monitor API simulator services in real-time
- View contract testing results in the TUI
- Manage digital twins through the interface
- Combine with MCP integration for AI-assisted monitoring