How bluewave-labs/verifywise works
High-Level Architecture Components
The system follows a Clean Architecture pattern (as evidenced by the directory structure) with clear separation of concerns. The main components to include are:
a) Frontend Layer (Clients):
• Present as a React-based SPA with the following layers:
• Presentation Layer (/presentation)
• Application Layer (/application)
• Infrastructure Layer (/infrastructure)
• Features like Authentication, Dashboard, Assessment, Compliance Tracking
b) Backend Layer (Servers):
• Node.js-based API server with:
• Controllers Layer (/controllers)
• Models Layer (/models)
• Routes Layer (/routes)
• Database Layer (/database)
• Middleware Layer (/middleware)
Component Relationships
• Frontend to Backend communication via REST APIs
• Authentication flow with JWT (shown in auth.middleware.ts)
• Database interactions for various entities (projects, assessments, controls, etc.)
• File management system flow
• User role-based access control (RBAC) flow
Key Architectural Elements
Specific components:
[Frontend (React SPA)] → [API Layer] → [Backend Services] → [Database]
• ↓
[Authentication & Authorization]
• ↓
[Feature Modules]
• Projects Management
• Compliance Tracker
• Assessment Tracker
• Vendor Management
• Risk Management
• AI Trust Center
• File Management
Data Flow Patterns
Highlight:
• Redux store for state management (shown in /application/redux)
• API request/response flow through customAxios
• File upload/download processes
• Authentication token flow
• Real-time reporting data flow
Security Layer
Emphasize:
• End-to-end encryption
• JWT-based authentication
• Role-based access control
• On-premises deployment option
Specific Implementation Details
Specialized components:
• Custom hooks (/application/hooks)
• Validation layers (/application/validations)
• Exception handling (/infrastructure/exceptions)
• Middleware implementations
Deployment View
Include:
• Docker container architecture
• Database deployment
• API server deployment
• Frontend hosting
Remember to emphasize the platform's key differentiators:
• On-premises hosting capability
• End-to-end encryption
• Open-source nature
• Compliance and assessment tracking
• AI governance-specific features
This will create a comprehensive yet understandable system design that accurately represents the platform's architecture while highlighting its unique value proposition in AI governance.