How srmk-2005/guardians-of-comments works
Guardians-of-Comment combines a React account and API-key console, an Express service for accounts, subscriptions, keys, and comment-analysis requests, and Django moderation endpoints. The documented moderation workflow checks comment text for harmful content and URLs, then conditionally checks sensitivity; classifiers support English and Tanglish. Sampled code shows the Express-to-Django calls and classifier dispatch, but not the frontend’s Subscription implementation or the Django project’s full runtime configuration. The README describes VirusTotal and BERT capabilities; sampled code confirms those integrations, while the README’s claimed Flask backend does not match the supplied tree.
Main entry points: App.jsx Route shell · views.py Harmful endpoint · main.py Language selection · server.js Comment analysis route
Components 22
Frontend console
- Route shell
Frontend_Apiaas/src/App.jsx - Account access
Frontend_Apiaas/src/components/AuthPage.jsx - Subscription UI
Frontend_Apiaas/src/components/Subscription.jsx - Key console
Frontend_Apiaas/src/components/Core.jsx
Express API
- Account and key routes
Backend_Apiaas/hello-prisma/server.js - Comment analysis route
Backend_Apiaas/hello-prisma/server.js - SQL access
Backend_Apiaas/hello-prisma/crud.js - Application database
Backend_Apiaas/hello-prisma/crud.js
Harmful checks
- Harmful endpoint
fake_comments_project/harmful_comment_analysis/views.py - Text and URL extraction
fake_comments_project/harmful_comment_analysis/services/classifier.py - Harmful classifier
fake_comments_project/harmful_comment_analysis/services/harmful_main.py - BERT prediction
fake_comments_project/harmful_comment_analysis/services/harmfull/predict.py - Malicious URL check
fake_comments_project/harmful_comment_analysis/services/phishingmain.py - VirusTotal
Sensitivity checks
- Sensitivity endpoint
fake_comments_project/sensitive_comment_analysis/views.py - Comment extraction
fake_comments_project/sensitive_comment_analysis/services/classifier.py - Sensitivity dispatch
fake_comments_project/sensitive_comment_analysis/services/sensitive_main.py - Language selection
fake_comments_project/sensitive_comment_analysis/services/sensitivity/main.py - Language detection
fake_comments_project/sensitive_comment_analysis/services/sensitivity/detectlang.py - English classifier
fake_comments_project/sensitive_comment_analysis/services/sensitivity/english_classifier.py - Tanglish classifier
fake_comments_project/sensitive_comment_analysis/services/sensitivity/tamil_classifier.py
Other components
- Platform user
Connections 23
- Platform user → Route shell: opens console
- Route shell → Account access: routes to
Frontend_Apiaas/src/App.jsx - Route shell → Subscription UI: routes to
Frontend_Apiaas/src/App.jsx - Route shell → Key console: routes to
Frontend_Apiaas/src/App.jsx - Account access → Platform user: registers or signs in
Frontend_Apiaas/src/components/AuthPage.jsx - Account access → Subscription UI: navigates to
Frontend_Apiaas/src/components/AuthPage.jsx - Key console → Platform user: manages API keys
Frontend_Apiaas/src/components/Core.jsx - Account and key routes → SQL access: executes queries
Backend_Apiaas/hello-prisma/server.js - SQL access → Application database: reads and writes
Backend_Apiaas/hello-prisma/crud.js - Comment analysis route → SQL access: verifies key and post
Backend_Apiaas/hello-prisma/server.js - Comment analysis route → Harmful endpoint: posts comment
Backend_Apiaas/hello-prisma/server.js - Comment analysis route → Sensitivity endpoint: conditionally posts
Backend_Apiaas/hello-prisma/server.js - Harmful endpoint → Text and URL extraction: extracts content
fake_comments_project/harmful_comment_analysis/views.py - Harmful endpoint → Harmful classifier: classifies text
fake_comments_project/harmful_comment_analysis/views.py - Harmful endpoint → Malicious URL check: checks extracted URLs
fake_comments_project/harmful_comment_analysis/views.py - Harmful classifier → BERT prediction: predicts with
fake_comments_project/harmful_comment_analysis/services/harmful_main.py - Malicious URL check → VirusTotal: submits URL reports
fake_comments_project/harmful_comment_analysis/services/phishingmain.py - Sensitivity endpoint → Comment extraction: extracts comment parts
fake_comments_project/sensitive_comment_analysis/views.py - Sensitivity endpoint → Sensitivity dispatch: classifies comment
fake_comments_project/sensitive_comment_analysis/views.py - Sensitivity dispatch → Language selection: delegates classification
fake_comments_project/sensitive_comment_analysis/services/sensitive_main.py - Language selection → Language detection: detects language
fake_comments_project/sensitive_comment_analysis/services/sensitivity/main.py - Language selection → English classifier: dispatches English
fake_comments_project/sensitive_comment_analysis/services/sensitivity/main.py - Language selection → Tanglish classifier: dispatches Tanglish
fake_comments_project/sensitive_comment_analysis/services/sensitivity/main.py