How shubhrajyoti65/drishya works
Drishya is a video-sharing and creator platform. The main journey runs from account and channel setup through video publishing, discovery and viewing, with community participation and paid memberships alongside it; creator tools add AI-generated titles, ideas and thumbnail concepts. The React client talks to an Express API backed by MongoDB and Cloudinary, and to a FastAPI AI service using retrieval and generative models. The README documents major capabilities, but many frontend and backend handlers were not sampled, so some feature links are documented rather than source-verified.
Main entry points: App.jsx App routing · api.js API clients · video.controller.js Video endpoints · payment.controller.js Membership and payments
Components 29
Creator and viewer app
- App routing
frontend/src/App.jsx - Accounts and profiles
frontend/src/pages/auth - Video discovery and watch
frontend/src/pages/Watch.jsx - Video publishing
frontend/src/pages/Upload.jsx - Community and polls
frontend/src/components/CommunityTab.jsx - Creator tier setup
frontend/src/pages/CreatorMemberships.jsx - Membership management
frontend/src/pages/MyMemberships.jsx - AI creator tools
frontend/src/pages/ContentGenerator.jsx - API clients
frontend/src/services/api.js - Authentication state
frontend/src/stores/authStore.js
Video and community
- Video endpoints
backend/controllers/video.controller.js - Community endpoints
backend/controllers/tweet.controller.js - Video records
backend/models/video.model.js - Community records
backend/models/tweet.model.js
Membership and payments
- Membership and payments
backend/controllers/payment.controller.js - Membership records
backend/models/membership.model.js - Tier records
backend/models/membershipTier.model.js - Razorpay checkout
API and persistence
- Express API routing
backend/app.js - Identity endpoints
backend/controllers/user.controller.js - JWT authorization
backend/middlewares/auth.middleware.js - User records
backend/models/user.model.js - Cloudinary media storage
AI creator tools
- AI API client
frontend/src/services/aiApi.js - Generation endpoints
ai-service/routes/generator_routes.py - Retrieval and generation
ai-service/rag/rag_service.py - Gemini models
ai-service/services/gemini_service.py - Thumbnail image fallback
ai-service/services/fal_service.py
Other components
- Creators and viewers
Connections 38
- Creators and viewers → App routing: uses
- App routing → Accounts and profiles: routes to
frontend/src/App.jsx - App routing → Video discovery and watch: routes to
frontend/src/App.jsx - App routing → Video publishing: routes to
frontend/src/App.jsx - App routing → Community and polls: routes to
- App routing → Creator tier setup: routes to
frontend/src/App.jsx - App routing → Membership management: routes to
frontend/src/App.jsx - App routing → AI creator tools: routes to
frontend/src/App.jsx - Accounts and profiles → Authentication state: updates
- Accounts and profiles → API clients: calls
- Video discovery and watch → API clients: requests data
- Video publishing → API clients: uploads video
- Community and polls → API clients: manages polls
- Creator tier setup → API clients: configures tiers
- Membership management → API clients: requests membership
- AI creator tools → AI API client: requests generation
- API clients → Express API routing: calls API
- AI API client → Generation endpoints: calls AI API
- Express API routing → Video endpoints: routes video
backend/app.js - Express API routing → Community endpoints: routes tweets
backend/app.js - Express API routing → Membership and payments: routes payments
backend/app.js - Express API routing → Identity endpoints: routes users
backend/app.js - Video endpoints → Video records: reads and writes
backend/controllers/video.controller.js - Video endpoints → User records: checks owner
backend/controllers/video.controller.js - Video endpoints → Membership records: checks access
backend/controllers/video.controller.js - Video endpoints → Tier records: checks tier
backend/controllers/video.controller.js - Video endpoints → Cloudinary media storage: uploads media
backend/controllers/video.controller.js - Community endpoints → Community records: reads and writes
backend/controllers/tweet.controller.js - Community endpoints → User records: reads authors
backend/controllers/tweet.controller.js - Membership and payments → Membership records: activates membership
backend/controllers/payment.controller.js - Membership and payments → Tier records: reads tier
backend/controllers/payment.controller.js - Membership and payments → User records: reads subscriber
backend/controllers/payment.controller.js - Identity endpoints → User records: manages accounts
backend/controllers/user.controller.js - JWT authorization → User records: loads identity
backend/middlewares/auth.middleware.js - Membership and payments → Razorpay checkout: verifies payment
- Generation endpoints → Retrieval and generation: dispatches generation
ai-service/routes/generator_routes.py - Retrieval and generation → Gemini models: generates content
- Generation endpoints → Thumbnail image fallback: optional image fallback
ai-service/routes/generator_routes.py