# dubaipoints1/property architecture

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

- Interactive diagram: https://gitdiagram.com/dubaipoints1/property
- Repository: https://github.com/dubaipoints1/property

## Overview

DubaiPoints is a UAE-focused points-and-miles information site. Readers compare credit cards and loyalty value, explore deals and news, and use interactive tools to estimate rewards, interest costs, and salary-transfer offer value. Its main user workflow is represented by the card-rewards calculator, with separate calculator and editorial-feed branches for other documented capabilities. The README also describes bank-product scraping as a future phase. Relationships below are limited to source-index references, shown excerpts, or README statements; some page and content wiring is not visible in the supplied evidence.

Main entry points: [`src/components/islands/RewardsCalculator.tsx`](https://github.com/dubaipoints1/property/blob/main/src/components/islands/RewardsCalculator.tsx) (Rewards calculator), [`src/components/islands/SalaryTransferCalculator.tsx`](https://github.com/dubaipoints1/property/blob/main/src/components/islands/SalaryTransferCalculator.tsx) (Salary calculator), [`src/components/islands/SalaryTransferTracker.tsx`](https://github.com/dubaipoints1/property/blob/main/src/components/islands/SalaryTransferTracker.tsx) (Offer tracker), [`src/components/islands/InterestPayoffCalculator.tsx`](https://github.com/dubaipoints1/property/blob/main/src/components/islands/InterestPayoffCalculator.tsx) (Interest calculator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_card_data["Card analysis"]
  node_card_records[("Card records<br/>[cardsData.ts]")]
  node_card_format["Card formatting<br/>[cardsDataFormat.ts]"]
  node_earn_basis["Earn arithmetic<br/>[earnBasis.ts]"]
  node_valuations["Point valuations<br/>[valuations.ts]"]
  node_verification["Verification status<br/>[verification.ts]"]
end

subgraph group_tools["Reader tools"]
  node_rewards["Rewards calculator"]
  node_motion["Motion effects<br/>[motion.tsx]"]
  node_interest_tool["Interest calculator"]
  node_interest_logic["Payoff model<br/>[interestPayoff.ts]"]
  node_points_tool["Points converter"]
  node_salary_tool["Salary calculator"]
  node_salary_tracker["Offer tracker"]
  node_salary_logic["Offer scoring<br/>[salaryTransfer.ts]"]
end

subgraph group_editorial["Editorial feeds"]
  node_news_feed["News feeds<br/>[rss.xml.ts]"]
  node_site_feed["Site feed<br/>[rss.xml.ts]"]
  node_feed_renderer["RSS renderer<br/>[rssFeed.ts]"]
end

subgraph group_operations["Offer monitoring"]
  node_monitoring["Offer monitoring"]
  node_scraping["Bank scraping"]
end

node_reader(("Reader"))

node_reader -->|"uses"| node_rewards
node_reader -->|"uses"| node_interest_tool
node_reader -->|"uses"| node_points_tool
node_reader -->|"uses"| node_salary_tool
node_reader -->|"uses"| node_salary_tracker
node_rewards -->|"reads"| node_card_records
node_rewards -->|"formats with"| node_card_format
node_rewards -->|"calculates with"| node_earn_basis
node_rewards -->|"values with"| node_valuations
node_rewards -->|"checks"| node_verification
node_rewards -->|"animates with"| node_motion
node_interest_tool -->|"calculates with"| node_interest_logic
node_salary_tool -->|"scores with"| node_salary_logic
node_salary_tool -->|"animates with"| node_motion
node_salary_tracker -->|"uses"| node_salary_logic
node_salary_tracker -->|"checks"| node_verification
node_news_feed -->|"renders with"| node_feed_renderer
node_site_feed -->|"renders with"| node_feed_renderer

click node_card_records "https://github.com/dubaipoints1/property/blob/main/src/lib/cardsData.ts"
click node_card_format "https://github.com/dubaipoints1/property/blob/main/src/lib/cardsDataFormat.ts"
click node_rewards "https://github.com/dubaipoints1/property/blob/main/src/components/islands/RewardsCalculator.tsx"
click node_earn_basis "https://github.com/dubaipoints1/property/blob/main/src/lib/earnBasis.ts"
click node_valuations "https://github.com/dubaipoints1/property/blob/main/src/lib/valuations.ts"
click node_verification "https://github.com/dubaipoints1/property/blob/main/src/lib/verification.ts"
click node_motion "https://github.com/dubaipoints1/property/blob/main/src/components/islands/motion.tsx"
click node_interest_tool "https://github.com/dubaipoints1/property/blob/main/src/components/islands/InterestPayoffCalculator.tsx"
click node_interest_logic "https://github.com/dubaipoints1/property/blob/main/src/lib/interestPayoff.ts"
click node_points_tool "https://github.com/dubaipoints1/property/blob/main/src/components/islands/PointsToAEDConverter.tsx"
click node_salary_tool "https://github.com/dubaipoints1/property/blob/main/src/components/islands/SalaryTransferCalculator.tsx"
click node_salary_tracker "https://github.com/dubaipoints1/property/blob/main/src/components/islands/SalaryTransferTracker.tsx"
click node_salary_logic "https://github.com/dubaipoints1/property/blob/main/src/lib/salaryTransfer.ts"
click node_news_feed "https://github.com/dubaipoints1/property/blob/main/src/pages/news/%5Bbeat%5D/rss.xml.ts"
click node_site_feed "https://github.com/dubaipoints1/property/blob/main/src/pages/rss.xml.ts"
click node_feed_renderer "https://github.com/dubaipoints1/property/blob/main/src/lib/rssFeed.ts"
click node_monitoring "https://github.com/dubaipoints1/property/tree/main/scripts/monitor"
click node_scraping "https://github.com/dubaipoints1/property/tree/main/scripts/scrape"

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_card_records,node_card_format,node_earn_basis,node_valuations,node_verification toneBlue
class node_rewards,node_motion,node_interest_tool,node_interest_logic,node_points_tool,node_salary_tool,node_salary_tracker,node_salary_logic toneAmber
class node_news_feed,node_site_feed,node_feed_renderer toneMint
class node_monitoring,node_scraping toneRose
class node_reader toneIndigo
```

## Components

### Card analysis

- [Card records](https://github.com/dubaipoints1/property/blob/main/src/lib/cardsData.ts): `src/lib/cardsData.ts`
- [Card formatting](https://github.com/dubaipoints1/property/blob/main/src/lib/cardsDataFormat.ts): `src/lib/cardsDataFormat.ts`
- [Earn arithmetic](https://github.com/dubaipoints1/property/blob/main/src/lib/earnBasis.ts): `src/lib/earnBasis.ts`
- [Point valuations](https://github.com/dubaipoints1/property/blob/main/src/lib/valuations.ts): `src/lib/valuations.ts`
- [Verification status](https://github.com/dubaipoints1/property/blob/main/src/lib/verification.ts): `src/lib/verification.ts`

### Reader tools

- [Rewards calculator](https://github.com/dubaipoints1/property/blob/main/src/components/islands/RewardsCalculator.tsx): `src/components/islands/RewardsCalculator.tsx`
- [Motion effects](https://github.com/dubaipoints1/property/blob/main/src/components/islands/motion.tsx): `src/components/islands/motion.tsx`
- [Interest calculator](https://github.com/dubaipoints1/property/blob/main/src/components/islands/InterestPayoffCalculator.tsx): `src/components/islands/InterestPayoffCalculator.tsx`
- [Payoff model](https://github.com/dubaipoints1/property/blob/main/src/lib/interestPayoff.ts): `src/lib/interestPayoff.ts`
- [Points converter](https://github.com/dubaipoints1/property/blob/main/src/components/islands/PointsToAEDConverter.tsx): `src/components/islands/PointsToAEDConverter.tsx`
- [Salary calculator](https://github.com/dubaipoints1/property/blob/main/src/components/islands/SalaryTransferCalculator.tsx): `src/components/islands/SalaryTransferCalculator.tsx`
- [Offer tracker](https://github.com/dubaipoints1/property/blob/main/src/components/islands/SalaryTransferTracker.tsx): `src/components/islands/SalaryTransferTracker.tsx`
- [Offer scoring](https://github.com/dubaipoints1/property/blob/main/src/lib/salaryTransfer.ts): `src/lib/salaryTransfer.ts`

### Editorial feeds

- [News feeds](https://github.com/dubaipoints1/property/blob/main/src/pages/news/%5Bbeat%5D/rss.xml.ts): `src/pages/news/[beat]/rss.xml.ts`
- [Site feed](https://github.com/dubaipoints1/property/blob/main/src/pages/rss.xml.ts): `src/pages/rss.xml.ts`
- [RSS renderer](https://github.com/dubaipoints1/property/blob/main/src/lib/rssFeed.ts): `src/lib/rssFeed.ts`

### Offer monitoring

- [Offer monitoring](https://github.com/dubaipoints1/property/tree/main/scripts/monitor): `scripts/monitor`
- [Bank scraping](https://github.com/dubaipoints1/property/tree/main/scripts/scrape): `scripts/scrape`

### Other components

- **Reader**

## Connections

- Reader → Rewards calculator: uses (evidence: `README.md`)
- Reader → Interest calculator: uses (evidence: `README.md`)
- Reader → Points converter: uses (evidence: `README.md`)
- Reader → Salary calculator: uses (evidence: `README.md`)
- Reader → Offer tracker: uses (evidence: `README.md`)
- Rewards calculator → Card records: reads (evidence: `src/components/islands/RewardsCalculator.tsx`)
- Rewards calculator → Card formatting: formats with (evidence: `src/components/islands/RewardsCalculator.tsx`)
- Rewards calculator → Earn arithmetic: calculates with (evidence: `src/components/islands/RewardsCalculator.tsx`)
- Rewards calculator → Point valuations: values with (evidence: `src/components/islands/RewardsCalculator.tsx`)
- Rewards calculator → Verification status: checks (evidence: `src/components/islands/RewardsCalculator.tsx`)
- Rewards calculator → Motion effects: animates with (evidence: `src/components/islands/RewardsCalculator.tsx`)
- Interest calculator → Payoff model: calculates with (evidence: `src/components/islands/InterestPayoffCalculator.tsx`)
- Salary calculator → Offer scoring: scores with (evidence: `src/components/islands/SalaryTransferCalculator.tsx`)
- Salary calculator → Motion effects: animates with (evidence: `src/components/islands/SalaryTransferCalculator.tsx`)
- Offer tracker → Offer scoring: uses (evidence: `src/components/islands/SalaryTransferTracker.tsx`)
- Offer tracker → Verification status: checks (evidence: `src/components/islands/SalaryTransferTracker.tsx`)
- News feeds → RSS renderer: renders with (evidence: `src/pages/news/[beat]/rss.xml.ts`)
- Site feed → RSS renderer: renders with (evidence: `src/pages/rss.xml.ts`)
