How nijeeth/chart-funda works
Chart Funda is a Chrome extension that adds Indian-company fundamentals and ownership data beside TradingView charts, with an optional Chartink redirect and a dashboard of settings and market links. The main workflow is: a viewer opens the panel for a chart symbol; the panel requests Screener company data and Trendlyne earnings dates; background modules fetch and parse the data; the panel displays it and can switch the chart to a peer. The excerpts show the service-worker dispatch and panel requests, but not every response-handler detail, so only evidenced relationships are drawn.
Main entry points: content.js TradingView panel · chartink-redirect/background.js Chartink redirect · screener-fundamentals/background.js Company fundamentals · index.js Background worker
Components 15
Extension runtime
- Background worker
background/index.js - Chartink redirect
modules/chartink-redirect/background.js - Settings storage
shared/storage.js
Chart panel
- TradingView panel
modules/tv-panel/content.js - Chart page bridge
modules/tv-panel/page-bridge.js
Market data
- Company fundamentals
modules/screener-fundamentals/background.js - BSE symbol lookup
modules/screener-fundamentals/bse-lookup.js - Earnings calendar
modules/earnings-calendar/background.js
Dashboard
- Settings and links
modules/dashboard/script.js
Other components
- Chart viewer
- TradingView
- Screener.in
- Trendlyne
- Kite instruments
- Chartink
Connections 20
- Background worker → Chartink redirect: starts
background/index.js - Background worker → Company fundamentals: starts
background/index.js - Background worker → Earnings calendar: starts
background/index.js - Chart viewer → TradingView: opens chart
README.md - TradingView → TradingView panel: hosts panel
README.md - TradingView panel → Company fundamentals: requests data
modules/tv-panel/content.js - TradingView panel → Earnings calendar: requests dates
modules/tv-panel/content.js - Company fundamentals → BSE symbol lookup: resolves BSE
modules/screener-fundamentals/background.js - Company fundamentals → Screener.in: fetches company data
README.md - BSE symbol lookup → Kite instruments: fetches instruments
modules/screener-fundamentals/bse-lookup.js - Earnings calendar → Trendlyne: fetches dates
modules/earnings-calendar/background.js - TradingView panel → Chart page bridge: dispatches chart event
modules/tv-panel/content.js - Chart page bridge → TradingView: changes symbol
modules/tv-panel/page-bridge.js - TradingView panel → Settings storage: reads settings
modules/tv-panel/content.js - Chart viewer → Settings and links: opens dashboard
- Settings and links → Settings storage: reads and writes
modules/dashboard/script.js - Chartink redirect → Settings storage: reads setting
modules/chartink-redirect/background.js - Chartink → Chartink redirect: tab navigation
modules/chartink-redirect/background.js - Chartink redirect → TradingView: redirects symbol
modules/chartink-redirect/background.js - Settings and links → Chart viewer: offers market links
README.md