How blossom-anolue/securewebopsapp works
SecureWebOps combines a security-monitoring web app, an Express API, and browser-extension entry points. The main user workflow is account access, then starting and reviewing security scans; other product areas cover phishing checks and training, team/workspace administration, and secure PDF sharing and decryption. The backend scan and PDF routes delegate to services, while Supabase provides application data and storage. The README is empty, and several major pages and functions were not sampled; their presence is shown, but uncertain connections are omitted.
Main entry points: App.tsx App routing · pdfRoutes.js PDF API · server.js Express server · supabaseAdmin.js Supabase admin client
Components 26
Web application
- App routing
src/App.tsx - Sign-in
src/pages/Auth.tsx - Security dashboard
src/pages/Dashboard.tsx - Scan pages
src/pages/NewScan.tsx - Phishing checks
src/pages/PhishingCheck.tsx - Security training
src/pages/Training.tsx - PDF workflows
src/pages/PDFEncryption.tsx
Identity and teams
- Auth context
src/contexts/AuthContext.tsx - Organization hooks
src/hooks/useOrganizations.ts - User and workspace API
routes/userRoutes.js
Security monitoring
- Scan API
routes/scanRoutes.js - Scan orchestration
services/zapScanService.js - Scheduled scans
supabase/functions/scheduled-scan/index.ts - Security scan function
supabase/functions/security-scan/index.ts
Secure documents
- PDF API
routes/pdfRoutes.js - Access controller
services/SecureAccessController.js - PDF encryption
services/encryptionServices.js - PDF decryption
services/decryptionServices.js
API and services
- Audit logging
services/auditService.js - Extension API
routes/extensionRoutes.js - Express server
server.js - Supabase client
src/integrations/supabase/client.ts - Supabase admin client
services/supabaseAdmin.js
Other components
- User
- Supabase data and storage
- ZAP scanner
Connections 27
- User → App routing: uses
src/App.tsx - App routing → Sign-in: routes to
src/App.tsx - App routing → Security dashboard: routes to
src/App.tsx - App routing → Scan pages: routes to
src/App.tsx - App routing → Phishing checks: routes to
src/App.tsx - App routing → Security training: routes to
src/App.tsx - Sign-in → Auth context: uses
src/pages/Auth.tsx - Auth context → Supabase client: uses
src/contexts/AuthContext.tsx - Organization hooks → Supabase client: queries
src/hooks/useOrganizations.ts - Organization hooks → User and workspace API: requests
src/hooks/useOrganizations.ts - Express server → Scan API: mounts
server.js - Express server → PDF API: mounts
server.js - Express server → User and workspace API: mounts
server.js - Express server → Extension API: mounts
server.js - Scan API → Scan orchestration: dispatches
routes/scanRoutes.js - Scan API → Supabase admin client: queries
routes/scanRoutes.js - Scan orchestration → Supabase admin client: uses
services/zapScanService.js - Scan orchestration → ZAP scanner: scans with
services/zapScanService.js - PDF API → Supabase admin client: uses
routes/pdfRoutes.js - PDF API → PDF encryption: encrypts with
routes/pdfRoutes.js - PDF API → Access controller: delegates to
routes/pdfRoutes.js - Access controller → PDF decryption: decrypts with
services/SecureAccessController.js - PDF API → Audit logging: logs events
routes/pdfRoutes.js - Access controller → Audit logging: logs events
services/SecureAccessController.js - Audit logging → Supabase data and storage: writes logs
services/auditService.js - Supabase client → Supabase data and storage: connects to
src/integrations/supabase/client.ts - Supabase admin client → Supabase data and storage: connects to
services/supabaseAdmin.js