Repository navigation
planflare v0.1.0
100% offline PostgreSQL EXPLAIN (ANALYZE, BUFFERS, FORMAT JSON) flamegraph, hotspot detector, and before/after plan diff CLI with zero runtime dependencies.
Highlights
- 100% Offline & Zero Dependencies: Never paste production query plans into third-party websites; pipe directly from
psql(including defaultpsql-wrapped output) or analyze saved JSON files. - True Exclusive Timing & Buffer Math: Accounts for
Actual Loops,Actual Loops = 0(Never Executed), parallel workers,InitPlanchildren, and exclusive block subtraction forBitmap Heap Scanand stacked disk spills. - Automated Hotspot Detection: Flags
LARGE_SEQ_SCAN,ROW_MISESTIMATE(per-loop),DISK_SPILL,LOW_BUFFER_HIT, andHIGH_FILTER_REMOVAL. - Multiple Outputs: Terminal flamegraph, before/after plan diff, copy-paste Markdown PR table (
--markdown), JSON (--json), and standalone offline HTML flamegraph (--html). - Verified Cross-Platform: 10/10 tests passing across Ubuntu, macOS, and Windows on Node 24.
Try It in 1 Second
npx planflare --demo