使い方

TUI

端末で sudo varwatch --tui を実行します。

キー動作
Space / Enter選択中の watcher を ON/OFF
/ログのキーワードフィルタ
f / Escフィルタ解除
pプリセットを切替 (logs → caches → temp)
e全ログを CSV エクスポート
s設定を保存
n通知テスト
q / Ctrl-C終了

Web UI

varwatch --web で http://localhost:8080 を開きます。以下のパネルを備えています。

表記言語はヘッダーのボタンで 日本語 / English を即時切替できます(選択は localStorage に保存)。

REST API

$ curl 'http://localhost:8080/api/logs?since=2026-09-23T00:00:00%2B09:00&q=Created&limit=50'   # 検索
$ curl 'http://localhost:8080/api/alerts'                                                      # アラート履歴
$ curl -o logs.csv 'http://localhost:8080/api/export?format=csv&source=fswatch'                # エクスポート
$ curl 'http://localhost:8080/api/stats?hours=24'                                              # 統計
$ curl 'http://localhost:8080/api/tree?hours=24'                                               # ツリー
$ curl 'http://localhost:8080/api/diffs?limit=50'                                              # 差分
$ curl 'http://localhost:8080/api/presets' && curl -X POST 'http://localhost:8080/api/presets/logs/apply'
$ curl 'http://localhost:8080/api/perf'                                                        # パフォーマンス
$ curl 'http://localhost:8080/api/config'                                                      # 言語などの設定

Live Demo

Netlify 上で公開しているモックデモを試せます。

▶ Live Demo を試す