How kanlka/creatormind works
CreatorMind is a YouTube creator analytics and content-planning application. Creators connect a channel, review performance and audience insights, and use those signals to develop video ideas; the product also offers brand-collaboration analysis and scheduled email features. The tree and sampled files establish these capability areas, but the README provides no architectural detail, and most route and integration implementations were not sampled. Dashed, uncited edges indicate likely entry points or subsystem links that could not be verified from the available evidence.
Main entry points: index.ts Email worker · api Analytics endpoints · [...nextauth]/route.ts Authentication · brand-collaboration/route.ts Brand collaboration
Components 26
Creator experience
- Dashboard
app/dashboard/page.tsx - Ideas pages
app/ideas - Insights pages
app/insights/page.tsx - Performance page
app/performance/page.tsx - Video details
app/videos/[videoId]/page.tsx
Application API
- Authentication
app/api/auth/[...nextauth]/route.ts - YouTube endpoints
app/api/youtube - Analytics endpoints
app/api - Ideas endpoints
app/api/ideas - Brand collaboration
app/api/brand-collaboration/route.ts
YouTube analysis
- YouTube sync
lib/youtube/sync.ts - YouTube fetcher
lib/youtube/fetcher.ts - Transcript processing
lib/youtube/transcript.ts - Pattern analysis
lib/ai/pattern-analyzer.ts
Ideas and insights
- Idea generation
lib/ai/idea-generator.ts - Insight generation
lib/ai/insights-generator.ts - Content recommendations
lib/content
Data and delivery
- Email worker
workers/index.ts - Email delivery
lib/email/sender.ts - MongoDB
lib/db/mongodb.ts - Redis queue
lib/jobs/queue.ts - User records
models/User.ts - Video records
models/Video.ts - Generated ideas
models/GeneratedIdea.ts
Other components
- Creator
- Google OAuth
Connections 34
- Creator → Dashboard: views
- Creator → Authentication: signs in
- Dashboard → YouTube endpoints: connects channel
- Dashboard → Analytics endpoints: requests analytics
- Dashboard → Ideas endpoints: requests ideas
- Creator → Ideas pages: reviews ideas
- Creator → Insights pages: reviews insights
- Creator → Performance page: reviews performance
- Creator → Video details: reviews videos
- Authentication → Google OAuth: authenticates with
app/api/auth/[...nextauth]/route.ts - Authentication → MongoDB: imports client
app/api/auth/[...nextauth]/route.ts - YouTube endpoints → YouTube sync: dispatches sync
- YouTube sync → YouTube fetcher: fetches channel data
- YouTube sync → Transcript processing: processes transcripts
- YouTube sync → Video records: updates records
- Analytics endpoints → Authentication: checks session
app/api/engagement-timeline/route.ts - Analytics endpoints → MongoDB: connects
app/api/engagement-timeline/route.ts - Analytics endpoints → User records: queries user
app/api/engagement-timeline/route.ts - Analytics endpoints → Video records: queries videos
app/api/engagement-timeline/route.ts - Ideas endpoints → Idea generation: generates ideas
- Idea generation → Generated ideas: stores ideas
- Insights pages → Content recommendations: uses recommendations
app/insights/page.tsx - Ideas pages → Content recommendations: uses recommendations
app/ideas/[id]/page.tsx - Brand collaboration → Authentication: checks session
app/api/brand-collaboration/route.ts - Brand collaboration → MongoDB: connects
app/api/brand-collaboration/route.ts - Brand collaboration → User records: queries user
app/api/brand-collaboration/route.ts - Brand collaboration → Video records: analyzes videos
app/api/brand-collaboration/route.ts - Email worker → Email delivery: sends emails
workers/index.ts - Email worker → Idea generation: generates ideas
workers/index.ts - Email worker → Insight generation: generates insights
workers/index.ts - Email worker → MongoDB: connects
workers/index.ts - Email worker → User records: queries users
workers/index.ts - Email worker → Generated ideas: loads ideas
workers/index.ts - Email worker → Redis queue: queues jobs