How roeechaimo/checkmarx-app works
Checkmarx App is a frontend for visualizing backend microservices and their resource relationships. The principal workflow fetches microservice and resource data, parses it into graph nodes, derives relationship edges, and renders the graph with a legend. The graph component coordinates these steps; shared context tracks loading, while node configuration and specialized views control presentation. The README identifies a separately run backend, but does not document its API contract. Some core files, including the reducer and API paths, were indexed but not excerpted, so links to them reflect only the visible imports and use.
Main entry points: Graph.jsx Graph coordinator · App.jsx App shell · node.config.js Node configuration · main.jsx React entry
Components 19
Application shell
- App shell
src/App.jsx - React entry
src/main.jsx
Graph data flow
- Graph coordinator
src/components/Graph/Graph.jsx - API paths
src/api/paths.js - API client
src/hooks/useApi.jsx - Response parsers
src/utils/parsers.js - Graph state reducer
src/components/Graph/reducer.js - Edge builder
src/utils/nodeUtils.js
Graph presentation
- Node configuration
src/node.config.js - Microservice node
src/components/MicroserviceNode/MicroserviceNode.jsx - Resource node
src/components/ResourceNode/ResourceNode.jsx - Graph legend
src/components/GraphLegend/GraphLegend.jsx - Image renderer
src/components/Image/Image.jsx
Shared UI state
- Loading context
src/contexts/AppContext.jsx - Loading indicator
src/components/Loader/Loader.jsx - Error fallback
src/components/ErrorFallback/ErrorFallback.jsx - Async error bridge
src/hooks/useAsyncError.jsx
Other components
- Browser user
- Checkmarx backend
Connections 22
- Browser user → React entry: opens app
src/main.jsx - React entry → App shell: renders
src/main.jsx - React entry → Loading context: provides state
src/main.jsx - App shell → Graph coordinator: renders
src/App.jsx - App shell → Loading context: reads loading
src/App.jsx - App shell → Loading indicator: shows while loading
src/App.jsx - App shell → Graph legend: renders
src/App.jsx - App shell → Error fallback: uses as fallback
src/App.jsx - Graph coordinator → API paths: selects endpoints
src/components/Graph/Graph.jsx - Graph coordinator → API client: fetches data
src/components/Graph/Graph.jsx - API client → Checkmarx backend: requests data
src/hooks/useApi.jsx - API client → Loading context: sets loading
src/hooks/useApi.jsx - Graph coordinator → Response parsers: parses responses
src/components/Graph/Graph.jsx - Graph coordinator → Graph state reducer: dispatches updates
src/components/Graph/Graph.jsx - Graph coordinator → Edge builder: builds edges
src/components/Graph/Graph.jsx - Graph coordinator → Node configuration: uses node types
src/components/Graph/Graph.jsx - Node configuration → Microservice node: registers view
src/node.config.js - Node configuration → Resource node: registers view
src/node.config.js - Graph legend → Node configuration: uses image maps
src/components/GraphLegend/GraphLegend.jsx - Graph legend → Image renderer: renders icons
src/components/GraphLegend/GraphLegend.jsx - Resource node → Image renderer: renders icons
src/components/ResourceNode/ResourceNode.jsx - Graph coordinator → Async error bridge: forwards errors
src/components/Graph/Graph.jsx