How hacv1k/opcua-monitor works
This repository is a small starter application: the browser renders a single home page and requests a greeting from a FastAPI backend; the backend also exposes status-check creation and listing backed by MongoDB. Separately, the frontend includes development-time visual-editing and build-health capabilities, plus a reusable UI component set. The README provides no product detail, and unsampled UI modules and plugin internals are represented only at directory level where appropriate.
Main entry points: craco.config.js Frontend configuration · server.py FastAPI service · index.js React entry · App.js Home page
Components 13
Web application
- React entry
frontend/src/index.js - Home page
frontend/src/App.js
Backend API
- FastAPI service
backend/server.py - Status checks
backend/server.py
Development tooling
- Frontend configuration
frontend/craco.config.js - Visual edit middleware
frontend/plugins/visual-edits/dev-server-setup.js - JSX metadata transform
frontend/plugins/visual-edits/babel-metadata-plugin.js - Webpack health tracker
frontend/plugins/health-check/webpack-health-plugin.js - Health endpoints
frontend/plugins/health-check/health-endpoints.js
UI components
- Reusable UI primitives
frontend/src/components/ui - Toast state
frontend/src/hooks/use-toast.js
Other components
- Browser visitor
- MongoDB
Connections 11
- Browser visitor → React entry: opens app
- React entry → Home page: renders
frontend/src/index.js - Home page → FastAPI service: requests greeting
frontend/src/App.js - Browser visitor → FastAPI service: submits status
- FastAPI service → MongoDB: connects
backend/server.py - Status checks → MongoDB: reads and writes
backend/server.py - Frontend configuration → Visual edit middleware: configures middleware
frontend/craco.config.js - Frontend configuration → JSX metadata transform: registers transform
frontend/craco.config.js - Frontend configuration → Webpack health tracker: configures plugin
frontend/craco.config.js - Frontend configuration → Health endpoints: registers endpoints
frontend/craco.config.js - Health endpoints → Webpack health tracker: queries status
frontend/plugins/health-check/health-endpoints.js