A terminal UI for browsing Typesense collections, viewing metrics, and managing documents. Inspired by lazydocker.
- Collections Browser: View all collections, their schemas, and document counts
- Metrics Dashboard: Real-time server health and performance metrics
- Document Viewer: Browse and inspect documents within collections
- Keyboard Navigation: Full keyboard control with intuitive shortcuts
- Multi-page Interface: Switch between different views seamlessly
go build -o typesense-cli .Or install directly:
go install github.com/humbledshuttler/typesense-cli@latesttypesense-cli [flags]--host: Typesense server host (default: localhost)-p, --port: Typesense server port (default: 8108)--protocol: Typesense server protocol (default: http)-k, --api-key: Typesense API key (default: xyz)-d, --debug: Enable debug mode-h, --help: Show help information--version: Show version information
# Connect to local Typesense instance
typesense-cli
# Connect to remote Typesense server
typesense-cli --host typesense.example.com --port 443 --protocol https --api-key your-api-key
# Enable debug mode
typesense-cli --debugc: Switch to Collections viewm: Switch to Metrics viewd: Switch to Documents viewx: Quit application
r: Refresh collections listEnter: View documents in selected collection- Arrow keys: Navigate collections
r: Refresh metrics- Auto-refreshes every 5 seconds
r: Refresh documentsn: Next pagep: Previous page- Arrow keys: Navigate documents
Displays all collections in your Typesense server. Select a collection to view its schema, field definitions, and document count. Press Enter to browse documents in that collection.
Shows server health status and performance metrics including:
- Server health status
- Collection count
- Total document count
- Auto-refreshes every 5 seconds
Browse documents within a selected collection. View full document details in the side panel. Navigate through pages using n and p keys.
- Go 1.21 or later
- Typesense server (local or remote)
- tview: Terminal UI framework
- tcell: Terminal cell library
- typesense-go: Typesense Go client
- flaggy: Command-line flag parsing
- go-errors: Enhanced error handling
MIT