mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-03-30 20:35:40 +00:00
#195 — /api/nodes/:pubkey/analytics was hitting SQL (packets_v view) for all queries. Added store.GetNodeAnalytics(pubkey, days) that uses the byNode[pubkey] index + text search through decoded_json, computing all analytics (timeline, SNR trend, type breakdown, observer coverage, hop distribution, peer interactions, uptime heatmap, computed stats) entirely in-memory. Route handler now uses store path when available, falling back to SQL only when store is nil. #196 — recentPackets from /api/nodes/:pubkey/health were missing the _parsedPath field that Node.js includes (lazy-cached parsed path_json array). Added _parsedPath to txToMap() output using txGetParsedPath(), matching the Node.js packet shape. fixes #195, fixes #196 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>