How ayinaladhorasatyamurthy/social_media_analysis works
InsightSphere STUDIO is a YouTube intelligence and creator-analytics platform. Users enter through the React app, authenticate for protected tools, then request dashboard, sentiment, topology, influencer, or creator-discovery results; they can also export or email reports. Flask blueprints serve those capabilities, with channel ingestion, curated datasets, serialization, and resilient MongoDB/local persistence supporting them. README documents the feature-to-API workflows; sampled source and the SOURCE INDEX support the backend registrations and selected service/storage links, while unsampled implementation details are not inferred.
Main entry points: App.js App routing · app.py Flask application · apiConfig.js API fetch client · sentiment.py Sentiment endpoints
Components 28
Web application
- App routing
src/App.js - Authentication UI
src/context/AuthContext.js - Regional dashboard
src/components/DashboardAnalytics.js - Sentiment analysis
src/components/SentimentAnalysis.js - Semantic topology
src/components/NetworkVisualization.js - Influencer benchmark
src/components/InfluencerDetection.js - World map
src/components/InteractiveWorldMap.js - Creator recommendations
src/components/Recommendations.js - Report studio
src/components/Reports.js - API fetch client
src/apiConfig.js
Flask API
- Flask application
app.py - Auth endpoints
blueprints/auth.py - Dashboard endpoints
blueprints/dash.py - Sentiment endpoints
blueprints/sentiment.py - Network endpoints
blueprints/network.py - Influencer endpoints
blueprints/influencer.py - Recommendation endpoints
blueprints/recom.py - Report endpoints
blueprints/send.py
Analytics and discovery
- Channel ingestion
services/channel_ingest.py - Regional trends
services/regional_trending.py - Category creators
services/category_creators.py - Influencer catalog
services/influencer_catalog.py - JSON serialization
services/serialize.py
Persistence
- Resilient collections
db/mongo.py - MongoDB / local store
External services
- YouTube Data API
- Gmail SMTP
Other components
- Browser user
Connections 40
- Browser user → App routing: uses
- App routing → Authentication UI: provides auth
src/App.js - App routing → Regional dashboard: routes to
src/App.js - App routing → Sentiment analysis: routes to
src/App.js - App routing → Semantic topology: routes to
src/App.js - App routing → Influencer benchmark: routes to
src/App.js - App routing → Creator recommendations: routes to
src/App.js - App routing → Report studio: routes to
src/App.js - Regional dashboard → API fetch client: fetches through
src/components/DashboardAnalytics.js - Sentiment analysis → API fetch client: fetches through
src/components/SentimentAnalysis.js - Semantic topology → API fetch client: fetches through
src/components/NetworkVisualization.js - Influencer benchmark → API fetch client: fetches through
src/components/InfluencerDetection.js - Creator recommendations → API fetch client: fetches through
src/components/Recommendations.js - Report studio → API fetch client: fetches through
src/components/Reports.js - API fetch client → Flask application: sends API requests
- Flask application → Auth endpoints: registers
app.py - Flask application → Dashboard endpoints: registers
app.py - Flask application → Sentiment endpoints: registers
app.py - Flask application → Network endpoints: registers
app.py - Flask application → Influencer endpoints: registers
app.py - Flask application → Recommendation endpoints: registers
app.py - Flask application → Report endpoints: registers
app.py - Auth endpoints → Gmail SMTP: sends OTP
blueprints/auth.py - Dashboard endpoints → Regional trends: loads trends
blueprints/dash.py - Sentiment endpoints → Channel ingestion: uses channel data
blueprints/sentiment.py - Network endpoints → Channel ingestion: uses channel data
blueprints/network.py - Influencer endpoints → Channel ingestion: ingests channel
blueprints/influencer.py - Influencer endpoints → Influencer catalog: filters creators
blueprints/influencer.py - Recommendation endpoints → Category creators: loads creators
blueprints/recom.py - Sentiment endpoints → JSON serialization: serializes results
blueprints/sentiment.py - Network endpoints → JSON serialization: serializes results
blueprints/network.py - Influencer endpoints → JSON serialization: serializes results
blueprints/influencer.py - Channel ingestion → Resilient collections: caches snapshots
services/channel_ingest.py - Resilient collections → MongoDB / local store: reads and writes
db/mongo.py - Channel ingestion → YouTube Data API: fetches channel data
services/channel_ingest.py - Sentiment endpoints → YouTube Data API: fetches video data
blueprints/sentiment.py - Sentiment endpoints → Resilient collections: uses persistence
blueprints/sentiment.py - Network endpoints → Resilient collections: uses persistence
blueprints/network.py - Report endpoints → Gmail SMTP: emails reports
- World map → Influencer benchmark: renders map
src/components/InfluencerDetection.js