How artu2410/agenda-kareh works
Agenda Kareh is a clinical-practice SaaS for managing appointments, patients, clinical histories, documents, cashflow, billing and operational metrics. The principal workflow runs from staff using the web application, through its HTTP client and Express API, into domain controllers and PostgreSQL-backed records. The graph includes major README capabilities, authentication and file storage as distinct branches. Evidence is limited to the README and sampled/indexed references; unsampled feature internals are represented at their exact page or directory paths without speculative call chains.
Main entry points: App.jsx Application shell · api.js HTTP client · server.js Express application · appointments.routes.js Appointment endpoints
Components 23
Web application
- Application shell
client/src/App.jsx - HTTP client
client/src/services/api.js
Clinical operations
- Appointment workflow
client/src/hooks/useAppointmentForm.js - Patient management
client/src/features/patients/pages/PatientsPage.jsx - Clinical history
client/src/pages/ClinicalHistoryPage.jsx - Patient documents
client/src/components/documents
Practice management
- Cashflow management
client/src/pages/CashflowPage.jsx - Billing
client/src/features/billing/pages/BillingPage.jsx - Capacity metrics
client/src/pages/CapacityPage.jsx
API and domains
- Appointment endpoints
server/src/routes/appointments.routes.js - Appointment operations
server/src/controllers/AppointmentController.js - Scheduling rules
server/src/domain/appointments/scheduling.service.js - History endpoints
server/src/routes/clinicalHistory.routes.js - Patient endpoints
server/src/routes/patient.routes.js - Capacity analysis
server/src/domain/metrics/capacity.service.js - Express application
server/server.js
Identity and infrastructure
- Authentication bootstrap
client/src/services/authBootstrap.js - Session management
server/src/utils/sessionManager.js - Authentication guard
server/src/middlewares/authMiddleware.js - Upload endpoints
server/src/routes/upload.routes.js - File storage
server/src/services/storage.js - PostgreSQL
Other components
- Practice staff
Connections 25
- Practice staff → Application shell: uses
- Application shell → Authentication bootstrap: bootstraps session
client/src/App.jsx - Application shell → Appointment workflow: routes to
client/src/App.jsx - Application shell → Cashflow management: routes to
client/src/App.jsx - Application shell → Billing: routes to
client/src/App.jsx - Application shell → Capacity metrics: routes to
client/src/App.jsx - Appointment workflow → HTTP client: calls
client/src/hooks/useAppointmentForm.js - Clinical history → HTTP client: calls
client/src/pages/ClinicalHistoryPage.jsx - HTTP client → Express application: sends requests
- Express application → Appointment endpoints: mounts routes
server/server.js - Express application → History endpoints: mounts routes
server/server.js - Express application → Patient endpoints: mounts routes
server/server.js - Appointment endpoints → Authentication guard: guards requests
server/src/routes/appointments.routes.js - Appointment endpoints → Appointment operations: dispatches to
server/src/routes/appointments.routes.js - Appointment operations → Scheduling rules: uses scheduling
server/src/controllers/AppointmentController.js - History endpoints → Authentication guard: checks roles
server/src/routes/clinicalHistory.routes.js - History endpoints → PostgreSQL: reads and writes
server/src/routes/clinicalHistory.routes.js - Capacity metrics → HTTP client: requests metrics
- Capacity analysis → PostgreSQL: analyzes records
- Authentication bootstrap → HTTP client: restores session
client/src/services/authBootstrap.js - Session management → PostgreSQL: persists sessions
- Authentication guard → Session management: validates identity
server/src/middlewares/authMiddleware.js - Upload endpoints → File storage: stores uploads
server/src/routes/upload.routes.js - File storage → PostgreSQL: stores file metadata
- Patient documents → Clinical history: supports records
client/src/pages/ClinicalHistoryPage.jsx