# Realtime Network Monitor (Example Plugin)

This sample shows how to stream live plugin data into Mugi's native Swift dashboard.

## Install

1. Copy this folder to:
   - `~/.mugi/plugins/realtime_network_monitor/`
2. In Mugi, open **Settings > Plugins** and click **Reload**.
3. Approve and enable **Realtime Network Monitor**.

## Tool exposed

- `monitor_network_live(packet_count=120, capture_type="general", duration_seconds=15)`

The tool wraps `capture_network_traffic` and emits stream events with metrics such as:

- `packets_total`
- `packets_per_second`
- `issue_mentions`
- `progress_pct`

These update the native Plugin Dashboard in real time.

This sample also demonstrates reverse-channel controls in the dashboard:
- `Top PIDs` slider
- `Capture Type` select
- `Realtime mode` toggle
- `Stop (next run)` button
