mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-04-15 06:15:54 +00:00
Add a filter language for the packets page. Users can type expressions like: type == Advert && snr > 5 payload.name contains "Gilroy" hops > 2 || route == FLOOD Architecture: Lexer → Parser → AST → Evaluator(packet) → boolean - packet-filter.js: standalone IIFE exposing window.PacketFilter - Supports: ==, !=, >, <, >=, <=, contains, starts_with, ends_with - Logic: &&, ||, !, parentheses - Fields: type, route, hash, snr, rssi, hops, observer, size, payload.* - Case-insensitive string comparisons, null-safe - Self-tests included (node packet-filter.js) - packets.js: filter input with 300ms debounce, error display, match count - style.css: filter input states (focus, error, active) - index.html: script tag added before packets.js
76 KiB
76 KiB