Skip to content

[WIP] HTTP Archive (HAR) Viewer on the Terminal written in Rust

License

Notifications You must be signed in to change notification settings

sheepla/harview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

harview

HTTP Archive (HAR) Viewer on the terminal written in Rust

This tool is still under development. Please note that specifications are subject to change without notice.

About

harview is a viewer of HAR files that runs on the terminal. You can easily view HAR files exported from a web browser without opening the browser.

The goal of this tool is not to provide in-depth analysis capabilities like DevTool, but to provide the ability to browse HAR files with a lightweight UI like an easy-to-use pager for those familiar with the command line interface.

Usage

Export HAR files from Browsers

Open your web browser's DevTools and export the HAR file. It supports the HAR format, which can be exported in the following browsers:

  • Firefox
  • Chromium based browsers

Firefox:

  1. Open DevTool (type F12 or Ctrl-Shift-I)
  2. Open Network tab and select Save All as HAR from context menu

Network request list - Firefox Source Docs

Chromium:

  1. Open DevTool (type F12 or Ctrl-Shift-I)
  2. Click Export HAR below the tab bar

Network features reference - Chrome DevTools

Use harview TUI

To use harview, specify the path of the HAR file as the first argument. Once the HAR file is loaded, entries in the HTTP log will appear in the table.

harview example.com.har

TUI can be controlled with the following keys:

Key Action
k / j Move the focus up / down
u / d Move the focus up / down more fast
1 - 4 Switch preview widget tab
q or Ctrl-C Quit application

Installation

Clone this repository then run cargo install

git clone https://github.com/sheepla/harview.git
cd harview
cargo install --path .

References

Thanks

  • ratatui - This tool was built with ratatui, a TUI library for Rust. Thank you for the amazing library and its ecosystem!

About

[WIP] HTTP Archive (HAR) Viewer on the Terminal written in Rust

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages