Pretty PCAP is a desktop application for viewing .pcap and .pcapng files in a clean, modern, and user-friendly way. It aims to provide all the packet data you would expect from a traditional packet analyzer, while presenting it in a visually appealing and easy-to-navigate interface.
The core flow is simple:
- Select a PCAP / PCAPNG file
- Parse the file
- View packet data in a rich, readable UI
- Desktop application built with Electron
- React-based frontend for a modern UI
- Python backend for reliable PCAP parsing
- Supports
.pcapand.pcapngfiles - Displays packet metadata
- Displays packet payload
- Color-coded packets by protocol (TCP, UDP, ARP, etc.)
- Scrollable, large-file-friendly packet table
The backend is responsible for parsing PCAP files and returning structured packet data as JSON.
cd backend
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txtpython api.pyThe API runs locally on:
http://127.0.0.1:5050
POST /parse
Test Backend:
curl -X POST http://127.0.0.1:5000/parse -H "Content-Type: application/json" -d '{"file_path": "/home/user/pretty-pcap/backend/example.pcap"}'
The frontend provides the desktop UI and communicates with the backend API.
cd frontend/pretty-pcap
npm installStart the React dev server:
npm run devIn another terminal, start Electron:
npm start- Electron launches a desktop window
- React renders the UI inside Electron
- User selects a PCAP file using a native file dialog
- The file path is sent to the Flask API
- The backend parses the file and returns packet data as JSON
- React renders the packet data in a table with visual enhancements
cd backend
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txtpyinstaller api.py --onefile --name "pretty-pcap-parser" --icon icon.ico --version-file version.txtcd /frontend/pretty-pcap
npm install # install dependecies if you havent already
mkdir executable- The backend executable we compiled earlier needs to go inside:
/frontend/pretty-pcap/executablecd /frontend/pretty-pcap
npm run package # compiles the react frontend & builds the final electron executable- The final Electron executable can be found here:
/frontend/pretty-pcap/releasePretty PCAP is a learning-focused and experimental project. It is not intended to replace professional-grade tools, but to explore better UI/UX patterns for packet analysis.
This project is licensed under the GNU General Public License
Contributions are welcome! Please open an issue or submit a pull request if you'd like to improve Pretty PCAP.

