How mf-rayo/white-cat works
White and Dark Cat is an experimental React threat-intelligence dashboard frontend. Users navigate from the dashboard to IOC, active-group, and CVE views; those views display summaries and report details fetched from the associated backend. The graph also preserves the documented API/feeds and asynchronous-backend context, but this repository contains only the frontend. Connections for unsampled pages are based on the SOURCE INDEX; the backend integration is documented but its implementation is outside this tree.
Main entry points: Dashboard.jsx Dashboard · App.jsx Router and layout · ReportedCve.jsx Reported CVEs · ActiveGroups.jsx Active groups
Components 24
App navigation
- Router and layout
src/App.jsx
Data access
- Cached fetch resource
src/lib/fetchData.js - API endpoints
src/lib/api.js - Dashboard data context
src/context/DashboardContext.jsx
Threat views
- Dashboard
src/pages/Dashboard.jsx - Reported IOCs
src/pages/Ioc.jsx - Active groups
src/pages/ActiveGroups.jsx - Reported CVEs
src/pages/ReportedCve.jsx - Disclaimer
src/pages/Disclaimer.jsx
Shared presentation
- Page container
src/components/Container.jsx - Post table
src/components/ui/table/Posts.jsx - Source table
src/components/ui/table/Source.jsx - Dashboard map
src/components/ui/map/SimpleMap.jsx - Map rendering
src/components/ui/map/Map.jsx - IOC details
src/components/ui/details/screenshot.jsx - CVSS details
src/components/ui/details/cvss.jsx - Date formatting
src/components/ui/date/FormatDate.jsx - Badges
src/components/ui/badge/Badge.jsx - Color mapping
src/lib/hashColor.js - Copy data
src/components/ui/clipboard/CopyData.jsx - Alert context
src/context/AlertContext.jsx - Error boundary
src/hooks/ErrorBoundary.jsx
Other components
- User
- FastAPI backend
Connections 33
- User → Router and layout: navigates
src/App.jsx - Router and layout → Dashboard: routes to
src/App.jsx - Router and layout → Reported IOCs: routes to
src/App.jsx - Router and layout → Active groups: routes to
src/App.jsx - Router and layout → Reported CVEs: routes to
src/App.jsx - Router and layout → Disclaimer: routes to
src/App.jsx - Dashboard → Dashboard data context: reads summary
src/pages/Dashboard.jsx - Dashboard data context → Cached fetch resource: loads data
src/context/DashboardContext.jsx - Dashboard data context → API endpoints: uses endpoint
src/context/DashboardContext.jsx - Active groups → Cached fetch resource: loads data
src/pages/ActiveGroups.jsx - Active groups → API endpoints: uses endpoint
src/pages/ActiveGroups.jsx - Reported IOCs → Cached fetch resource: loads data
src/pages/Ioc.jsx - Reported IOCs → API endpoints: uses endpoint
src/pages/Ioc.jsx - Reported CVEs → Cached fetch resource: loads data
src/pages/ReportedCve.jsx - Reported CVEs → API endpoints: uses endpoint
src/pages/ReportedCve.jsx - Cached fetch resource → FastAPI backend: requests data
- Dashboard → Page container: renders
src/pages/Dashboard.jsx - Active groups → Page container: renders
src/pages/ActiveGroups.jsx - Dashboard → Post table: renders
src/pages/Dashboard.jsx - Active groups → Post table: renders
src/pages/ActiveGroups.jsx - Dashboard → Source table: renders
src/pages/Dashboard.jsx - Dashboard → Dashboard map: renders
src/pages/Dashboard.jsx - Dashboard map → Map rendering: renders
src/components/ui/map/SimpleMap.jsx - Reported IOCs → IOC details: renders
src/pages/Ioc.jsx - Reported CVEs → CVSS details: renders
src/pages/ReportedCve.jsx - Dashboard → Date formatting: formats dates
src/pages/Dashboard.jsx - Reported CVEs → Date formatting: formats dates
src/pages/ReportedCve.jsx - IOC details → Date formatting: formats dates
src/components/ui/details/screenshot.jsx - Post table → Badges: uses
src/components/ui/table/Posts.jsx - Post table → Color mapping: colors labels
src/components/ui/table/Posts.jsx - IOC details → Copy data: copies value
src/components/ui/details/screenshot.jsx - Reported CVEs → Badges: uses
src/pages/ReportedCve.jsx - Error boundary → Alert context: reports errors
src/hooks/ErrorBoundary.jsx