How kabiracharya/snaffalyzer works
Snaffalyzer is an offline browser application for parsing and triaging Snaffler scan logs. The main workflow reads a dropped or selected file, parses plain or TSV records and scan metadata, then presents findings for visual analysis and filtering. Users can export findings or generate a standalone HTML report, optionally encrypted. The README also documents CLI report generation. Dashboard composition and some reporting/export wiring are represented from documented capabilities and the tree; those unsampled implementations are not independently verified.
Main entry points: Dashboard.tsx Dashboard · App.tsx Workflow State · reportGenerator.ts HTML Generator · DropZone.tsx File Drop
Components 18
Log Intake
- File Drop
src/components/DropZone.tsx - Workflow State
src/App.tsx - Log Parser
src/utils/parser.ts - Invalid Warning
src/components/InvalidWarningModal.tsx
Triage Dashboard
- Dashboard
src/components/Dashboard.tsx - Scan Metrics
src/components/MetricsRow.tsx - Charts and Summary
src/components/Charts.tsx - Findings Table
src/components/FindingsTable.tsx - Scan Information
src/components/InfoSection.tsx
Reports and Export
- Save Report
src/components/SaveModal.tsx - HTML Generator
src/utils/reportGenerator.ts - Report Encryption
src/utils/crypto.ts - Standalone Template
public/report-template.html - CSV and Clipboard
src/utils/export.ts - CLI Report Generation
generate-report.sh - HTML Report
- CSV or Clipboard Output
Other components
- Analyst
Connections 20
- Analyst → File Drop: selects or drops
- File Drop → Workflow State: delivers file
- Workflow State → Log Parser: parses text
- Log Parser → Workflow State: returns findings
- Workflow State → Invalid Warning: shows warning
- Workflow State → Dashboard: supplies scan data
- Dashboard → Scan Metrics: renders metrics
- Dashboard → Charts and Summary: renders summaries
- Dashboard → Findings Table: renders findings
- Dashboard → Scan Information: renders scan info
- Analyst → Dashboard: reviews and filters
- Dashboard → Save Report: opens report save
- Save Report → HTML Generator: requests report
- HTML Generator → Report Encryption: encrypts optionally
- HTML Generator → Standalone Template: loads template
- HTML Generator → HTML Report: downloads HTML
- Dashboard → CSV and Clipboard: exports findings
- CSV and Clipboard → CSV or Clipboard Output: downloads or copies
- Analyst → CLI Report Generation: provides log file
- CLI Report Generation → HTML Report: generates HTML