How varshithagudipudi/news_ai_demo works
bellora.pulse is a news aggregator and AI-career resource portal. Its main news workflow collects provider headlines, filters and deduplicates them, optionally enriches them, and stores article metadata for browsing. Users can also explore jobs, interview practice, podcasts, and tools, with saved-resource state in browser storage. The collection route and several catalog/UI relationships are supported by excerpts or the source index; finer internal collection calls are documented in the README but their implementation was not sampled.
Main entry points: collectNews.ts Collection processing · repository.ts Repository contract · InterviewDirectory.tsx Interview practice · PodcastDirectory.tsx Podcast directory
Components 26
News collection and feed
- Collection endpoint
app/api/internal/collect-news/route.ts - Collection processing
lib/news/collectNews.ts - Normalize and deduplicate
lib/news/normalize.ts - Relevance filtering
lib/news/relevance.ts - Optional AI enrichment
lib/ai/enrichArticle.ts - Home feed entry
app/page.tsx - Feed browsing
components/HomeView.tsx
Article storage and API
- Articles API
app/api/articles/route.ts - Article validation
lib/validation/article.ts - Article access
lib/db/articles.ts - Repository contract
lib/db/repository.ts - Local JSON store
lib/db/localRepository.ts - Supabase store
lib/db/supabaseRepository.ts
Career resources
- Jobs board and detail
components/jobs/JobsBoard.tsx - Live job catalog
lib/jobs/live.ts - Interview practice
components/interviews/InterviewDirectory.tsx - Interview catalog
lib/interviews/catalog.ts
Learning directories
- Podcast directory
components/podcasts/PodcastDirectory.tsx - Podcast catalog
lib/podcasts/catalog.ts - Tools directory
components/tools/ToolsDirectory.tsx - Tools catalog
lib/tools/catalog.ts - Saved resource state
lib/hooks/useSavedResources.ts - Shared directory UI
components/directory/DirectoryUI.tsx
Other components
- News reader
- Scheduled or manual collector
- GNews API
Connections 24
- Scheduled or manual collector → Collection endpoint: invokes
README.md - Collection endpoint → Collection processing: runs
app/api/internal/collect-news/route.ts - Collection processing → GNews API: queries
README.md - Collection processing → Normalize and deduplicate: normalizes and deduplicates
README.md - Collection processing → Relevance filtering: scores and filters
README.md - Collection processing → Optional AI enrichment: optionally enriches
README.md - Collection processing → Repository contract: inserts articles
- News reader → Home feed entry: opens
- Home feed entry → Feed browsing: renders
app/page.tsx - Articles API → Article validation: validates query
app/api/articles/route.ts - Articles API → Article access: lists articles
app/api/articles/route.ts - Article access → Repository contract: uses
- Repository contract → Local JSON store: implemented by
lib/db/repository.ts - Repository contract → Supabase store: implemented by
lib/db/repository.ts - Jobs board and detail → Live job catalog: loads listings
components/jobs/JobsBoard.tsx - Interview practice → Interview catalog: filters questions
components/interviews/InterviewDirectory.tsx - Interview practice → Saved resource state: reads saved practice
components/interviews/InterviewDirectory.tsx - Interview practice → Shared directory UI: renders controls
components/interviews/InterviewDirectory.tsx - Podcast directory → Podcast catalog: filters episodes
components/podcasts/PodcastDirectory.tsx - Podcast directory → Saved resource state: reads saved items
components/podcasts/PodcastDirectory.tsx - Podcast directory → Shared directory UI: renders controls
components/podcasts/PodcastDirectory.tsx - Tools directory → Tools catalog: uses catalog
components/tools/ToolsDirectory.tsx - Tools directory → Saved resource state: reads saved tools
lib/hooks/useSavedResources.ts - Tools directory → Shared directory UI: renders controls
components/tools/ToolsDirectory.tsx