# karannchaudhari04/techpulse-ai architecture

> Architecture diagram of the GitHub repository karannchaudhari04/techpulse-ai, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/karannchaudhari04/techpulse-ai
- Repository: https://github.com/karannchaudhari04/techpulse-ai

## Overview

TechPulse AI combines a React Native client with a Spring backend for continuously collected and synthesized technology updates, personalized discovery, and on-demand AI intelligence. The main flow is RSS collection through deduplication and synthesis into technology events, then delivery through user-facing feeds and intelligence features. The README documents additional capabilities such as assistant citations, comparisons, briefs, notifications, and personalization; some of their implementation paths are represented by enclosing directories because their source was not sampled. Edges cite excerpts or README statements; dashed edges mark relationships not verified in sampled source.

Main entry points: [`mobile/App.tsx`](https://github.com/karannchaudhari04/techpulse-ai/blob/main/mobile/App.tsx) (Mobile app), [`backend/src/main/java/com/techpulse/controller/PersonalizationController.java`](https://github.com/karannchaudhari04/techpulse-ai/blob/main/backend/src/main/java/com/techpulse/controller/PersonalizationController.java) (Personalization API), [`backend/src/main/java/com/techpulse/service/NewsIngestionService.java`](https://github.com/karannchaudhari04/techpulse-ai/blob/main/backend/src/main/java/com/techpulse/service/NewsIngestionService.java) (Ingestion orchestration), [`backend/src/main/java/com/techpulse/agent/AISynthesisAgent.java`](https://github.com/karannchaudhari04/techpulse-ai/blob/main/backend/src/main/java/com/techpulse/agent/AISynthesisAgent.java) (AI synthesis)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingestion["Ingestion and synthesis"]
  node_ingest_service["Ingestion orchestration"]
  node_discovery["Discovery and dedup"]
  node_source_collectors["RSS source collection"]
  node_synthesis["AI synthesis"]
end

subgraph group_backend["Backend experiences"]
  node_personal_agent["Personalized ranking"]
  node_personal_api["Personalization API"]
  node_assistant_api["Assistant API"]
  node_intelligence_api["Intelligence API"]
  node_notification_service["Notification services"]
end

subgraph group_mobile["Mobile client"]
  node_mobile_app["Mobile app<br/>[App.tsx]"]
  node_mobile_auth["Authentication<br/>[authService.ts]"]
  node_mobile_api["API client<br/>[client.ts]"]
  node_mobile_feed["Feed and events"]
  node_mobile_assistant["Assistant UI"]
  node_mobile_intel["Intelligence UI"]
  node_mobile_personal["Library and preferences"]
  node_mobile_notify["Notifications UI"]
  node_mobile_store["Persisted app state<br/>[index.ts]"]
end

subgraph group_state["Data and infrastructure"]
  node_raw_store[("Raw ingestion records")]
  node_event_store[("Technology events")]
  node_user_store[("User data")]
end

subgraph group_external["External integrations"]
  node_rss["RSS sources"]
  node_gemini["Gemini AI"]
  node_firebase["Firebase services"]
  node_redis[("Redis cache")]
end

node_developer(("Developer"))

node_developer -->|"uses"| node_mobile_app
node_mobile_app -->|"starts auth"| node_mobile_auth
node_mobile_auth -->|"authenticates"| node_firebase
node_mobile_auth -->|"updates session"| node_mobile_store
node_mobile_app -->|"provides state"| node_mobile_store
node_mobile_app -->|"initializes sync"| node_mobile_notify
node_mobile_app -->|"starts offline replay"| node_mobile_personal
node_mobile_api -.->|"serves features"| node_mobile_feed
node_mobile_feed -.->|"requests feed"| node_personal_api
node_mobile_assistant -.->|"requests answers"| node_assistant_api
node_mobile_intel -.->|"requests intelligence"| node_intelligence_api
node_mobile_personal -.->|"syncs activity"| node_personal_api
node_mobile_notify -.->|"syncs notifications"| node_notification_service
node_ingest_service -->|"discovers updates"| node_discovery
node_discovery -.->|"collects feeds"| node_source_collectors
node_source_collectors -.->|"reads feeds"| node_rss
node_ingest_service -->|"cleans and queries"| node_raw_store
node_ingest_service -->|"synthesizes candidates"| node_synthesis
node_synthesis -.->|"analyzes updates"| node_gemini
node_synthesis -.->|"saves events"| node_event_store
node_raw_store -.->|"links event records"| node_event_store
node_personal_api -->|"ranks feed"| node_personal_agent
node_personal_api -->|"reads events"| node_event_store
node_personal_api -->|"reads user"| node_user_store
node_assistant_api -.->|"answers with context"| node_gemini
node_intelligence_api -.->|"generates briefs"| node_gemini
node_notification_service -.->|"sends push"| node_firebase

click node_mobile_app "https://github.com/karannchaudhari04/techpulse-ai/blob/main/mobile/App.tsx"
click node_mobile_auth "https://github.com/karannchaudhari04/techpulse-ai/blob/main/mobile/src/features/auth/services/authService.ts"
click node_mobile_api "https://github.com/karannchaudhari04/techpulse-ai/blob/main/mobile/src/api/client.ts"
click node_mobile_feed "https://github.com/karannchaudhari04/techpulse-ai/tree/main/mobile/src/features/feed"
click node_mobile_assistant "https://github.com/karannchaudhari04/techpulse-ai/tree/main/mobile/src/features/assistant"
click node_mobile_intel "https://github.com/karannchaudhari04/techpulse-ai/tree/main/mobile/src/features/intelligence"
click node_mobile_personal "https://github.com/karannchaudhari04/techpulse-ai/tree/main/mobile/src/features/personalization"
click node_mobile_notify "https://github.com/karannchaudhari04/techpulse-ai/tree/main/mobile/src/features/notifications"
click node_mobile_store "https://github.com/karannchaudhari04/techpulse-ai/blob/main/mobile/src/store/index.ts"
click node_ingest_service "https://github.com/karannchaudhari04/techpulse-ai/blob/main/backend/src/main/java/com/techpulse/service/NewsIngestionService.java"
click node_discovery "https://github.com/karannchaudhari04/techpulse-ai/blob/main/backend/src/main/java/com/techpulse/agent/DiscoveryAgent.java"
click node_source_collectors "https://github.com/karannchaudhari04/techpulse-ai/tree/main/backend/src/main/java/com/techpulse/agent/collector"
click node_synthesis "https://github.com/karannchaudhari04/techpulse-ai/blob/main/backend/src/main/java/com/techpulse/agent/AISynthesisAgent.java"
click node_personal_agent "https://github.com/karannchaudhari04/techpulse-ai/blob/main/backend/src/main/java/com/techpulse/agent/PersonalizationAgent.java"
click node_personal_api "https://github.com/karannchaudhari04/techpulse-ai/blob/main/backend/src/main/java/com/techpulse/controller/PersonalizationController.java"
click node_assistant_api "https://github.com/karannchaudhari04/techpulse-ai/blob/main/backend/src/main/java/com/techpulse/controller/AssistantController.java"
click node_intelligence_api "https://github.com/karannchaudhari04/techpulse-ai/blob/main/backend/src/main/java/com/techpulse/controller/IntelligenceController.java"
click node_notification_service "https://github.com/karannchaudhari04/techpulse-ai/blob/main/backend/src/main/java/com/techpulse/service/NotificationService.java"
click node_raw_store "https://github.com/karannchaudhari04/techpulse-ai/blob/main/backend/src/main/java/com/techpulse/repository/RawIngestionRepository.java"
click node_event_store "https://github.com/karannchaudhari04/techpulse-ai/blob/main/backend/src/main/java/com/techpulse/repository/TechnologyEventRepository.java"
click node_user_store "https://github.com/karannchaudhari04/techpulse-ai/blob/main/backend/src/main/java/com/techpulse/repository/UserRepository.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_ingest_service,node_discovery,node_source_collectors,node_synthesis toneBlue
class node_personal_agent,node_personal_api,node_assistant_api,node_intelligence_api,node_notification_service toneAmber
class node_mobile_app,node_mobile_auth,node_mobile_api,node_mobile_feed,node_mobile_assistant,node_mobile_intel,node_mobile_personal,node_mobile_notify,node_mobile_store toneMint
class node_raw_store,node_event_store,node_user_store toneRose
class node_rss,node_gemini,node_firebase,node_redis,node_developer toneIndigo
```

## Components

### Ingestion and synthesis

- [Ingestion orchestration](https://github.com/karannchaudhari04/techpulse-ai/blob/main/backend/src/main/java/com/techpulse/service/NewsIngestionService.java): `backend/src/main/java/com/techpulse/service/NewsIngestionService.java`
- [Discovery and dedup](https://github.com/karannchaudhari04/techpulse-ai/blob/main/backend/src/main/java/com/techpulse/agent/DiscoveryAgent.java): `backend/src/main/java/com/techpulse/agent/DiscoveryAgent.java`
- [RSS source collection](https://github.com/karannchaudhari04/techpulse-ai/tree/main/backend/src/main/java/com/techpulse/agent/collector): `backend/src/main/java/com/techpulse/agent/collector`
- [AI synthesis](https://github.com/karannchaudhari04/techpulse-ai/blob/main/backend/src/main/java/com/techpulse/agent/AISynthesisAgent.java): `backend/src/main/java/com/techpulse/agent/AISynthesisAgent.java`

### Backend experiences

- [Personalized ranking](https://github.com/karannchaudhari04/techpulse-ai/blob/main/backend/src/main/java/com/techpulse/agent/PersonalizationAgent.java): `backend/src/main/java/com/techpulse/agent/PersonalizationAgent.java`
- [Personalization API](https://github.com/karannchaudhari04/techpulse-ai/blob/main/backend/src/main/java/com/techpulse/controller/PersonalizationController.java): `backend/src/main/java/com/techpulse/controller/PersonalizationController.java`
- [Assistant API](https://github.com/karannchaudhari04/techpulse-ai/blob/main/backend/src/main/java/com/techpulse/controller/AssistantController.java): `backend/src/main/java/com/techpulse/controller/AssistantController.java`
- [Intelligence API](https://github.com/karannchaudhari04/techpulse-ai/blob/main/backend/src/main/java/com/techpulse/controller/IntelligenceController.java): `backend/src/main/java/com/techpulse/controller/IntelligenceController.java`
- [Notification services](https://github.com/karannchaudhari04/techpulse-ai/blob/main/backend/src/main/java/com/techpulse/service/NotificationService.java): `backend/src/main/java/com/techpulse/service/NotificationService.java`

### Mobile client

- [Mobile app](https://github.com/karannchaudhari04/techpulse-ai/blob/main/mobile/App.tsx): `mobile/App.tsx`
- [Authentication](https://github.com/karannchaudhari04/techpulse-ai/blob/main/mobile/src/features/auth/services/authService.ts): `mobile/src/features/auth/services/authService.ts`
- [API client](https://github.com/karannchaudhari04/techpulse-ai/blob/main/mobile/src/api/client.ts): `mobile/src/api/client.ts`
- [Feed and events](https://github.com/karannchaudhari04/techpulse-ai/tree/main/mobile/src/features/feed): `mobile/src/features/feed`
- [Assistant UI](https://github.com/karannchaudhari04/techpulse-ai/tree/main/mobile/src/features/assistant): `mobile/src/features/assistant`
- [Intelligence UI](https://github.com/karannchaudhari04/techpulse-ai/tree/main/mobile/src/features/intelligence): `mobile/src/features/intelligence`
- [Library and preferences](https://github.com/karannchaudhari04/techpulse-ai/tree/main/mobile/src/features/personalization): `mobile/src/features/personalization`
- [Notifications UI](https://github.com/karannchaudhari04/techpulse-ai/tree/main/mobile/src/features/notifications): `mobile/src/features/notifications`
- [Persisted app state](https://github.com/karannchaudhari04/techpulse-ai/blob/main/mobile/src/store/index.ts): `mobile/src/store/index.ts`

### Data and infrastructure

- [Raw ingestion records](https://github.com/karannchaudhari04/techpulse-ai/blob/main/backend/src/main/java/com/techpulse/repository/RawIngestionRepository.java): `backend/src/main/java/com/techpulse/repository/RawIngestionRepository.java`
- [Technology events](https://github.com/karannchaudhari04/techpulse-ai/blob/main/backend/src/main/java/com/techpulse/repository/TechnologyEventRepository.java): `backend/src/main/java/com/techpulse/repository/TechnologyEventRepository.java`
- [User data](https://github.com/karannchaudhari04/techpulse-ai/blob/main/backend/src/main/java/com/techpulse/repository/UserRepository.java): `backend/src/main/java/com/techpulse/repository/UserRepository.java`

### External integrations

- **RSS sources**
- **Gemini AI**
- **Firebase services**
- **Redis cache**

### Other components

- **Developer**

## Connections

- Developer → Mobile app: uses
- Mobile app → Authentication: starts auth (evidence: `mobile/App.tsx`)
- Authentication → Firebase services: authenticates (evidence: `mobile/src/features/auth/services/authService.ts`)
- Authentication → Persisted app state: updates session (evidence: `mobile/src/features/auth/hooks/useAuth.ts`)
- Mobile app → Persisted app state: provides state (evidence: `mobile/App.tsx`)
- Mobile app → Notifications UI: initializes sync (evidence: `mobile/App.tsx`)
- Mobile app → Library and preferences: starts offline replay (evidence: `mobile/App.tsx`)
- API client → Feed and events: serves features
- Feed and events → Personalization API: requests feed
- Assistant UI → Assistant API: requests answers
- Intelligence UI → Intelligence API: requests intelligence
- Library and preferences → Personalization API: syncs activity
- Notifications UI → Notification services: syncs notifications
- Ingestion orchestration → Discovery and dedup: discovers updates (evidence: `backend/src/main/java/com/techpulse/service/NewsIngestionService.java`)
- Discovery and dedup → RSS source collection: collects feeds (evidence: `backend/src/main/java/com/techpulse/agent/DiscoveryAgent.java`)
- RSS source collection → RSS sources: reads feeds
- Ingestion orchestration → Raw ingestion records: cleans and queries (evidence: `backend/src/main/java/com/techpulse/service/NewsIngestionService.java`)
- Ingestion orchestration → AI synthesis: synthesizes candidates (evidence: `backend/src/main/java/com/techpulse/service/NewsIngestionService.java`)
- AI synthesis → Gemini AI: analyzes updates
- AI synthesis → Technology events: saves events (evidence: `backend/src/main/java/com/techpulse/agent/AISynthesisAgent.java`)
- Raw ingestion records → Technology events: links event records
- Personalization API → Personalized ranking: ranks feed (evidence: `backend/src/main/java/com/techpulse/controller/PersonalizationController.java`)
- Personalization API → Technology events: reads events (evidence: `backend/src/main/java/com/techpulse/controller/PersonalizationController.java`)
- Personalization API → User data: reads user (evidence: `backend/src/main/java/com/techpulse/controller/PersonalizationController.java`)
- Assistant API → Gemini AI: answers with context
- Intelligence API → Gemini AI: generates briefs
- Notification services → Firebase services: sends push
