How thomasfilemon/idx works
Thomas IDX Lab is an Indonesian stock-market analytics platform: users explore a market snapshot, then search a ticker and inspect historical prices and indicators through a browser backed by a REST API. The repository also retains the upstream CLI and MCP interfaces, broader analytics, provider integrations, and KSEI ownership-data workflows. The README documents the browser/API/provider flow; source-index references and module documentation support several internal relationships. Some API routing and frontend request details were not sampled, so those links are omitted or marked unverified.
Main entry points: service.rs Shared services · providers/mod.rs Provider selection · http/mod.rs HTTP and cache · app.mjs Web dashboard
Components 21
User interfaces
- Web dashboard
web/public/dashboard/app.mjs - Price charts
web/public/dashboard/financial-chart.mjs - CLI
src/cli/mod.rs - MCP tools
src/mcp/mod.rs - CLI output
src/output/mod.rs
API and domain
- REST API
src/bin/idx-api.rs - Shared services
src/service.rs - Market analysis
src/analysis/bandar.rs - Domain models
src/model/mod.rs - Astrology analysis
src/astro/mod.rs
Market data
- Provider selection
src/providers/mod.rs - Yahoo data
src/providers/yahoo/mod.rs - IDX data
src/providers/idx/mod.rs - IPOT data
src/providers/ipot/mod.rs - Stockbit data
src/providers/stockbit/mod.rs - HTTP and cache
src/http/mod.rs - Response cache
src/cache/mod.rs
Ownership data
- Ownership workflows
src/ownership/mod.rs - Register ingestion
src/ownership/ingest.rs - Ownership snapshots
src/ownership/snapshot.rs
Other components
- Market user
Connections 22
- Market user → Web dashboard: explores market
README.md - Web dashboard → REST API: requests data
README.md - Web dashboard → Price charts: renders history
web/public/dashboard/app.mjs - REST API → Shared services: dispatches to
- Shared services → Provider selection: requests observations
src/service.rs - Shared services → Market analysis: uses analysis
src/service.rs - Provider selection → Yahoo data: selects source
src/providers/mod.rs - Provider selection → IDX data: selects source
src/providers/mod.rs - Provider selection → IPOT data: selects source
src/providers/mod.rs - Provider selection → Stockbit data: selects source
src/providers/mod.rs - Yahoo data → HTTP and cache: fetches data
src/providers/yahoo/mod.rs - IDX data → HTTP and cache: fetches data
src/providers/idx/mod.rs - IPOT data → HTTP and cache: fetches data
src/providers/ipot/mod.rs - Stockbit data → HTTP and cache: fetches data
src/providers/stockbit/mod.rs - HTTP and cache → Response cache: reads and writes
src/http/mod.rs - CLI → Shared services: shares operations
src/service.rs - MCP tools → Shared services: shares operations
src/mcp/mod.rs - CLI → CLI output: formats results
src/cli/mod.rs - Shared services → Domain models: returns domain data
src/service.rs - Ownership workflows → Register ingestion: parses reports
src/ownership/mod.rs - Ownership workflows → Ownership snapshots: serves published copy
src/ownership/mod.rs - Shared services → Ownership workflows: uses ownership data
src/service.rs