Skip to content

11philip22/har-viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hero pane

Rust 2024 MIT License PRs Welcome Live Demo

Overview · Features · Requirements · Setup · Run · Build · Test · Contributing · License


Client-side HAR viewer built with Rust, Leptos, and WebAssembly.

Overview

har-viewer loads a HAR file in the browser and lets you inspect requests/responses with filtering, sorting, and split request/response panes.
No backend is required.

Features

  • Local HAR import via file picker or drag-and-drop
  • Indexed parsing for large HAR files
  • Toolbar filters (search, method, status group, MIME)
  • Sortable HTTP history table
  • Split inspector for raw request and response messages
  • Light/dark theme toggle

Requirements

  • Rust (stable)
  • wasm32-unknown-unknown target
  • Trunk (cargo install trunk)

Setup

rustup target add wasm32-unknown-unknown

Run (development)

trunk serve

Then open the local URL printed by Trunk (typically http://127.0.0.1:8080).

Build

trunk build --release

Test

cargo test
cargo check --target wasm32-unknown-unknown

Project Structure

  • src/ui/ UI components and interaction logic
  • src/har/ HAR scanning, parsing, and message formatting
  • src/state/ app state and selection/sort/filter behavior
  • src/filter/ filter model
  • style/main.css app styling
  • index.html Trunk entry point

Notes

  • The app is intended to run in the browser. Running the native binary prints a message and exits.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/cool-feature)
  3. Commit your changes (git commit -m 'Add some cool feature')
  4. Push to the branch (git push origin feature/cool-feature)
  5. Open a Pull Request

Support

If this crate saves you time or helps your work, support is appreciated:

Ko-fi

License

This project is licensed under the MIT License; see the license for details.

About

Client-side HAR viewer built with Rust, Leptos, and WebAssembly for inspecting HTTP archive files with filtering, sorting, and request/response inspection.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors