Skip to content

Leidvor/har-visualizer

 
 

Repository files navigation

HAR Visualizer

Offline, privacy-focused HAR analysis tool built with FastAPI + vanilla HTML/CSS/JS.

Designed for support workflows on large HAR files (120k+ entries):

  • fast filtering
  • endpoint aggregation
  • safe-mode masking (privacy)
  • request detail inspection
  • cURL export (only when safe mode is OFF)

Why this exists (support mindset)

When a customer sends a HAR, you typically want to answer quickly:

  • “What are the top failing requests (4xx/5xx)?”
  • “Which endpoints have the worst error rate?”
  • “Are there slow requests (>1s)?”
  • “Can I reproduce this request with a cURL?”

This tool is built to make that triage fast and safe, even on big captures.


Features

Safe Mode

  • Masks query parameters
  • Redacts sensitive headers
  • Disables Copy as cURL when enabled

Large HAR friendly

  • Server-side filtering
  • Pagination (avoids huge DOM rendering)
  • Endpoint aggregation (count/errors/error rate/avg/p95/max)

Support filters

Quick filters:

  • Errors
  • 5xx
  • 4xx
  • Slow (> 1s)
  • 401/403

Advanced filters:

  • host, method, type
  • status range, min duration
  • sorting
  • auto-apply with debounce

Detail viewer

  • Click a request → full normalized JSON details
  • Highlighting for 4xx / 5xx / slow / auth
  • Copy as cURL (safe mode OFF only)

Screenshots

Main dashboard

Main UI

Large HAR + pagination

Large HAR

Safe mode disables cURL export

Safe Mode


Project structure

app/ (FastAPI backend + HAR parsing/analytics) web/ (static frontend, vanilla JS)


Usage (for support users)

  1. Click Load a HAR
  2. Keep Safe mode enabled by default
  3. Click Load
  4. Use quick filters (5xx/4xx/Slow/401-403)
  5. Click an endpoint row to focus requests
  6. Click a request to inspect the full details

To copy cURL:

  • Disable Safe mode
  • Reload the HAR
  • Select a request
  • Click Copy as cURL

Windows SmartScreen (unsigned executable)

Because the executable is not code-signed, Windows may show a SmartScreen warning the first time you run it.

Steps:

  • Click More info
  • Click Run anyway

If your company environment blocks unknown executables, ask IT to whitelist the file hash or the release ZIP.


Usage (for developers)

PowerShell (Windows):

python -m venv .venv Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass ..venv\Scripts\Activate.ps1 pip install -r requirements.txt python -m app.launcher


Distributing to non-technical users (no Python)

The recommended distribution is a Windows standalone executable built with PyInstaller.

End-users workflow:

  • Download the zip from GitHub Releases
  • Double-click HAR-Visualizer.exe
  • The app opens in the browser automatically

Roadmap

  • CSV export (filtered entries + endpoints)
  • Error clustering (top repeated failures)
  • Shareable support report (copy/paste summary)
  • Optional response preview (size-limited)

License

MIT


Author

Lucas Gourmelon GitHub: https://github.com/Leidvor

About

Privacy-focused offline HAR analysis tool (FastAPI + vanilla JS) built for support teams handling HAR files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 78.2%
  • TeX 19.5%
  • Python 1.1%
  • Other 1.2%