How rishikesh-193/personalized-news-paper-and-research-digestion works
Chronicle is a personalized news and research briefing app. Users authenticate, set interests, read a ranked Today briefing, save content to a Library, upload PDFs for research digests and comparisons, discover papers and web results, and ask citation-grounded questions over saved material. The graph preserves these distinct workflows and the scheduled ingestion pipeline. Some UI-to-route wiring and unsampled implementation details are only documented at the product level, so those relationships cite the README rather than implying inspected source calls.
Main entry points: server.ts Supabase data and auth · index.ts Ingestion coordinator · ask/route.ts Ask answers · digest/route.ts PDF digest and indexing
Components 24
Reader experience
- Today briefing
src/app/(app)/today/page.tsx - Saved Library
src/app/(app)/library/page.tsx - Article actions
src/lib/article-actions.ts
Research workflows
- Ask answers
src/app/api/ask/route.ts - Retrieval and citations
src/lib/ask-core.ts - Research Lab
src/components/views/research-view.tsx - PDF digest and indexing
src/app/api/research/digest/route.ts - Document comparison
src/app/api/research/compare/route.ts - Discovery interface
src/components/views/discover-view.tsx - Paper and web search
src/app/api/research/discover/search/route.ts - Research brief
src/app/api/research/discover/brief/route.ts
News ingestion
- Ingestion coordinator
scripts/ingest/index.ts - Feed registry and fetch
scripts/ingest/feeds.ts - Fair allocation
scripts/ingest/allocate.ts - Topic classification
scripts/ingest/classify.ts - Validated summaries
scripts/ingest/groq.ts
Shared services
- Local embeddings
src/lib/embeddings.ts - Supabase data and auth
src/lib/supabase/server.ts
Identity and access
- Sign-in and onboarding
src/app/auth/callback/route.ts - Interest preferences
src/lib/interests-actions.ts
Other components
- Reader
- Groq model API
- arXiv API
- Tavily search
Connections 33
- Reader → Sign-in and onboarding: signs in
README.md - Sign-in and onboarding → Supabase data and auth: verifies identity
src/app/auth/callback/route.ts - Reader → Interest preferences: sets interests
README.md - Reader → Today briefing: reads briefing
README.md - Today briefing → Supabase data and auth: loads feed
src/app/(app)/today/page.tsx - Reader → Saved Library: saves reading
README.md - Saved Library → Article actions: manages articles
- Reader → Ask answers: asks question
README.md - Ask answers → Supabase data and auth: retrieves chunks
src/app/api/ask/route.ts - Ask answers → Local embeddings: embeds query
src/app/api/ask/route.ts - Ask answers → Retrieval and citations: ranks and audits
src/app/api/ask/route.ts - Ask answers → Groq model API: generates answer
README.md - Reader → Research Lab: opens Research Lab
README.md - Research Lab → PDF digest and indexing: uploads PDF
README.md - PDF digest and indexing → Supabase data and auth: stores document
src/app/api/research/digest/route.ts - PDF digest and indexing → Local embeddings: embeds chunks
src/app/api/research/digest/route.ts - PDF digest and indexing → Groq model API: creates digest
src/app/api/research/digest/route.ts - Research Lab → Document comparison: requests comparison
README.md - Document comparison → Groq model API: compares documents
src/app/api/research/compare/route.ts - Reader → Discovery interface: discovers sources
README.md - Discovery interface → Paper and web search: submits search
README.md - Paper and web search → arXiv API: searches papers
src/app/api/research/discover/search/route.ts - Paper and web search → Tavily search: searches web
README.md - Paper and web search → Supabase data and auth: caches results
src/app/api/research/discover/search/route.ts - Discovery interface → Research brief: requests brief
README.md - Research brief → Groq model API: writes brief
README.md - Research brief → Supabase data and auth: loads and caches
src/app/api/research/discover/brief/route.ts - Ingestion coordinator → Feed registry and fetch: fetches sources
scripts/ingest/index.ts - Ingestion coordinator → Fair allocation: allocates candidates
scripts/ingest/index.ts - Ingestion coordinator → Topic classification: assigns topics
scripts/ingest/index.ts - Ingestion coordinator → Validated summaries: generates summaries
scripts/ingest/index.ts - Validated summaries → Groq model API: calls model
README.md - Ingestion coordinator → Supabase data and auth: stores articles
README.md