Skip to content

cnharrison/har-tui

Repository files navigation

🐱 HAR TUI DELUXE

The world's best TUI HAR viewer. Vibe coded. Vim inspired. Request type filters like on your browser's dev tools. Composable filters. Waterfall view for visualizing request timing and concurrency. Professional syntax highlighting with Chroma. Image and SVG display in the terminal if your teriminal supports, otherwise recreate a facsimile of the image with ASCII blocks. Code autodetection, prettification and formatting. Quickly copy any part of any request, or a summary of the whole request, to the clipboard. Scroll through a JSON body and copy the path under your cursor in one keystroke. Quickly output to curl. Replay requests. TUI HAR viewer. You know you want it.

🛠 Installation

Installing Go

If you don't have Go installed:

Linux/macOS

# Download and install Go from https://golang.org/dl/
# Or use a package manager:

# Ubuntu/Debian
sudo apt update && sudo apt install golang-go

# macOS (Homebrew)
brew install go

# Arch Linux
sudo pacman -S go

Windows

Download the installer from https://golang.org/dl/ or use:

# Using Chocolatey
choco install golang

# Using Scoop
scoop install go

Installing HAR TUI

Option 1: Install from Source

# Clone the repository
git clone https://github.com/cnharrison/har-tui.git
cd har-tui

# Build the application
go build -o har-tui cmd/har-tui/main.go

# Make it executable (Linux/macOS)
chmod +x har-tui

Option 2: Install to System PATH

Linux/macOS
# Build and install to /usr/local/bin
go build -o har-tui cmd/har-tui/main.go
sudo mv har-tui /usr/local/bin/
Windows (PowerShell)
# Build the application
go build -o har-tui.exe cmd/har-tui/main.go

# Move to a directory in your PATH (example: C:\Tools)
mkdir C:\Tools -Force
move har-tui.exe C:\Tools\

Then add C:\Tools to your PATH environment variable.

Option 3: Using Go Install

go install github.com/cnharrison/har-tui@latest

Option 4: Using Make

# Build
make build

# Install to system PATH
make install

⌨️ Keyboard Shortcuts

Navigation

Key Action
j / k Move up/down in request list
h / l Navigate filter buttons (top panel) / tabs (bottom panel)
g / G Go to top/bottom
w Toggle between request list and waterfall view
i Switch focus between request list and detail panels
Tab / Shift+Tab Navigate tabs in detail panel
Ctrl+D / Ctrl+U Page down/up in focused detail panel

Waterfall View

Key Action
d Toggle detailed timing breakdown (when in waterfall)
+ / = Zoom in (increase chart width)
- / _ Zoom out (decrease chart width)

Filtering & Search

Key Action
/ Open inline search (filter by host/path)
h / l Navigate type filter buttons when focused on top
s Toggle sort by slowest requests
e Toggle errors-only view (4xx/5xx)
a Reset all filters and sorting

Actions

Key Action
y Copy modal - Copy various parts to clipboard
b Save current response body to file
c Save current request as cURL command
m Generate markdown summary and copy to clipboard
E Edit request/response content in $EDITOR
R Replay current request
S Save filtered HAR entries to new file
? Show help
q Quit application

Copy Modal Options (y)

Key Content
1 Request URL
2 Request headers (JSON)
3 Request body
4 Response headers (JSON)
5 Response body
6 Timing information
7 Full request summary
8 Full response summary
9 cURL command
0 Raw JSON (complete entry)
m Markdown summary

📝 License

MIT License - see LICENSE file for details.

About

The world's best TUI HAR viewer. Vim inspired.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages