How shajeeve567/fedin-ainewsfeedmanager works
FedIn is a personalized technology-news product. Its principal workflow is: users browse a feed, interact with articles, and receive recommendations shaped by their preferences; separately, source ingestion and queued AI summarization keep that feed supplied and enriched. The graph combines excerpted backend calls, SOURCE INDEX references, and README-documented capabilities. Several worker, scheduler, feed-controller, and strategy details were not excerpted, so uncertain links are omitted or marked dashed rather than treated as inspected call paths.
Main entry points: fetcher.js Source ingestion · app.js Express app · prisma.js PostgreSQL · article.controller.js Article controller
Components 29
User experience
- Feed dashboard
frontend/components/dashboard/feed-client.tsx - Feed cards and topics
frontend/components/dashboard/feed-grid.tsx - Login and registration
frontend/app/login/page.tsx - API client
frontend/lib/api.ts
API and identity
- Express app
backend/src/app.js - Article routes
backend/src/api/routes/articles.routes.js - Source routes
backend/src/api/routes/source.routes.js - Auth routes
backend/src/api/routes/authRoutes.js - Feed routes
backend/src/api/routes/feed.routes.js - Auth controller
backend/src/controllers/auth.controller.js
Content and ranking
- Article controller
backend/src/controllers/article.controller.js - Feed controller
backend/src/controllers/feed.controller.js - Personalized feed
backend/src/services/feed-service.js - Preference updates
backend/src/services/preference-engine.js - Ranking strategies
backend/src/services/strategies
Ingestion and AI
- Source controller
backend/src/controllers/source.controller.js - Source ingestion
backend/src/services/fetcher.js - Feed adapters
backend/src/services/adapters - Summary queue
backend/src/queues/summaryQueue.js - Summary worker
backend/src/workers/summaryWorker.js - AI summarizer
backend/src/services/aiFeatures/summarizeArticles.js - Source scheduler
backend/src/schedulers/source-scheduler.js
Persistence
- Article repository
backend/src/repositories/article.repository.js - Source repository
backend/src/repositories/source.repository.js - User repository
backend/src/repositories/user.repository.js - Preference repository
backend/src/repositories/user-preference.repository.js - PostgreSQL
backend/src/database/prisma.js
Other components
- Engineer
- News sources
Connections 35
- Engineer → Feed dashboard: browses
- Feed dashboard → API client: requests feed
frontend/components/dashboard/feed-client.tsx - Feed dashboard → Feed cards and topics: renders
frontend/components/dashboard/feed-client.tsx - Engineer → Login and registration: signs in
- API client → Express app: REST requests
- Express app → Article routes: mounts
backend/src/app.js - Express app → Source routes: mounts
backend/src/app.js - Express app → Auth routes: mounts
backend/src/app.js - Express app → Feed routes: mounts
backend/src/app.js - Article routes → Article controller: dispatches
backend/src/api/routes/articles.routes.js - Source routes → Source controller: dispatches
backend/src/api/routes/source.routes.js - Auth routes → Auth controller: dispatches
backend/src/api/routes/authRoutes.js - Feed routes → Feed controller: dispatches
backend/src/api/routes/feed.routes.js - Article controller → Article repository: reads and writes
backend/src/controllers/article.controller.js - Article controller → Preference updates: updates preferences
backend/src/controllers/article.controller.js - Article controller → Summary queue: enqueues summary
backend/src/controllers/article.controller.js - Source controller → Source repository: manages sources
backend/src/controllers/source.controller.js - Source controller → Source ingestion: starts fetch
backend/src/controllers/source.controller.js - Auth controller → User repository: reads and creates users
backend/src/controllers/auth.controller.js - Feed controller → Personalized feed: uses feed logic
- Personalized feed → Ranking strategies: ranks articles
backend/src/services/feed-service.js - Preference updates → Preference repository: updates scores
backend/src/services/preference-engine.js - Preference updates → Article repository: loads article
backend/src/services/preference-engine.js - Source ingestion → Feed adapters: normalizes sources
backend/src/services/fetcher.js - Source ingestion → Article repository: saves articles
backend/src/services/fetcher.js - Source ingestion → Source repository: loads sources
backend/src/services/fetcher.js - News sources → Source ingestion: provides content
- Summary queue → Summary worker: dispatches jobs
backend/src/workers/summaryWorker.js - Summary worker → AI summarizer: generates summary
backend/src/workers/summaryWorker.js - Summary worker → PostgreSQL: reads and saves summaries
backend/src/workers/summaryWorker.js - Article repository → PostgreSQL: persists articles
backend/src/repositories/article.repository.js - Source repository → PostgreSQL: persists sources
backend/src/repositories/source.repository.js - User repository → PostgreSQL: persists users
backend/src/repositories/user.repository.js - Preference repository → PostgreSQL: persists preferences
backend/src/repositories/user-preference.repository.js - Source scheduler → Source ingestion: triggers ingestion