How veerendra789/feedmind works
FeedMind collects student feedback, queues it for asynchronous sentiment and emotion analysis, stores results and alerts, then serves aggregates and live updates to a React dashboard. The main path is student submission → API and Redis Streams → worker processing → PostgreSQL → dashboard queries and WebSocket updates. The README also lists a separate ingester service, but the excerpts do not show its runtime role or connections, so it is represented without inferred links. Some frontend-to-API and database relationships are documented rather than shown in excerpts.
Main entry points: routes.py API routes · processor.py Feedback processor · App.jsx React app · worker.py Stream worker
Components 20
Student dashboard
- React app
frontend/src/App.jsx - Feedback form
frontend/src/components/FeedbackForm.jsx - Dashboard views
frontend/src/pages/DashboardPage.jsx - Alerts view
frontend/src/pages/AlertsPage.jsx - API client
frontend/src/services/api.js
API and delivery
- API routes
backend/api/routes.py - Feedback aggregates
backend/services/aggregator.py - WebSocket manager
backend/websocket/manager.py
Feedback processing
- Ingester service
ingester - Stream worker
worker/worker.py - Feedback processor
worker/processor.py - Sentiment analyzer
backend/services/sentiment_analyzer.py - Alert evaluation
backend/services/alerting.py
Persistence and queue
- Feedback models
backend/models/feedback.py - PostgreSQL
backend/database/session.py - Redis client
backend/database/redis_client.py - Redis Streams
Other components
- Student
- Dashboard user
- External LLM
Connections 23
- Student → Feedback form: submits feedback
- React app → Feedback form: renders
frontend/src/App.jsx - React app → Dashboard views: renders
frontend/src/App.jsx - React app → Alerts view: renders
frontend/src/App.jsx - Feedback form → API client: submits through
- React app → API client: fetches dashboard data
frontend/src/App.jsx - Dashboard user → React app: views dashboard
- API client → API routes: calls API
- API routes → Feedback models: creates and queries
backend/api/routes.py - API routes → PostgreSQL: reads and writes
backend/api/routes.py - API routes → Redis client: publishes through
backend/api/routes.py - API routes → Redis Streams: publishes feedback
backend/api/routes.py - API routes → WebSocket manager: broadcasts updates
backend/api/routes.py - API routes → Feedback aggregates: requests aggregates
backend/api/routes.py - Stream worker → Redis client: reads stream
worker/worker.py - Stream worker → Redis Streams: consumes messages
worker/worker.py - Stream worker → Feedback processor: dispatches messages
worker/worker.py - Feedback processor → Sentiment analyzer: analyzes text
worker/processor.py - Feedback processor → Alert evaluation: evaluates alerts
worker/processor.py - Feedback processor → Feedback models: persists analysis
worker/processor.py - Feedback processor → PostgreSQL: writes results
worker/processor.py - Sentiment analyzer → External LLM: optionally requests analysis
backend/services/sentiment_analyzer.py - API routes → WebSocket manager: serves WebSocket clients
backend/api/routes.py