# sainaveen12/live-on architecture

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

- Interactive diagram: https://gitdiagram.com/sainaveen12/live-on
- Repository: https://github.com/sainaveen12/live-on

## Overview

Live On is a React dashboard wrapped for Android. Its main workflow loads gold and crypto data, presents prices and signals, and lets users record trades. The principal business logic is concentrated in src/App.jsx; the graph separates its documented responsibilities while keeping their shared implementation path visible. The sampled excerpts show key fetch, cache, and CSV operations, but not every implementation detail; roadmap items are not treated as implemented capabilities.

Main entry points: [`src/App.jsx`](https://github.com/sainaveen12/live-on/blob/main/src/App.jsx) (Dashboard UI), [`src/main.jsx`](https://github.com/sainaveen12/live-on/blob/main/src/main.jsx) (React entry), [`android/app/src/main/java/com/live_on/app/MainActivity.java`](https://github.com/sainaveen12/live-on/blob/main/android/app/src/main/java/com/live_on/app/MainActivity.java) (Android bridge)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and dashboard"]
  node_entry["React entry<br/>[main.jsx]"]
  node_dashboard["Dashboard UI<br/>[App.jsx]"]
end

subgraph group_gold["Gold tracking"]
  node_gold_fetch["Gold fetch and parse<br/>[App.jsx]"]
  node_gold_cache["Daily cache and fallback<br/>[App.jsx]"]
  node_gold_site["GoodReturns"]
  node_network["Network status<br/>[App.jsx]"]
end

subgraph group_crypto["Crypto signals"]
  node_crypto_fetch["Market data fetch<br/>[App.jsx]"]
  node_binance["Binance API"]
  node_fx["USD/INR rates"]
  node_signals["RSI and signals<br/>[App.jsx]"]
end

subgraph group_records["Local records and Android"]
  node_profit["Trade profit math<br/>[App.jsx]"]
  node_csv[("CSV file storage<br/>[App.jsx]")]
  node_filesystem["Capacitor Filesystem"]
  node_android["Android bridge<br/>[MainActivity.java]"]
end

node_user(("Dashboard user"))

node_user -->|"opens app"| node_entry
node_entry -->|"renders"| node_dashboard
node_dashboard -->|"loads gold"| node_gold_fetch
node_gold_fetch -->|"checks status"| node_network
node_gold_fetch -->|"checks cache"| node_gold_cache
node_gold_fetch -->|"requests rates"| node_gold_site
node_gold_fetch -.->|"logs rates"| node_csv
node_dashboard -->|"loads markets"| node_crypto_fetch
node_crypto_fetch -->|"requests prices"| node_binance
node_crypto_fetch -->|"requests exchange rate"| node_fx
node_crypto_fetch -->|"calculates signals"| node_signals
node_dashboard -->|"calculates target"| node_profit
node_dashboard -->|"logs trade"| node_csv
node_gold_fetch -->|"reads and writes"| node_filesystem
node_dashboard -->|"requests permissions"| node_filesystem
node_android -.->|"hosts web app"| node_dashboard

click node_entry "https://github.com/sainaveen12/live-on/blob/main/src/main.jsx"
click node_dashboard "https://github.com/sainaveen12/live-on/blob/main/src/App.jsx"
click node_gold_fetch "https://github.com/sainaveen12/live-on/blob/main/src/App.jsx"
click node_gold_cache "https://github.com/sainaveen12/live-on/blob/main/src/App.jsx"
click node_network "https://github.com/sainaveen12/live-on/blob/main/src/App.jsx"
click node_crypto_fetch "https://github.com/sainaveen12/live-on/blob/main/src/App.jsx"
click node_signals "https://github.com/sainaveen12/live-on/blob/main/src/App.jsx"
click node_profit "https://github.com/sainaveen12/live-on/blob/main/src/App.jsx"
click node_csv "https://github.com/sainaveen12/live-on/blob/main/src/App.jsx"
click node_android "https://github.com/sainaveen12/live-on/blob/main/android/app/src/main/java/com/live_on/app/MainActivity.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_entry,node_dashboard,node_user toneBlue
class node_gold_fetch,node_gold_cache,node_gold_site,node_network toneAmber
class node_crypto_fetch,node_binance,node_fx,node_signals toneMint
class node_profit,node_csv,node_filesystem,node_android toneRose
```

## Components

### App and dashboard

- [React entry](https://github.com/sainaveen12/live-on/blob/main/src/main.jsx): `src/main.jsx`
- [Dashboard UI](https://github.com/sainaveen12/live-on/blob/main/src/App.jsx): `src/App.jsx`

### Gold tracking

- [Gold fetch and parse](https://github.com/sainaveen12/live-on/blob/main/src/App.jsx): `src/App.jsx`
- [Daily cache and fallback](https://github.com/sainaveen12/live-on/blob/main/src/App.jsx): `src/App.jsx`
- **GoodReturns**
- [Network status](https://github.com/sainaveen12/live-on/blob/main/src/App.jsx): `src/App.jsx`

### Crypto signals

- [Market data fetch](https://github.com/sainaveen12/live-on/blob/main/src/App.jsx): `src/App.jsx`
- **Binance API**
- **USD/INR rates**
- [RSI and signals](https://github.com/sainaveen12/live-on/blob/main/src/App.jsx): `src/App.jsx`

### Local records and Android

- [Trade profit math](https://github.com/sainaveen12/live-on/blob/main/src/App.jsx): `src/App.jsx`
- [CSV file storage](https://github.com/sainaveen12/live-on/blob/main/src/App.jsx): `src/App.jsx`
- **Capacitor Filesystem**
- [Android bridge](https://github.com/sainaveen12/live-on/blob/main/android/app/src/main/java/com/live_on/app/MainActivity.java): `android/app/src/main/java/com/live_on/app/MainActivity.java`

### Other components

- **Dashboard user**

## Connections

- Dashboard user → React entry: opens app (evidence: `README.md`)
- React entry → Dashboard UI: renders (evidence: `src/main.jsx`)
- Dashboard UI → Gold fetch and parse: loads gold (evidence: `src/App.jsx`)
- Gold fetch and parse → Network status: checks status (evidence: `src/App.jsx`)
- Gold fetch and parse → Daily cache and fallback: checks cache (evidence: `README.md`)
- Gold fetch and parse → GoodReturns: requests rates (evidence: `src/App.jsx`)
- Gold fetch and parse → CSV file storage: logs rates (evidence: `src/App.jsx`)
- Dashboard UI → Market data fetch: loads markets (evidence: `src/App.jsx`)
- Market data fetch → Binance API: requests prices (evidence: `src/App.jsx`)
- Market data fetch → USD/INR rates: requests exchange rate (evidence: `src/App.jsx`)
- Market data fetch → RSI and signals: calculates signals (evidence: `src/App.jsx`)
- Dashboard UI → Trade profit math: calculates target (evidence: `README.md`)
- Dashboard UI → CSV file storage: logs trade (evidence: `src/App.jsx`)
- Gold fetch and parse → Capacitor Filesystem: reads and writes (evidence: `src/App.jsx`)
- Dashboard UI → Capacitor Filesystem: requests permissions (evidence: `src/App.jsx`)
- Android bridge → Dashboard UI: hosts web app (evidence: `README.md`)
