# keptaduona/wickline architecture

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

- Interactive diagram: https://gitdiagram.com/keptaduona/wickline
- Repository: https://github.com/keptaduona/wickline

## Overview

Wickline is a charting and market-research platform, delivered as a web app or desktop app. The main workflow is to search for an instrument, load its market data, inspect it in charts with indicators and drawings, and optionally use screeners, options, news, or strategy tools. The map includes README-documented capabilities whose detailed implementations were not sampled; those links cite the README. Source-level links are limited to relationships shown in excerpts or the SOURCE INDEX.

Main entry points: [`public/js/app.js`](https://github.com/keptaduona/wickline/blob/main/public/js/app.js) (App coordinator), [`server.mjs`](https://github.com/keptaduona/wickline/blob/main/server.mjs) (HTTP API server), [`public/js/chart-view.js`](https://github.com/keptaduona/wickline/blob/main/public/js/chart-view.js) (Chart views), [`public/js/datafeed.js`](https://github.com/keptaduona/wickline/blob/main/public/js/datafeed.js) (Market datafeed)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Charting experience"]
  node_app["App coordinator<br/>[app.js]"]
  node_search["Symbol search<br/>[search.js]"]
  node_chart["Chart views<br/>[chart-view.js]"]
  node_drawings["Drawings editor<br/>[drawings.js]"]
  node_indicators["Indicator library<br/>[indicators.js]"]
end

subgraph group_market["Market data"]
  node_datafeed["Market datafeed<br/>[datafeed.js]"]
  node_history["Historical bars<br/>[history.mjs]"]
  node_history_sources["History sources"]
  node_history_store[("History store<br/>[history-store.mjs]")]
  node_markets["Market catalogue<br/>[markets.mjs]"]
end

subgraph group_research["Research tools"]
  node_screener["Stock screener<br/>[screener.mjs]"]
  node_heatmap["Market heatmaps"]
  node_options["Options chains<br/>[options.mjs]"]
  node_news["News and calendar<br/>[news.mjs]"]
end

subgraph group_scripts["Scripts and community"]
  node_scripts["Script engine<br/>[scripts.js]"]
  node_worker["Isolated worker<br/>[script-worker.js]"]
  node_community_ui["Community browser<br/>[community.js]"]
  node_community_api["Community service<br/>[community.mjs]"]
end

subgraph group_runtime["Application runtime"]
  node_server["HTTP API server<br/>[server.mjs]"]
  node_desktop["Desktop shell<br/>[main.mjs]"]
end

node_user(("Trader"))
node_yahoo["Yahoo Finance"]
node_crypto_exchanges["Crypto exchanges"]
node_community_service["Community hosting"]

node_user -->|"uses"| node_app
node_app -.->|"opens"| node_search
node_search -->|"searches"| node_datafeed
node_app -->|"shows charts"| node_chart
node_chart -->|"loads bars"| node_datafeed
node_chart -->|"calculates"| node_indicators
node_chart -->|"uses tools"| node_drawings
node_datafeed -->|"requests history"| node_history
node_history -->|"loads from"| node_history_sources
node_history -->|"reads and writes"| node_history_store
node_history_sources -->|"uses cache"| node_history_store
node_server -->|"routes requests"| node_history
node_server -->|"serves markets"| node_markets
node_server -->|"serves scans"| node_screener
node_server -->|"serves heatmap data"| node_heatmap
node_server -->|"serves chains"| node_options
node_server -->|"serves headlines"| node_news
node_server -->|"routes scripts"| node_community_api
node_datafeed -.->|"fetches quotes"| node_yahoo
node_datafeed -.->|"fetches crypto"| node_crypto_exchanges
node_desktop -->|"starts"| node_server
node_app -->|"offers scans"| node_screener
node_app -->|"offers heatmaps"| node_heatmap
node_app -->|"offers chains"| node_options
node_app -->|"offers headlines"| node_news
node_chart -->|"runs indicators"| node_scripts
node_scripts -->|"dispatches jobs"| node_worker
node_worker -->|"uses calculations"| node_indicators
node_app -->|"loads library"| node_community_ui
node_community_ui -.->|"requests scripts"| node_community_api
node_community_api -.->|"publishes scripts"| node_community_service

click node_app "https://github.com/keptaduona/wickline/blob/main/public/js/app.js"
click node_search "https://github.com/keptaduona/wickline/blob/main/public/js/search.js"
click node_chart "https://github.com/keptaduona/wickline/blob/main/public/js/chart-view.js"
click node_drawings "https://github.com/keptaduona/wickline/blob/main/public/js/drawings.js"
click node_indicators "https://github.com/keptaduona/wickline/blob/main/public/js/indicators.js"
click node_datafeed "https://github.com/keptaduona/wickline/blob/main/public/js/datafeed.js"
click node_history "https://github.com/keptaduona/wickline/blob/main/lib/history.mjs"
click node_history_sources "https://github.com/keptaduona/wickline/blob/main/lib/history-sources.mjs"
click node_history_store "https://github.com/keptaduona/wickline/blob/main/lib/history-store.mjs"
click node_markets "https://github.com/keptaduona/wickline/blob/main/lib/markets.mjs"
click node_screener "https://github.com/keptaduona/wickline/blob/main/lib/screener.mjs"
click node_heatmap "https://github.com/keptaduona/wickline/blob/main/lib/heatmap-markets.mjs"
click node_options "https://github.com/keptaduona/wickline/blob/main/lib/options.mjs"
click node_news "https://github.com/keptaduona/wickline/blob/main/lib/news.mjs"
click node_scripts "https://github.com/keptaduona/wickline/blob/main/public/js/scripts.js"
click node_worker "https://github.com/keptaduona/wickline/blob/main/public/js/script-worker.js"
click node_community_ui "https://github.com/keptaduona/wickline/blob/main/public/js/community.js"
click node_community_api "https://github.com/keptaduona/wickline/blob/main/lib/community.mjs"
click node_server "https://github.com/keptaduona/wickline/blob/main/server.mjs"
click node_desktop "https://github.com/keptaduona/wickline/blob/main/desktop/main.mjs"

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_app,node_search,node_chart,node_drawings,node_indicators toneBlue
class node_datafeed,node_history,node_history_sources,node_history_store,node_markets toneAmber
class node_screener,node_heatmap,node_options,node_news toneMint
class node_scripts,node_worker,node_community_ui,node_community_api toneRose
class node_server,node_desktop,node_user,node_yahoo,node_crypto_exchanges,node_community_service toneIndigo
```

## Components

### Charting experience

- [App coordinator](https://github.com/keptaduona/wickline/blob/main/public/js/app.js): `public/js/app.js`
- [Symbol search](https://github.com/keptaduona/wickline/blob/main/public/js/search.js): `public/js/search.js`
- [Chart views](https://github.com/keptaduona/wickline/blob/main/public/js/chart-view.js): `public/js/chart-view.js`
- [Drawings editor](https://github.com/keptaduona/wickline/blob/main/public/js/drawings.js): `public/js/drawings.js`
- [Indicator library](https://github.com/keptaduona/wickline/blob/main/public/js/indicators.js): `public/js/indicators.js`

### Market data

- [Market datafeed](https://github.com/keptaduona/wickline/blob/main/public/js/datafeed.js): `public/js/datafeed.js`
- [Historical bars](https://github.com/keptaduona/wickline/blob/main/lib/history.mjs): `lib/history.mjs`
- [History sources](https://github.com/keptaduona/wickline/blob/main/lib/history-sources.mjs): `lib/history-sources.mjs`
- [History store](https://github.com/keptaduona/wickline/blob/main/lib/history-store.mjs): `lib/history-store.mjs`
- [Market catalogue](https://github.com/keptaduona/wickline/blob/main/lib/markets.mjs): `lib/markets.mjs`

### Research tools

- [Stock screener](https://github.com/keptaduona/wickline/blob/main/lib/screener.mjs): `lib/screener.mjs`
- [Market heatmaps](https://github.com/keptaduona/wickline/blob/main/lib/heatmap-markets.mjs): `lib/heatmap-markets.mjs`
- [Options chains](https://github.com/keptaduona/wickline/blob/main/lib/options.mjs): `lib/options.mjs`
- [News and calendar](https://github.com/keptaduona/wickline/blob/main/lib/news.mjs): `lib/news.mjs`

### Scripts and community

- [Script engine](https://github.com/keptaduona/wickline/blob/main/public/js/scripts.js): `public/js/scripts.js`
- [Isolated worker](https://github.com/keptaduona/wickline/blob/main/public/js/script-worker.js): `public/js/script-worker.js`
- [Community browser](https://github.com/keptaduona/wickline/blob/main/public/js/community.js): `public/js/community.js`
- [Community service](https://github.com/keptaduona/wickline/blob/main/lib/community.mjs): `lib/community.mjs`

### Application runtime

- [HTTP API server](https://github.com/keptaduona/wickline/blob/main/server.mjs): `server.mjs`
- [Desktop shell](https://github.com/keptaduona/wickline/blob/main/desktop/main.mjs): `desktop/main.mjs`

### Other components

- **Trader**
- **Yahoo Finance**
- **Crypto exchanges**
- **Community hosting**

## Connections

- Trader → App coordinator: uses (evidence: `README.md`)
- App coordinator → Symbol search: opens (evidence: `public/js/app.js`)
- Symbol search → Market datafeed: searches (evidence: `public/js/search.js`)
- App coordinator → Chart views: shows charts (evidence: `README.md`)
- Chart views → Market datafeed: loads bars (evidence: `public/js/chart-view.js`)
- Chart views → Indicator library: calculates (evidence: `public/js/chart-view.js`)
- Chart views → Drawings editor: uses tools (evidence: `public/js/chart-view.js`)
- Market datafeed → Historical bars: requests history (evidence: `public/js/datafeed.js`)
- Historical bars → History sources: loads from (evidence: `lib/history.mjs`)
- Historical bars → History store: reads and writes (evidence: `lib/history.mjs`)
- History sources → History store: uses cache (evidence: `lib/history-sources.mjs`)
- HTTP API server → Historical bars: routes requests (evidence: `server.mjs`)
- HTTP API server → Market catalogue: serves markets (evidence: `server.mjs`)
- HTTP API server → Stock screener: serves scans (evidence: `server.mjs`)
- HTTP API server → Market heatmaps: serves heatmap data (evidence: `server.mjs`)
- HTTP API server → Options chains: serves chains (evidence: `server.mjs`)
- HTTP API server → News and calendar: serves headlines (evidence: `server.mjs`)
- HTTP API server → Community service: routes scripts (evidence: `server.mjs`)
- Market datafeed → Yahoo Finance: fetches quotes
- Market datafeed → Crypto exchanges: fetches crypto
- Desktop shell → HTTP API server: starts (evidence: `desktop/main.mjs`)
- App coordinator → Stock screener: offers scans (evidence: `README.md`)
- App coordinator → Market heatmaps: offers heatmaps (evidence: `README.md`)
- App coordinator → Options chains: offers chains (evidence: `README.md`)
- App coordinator → News and calendar: offers headlines (evidence: `README.md`)
- Chart views → Script engine: runs indicators (evidence: `public/js/chart-view.js`)
- Script engine → Isolated worker: dispatches jobs (evidence: `public/js/scripts.js`)
- Isolated worker → Indicator library: uses calculations (evidence: `public/js/script-worker.js`)
- App coordinator → Community browser: loads library (evidence: `public/js/app.js`)
- Community browser → Community service: requests scripts
- Community service → Community hosting: publishes scripts
