How longsurf-ai/openchart works
OpenChart is a desktop market-analysis workspace combining interactive charts, custom Tea logic, alerts, and user-configured AI agents. Users explore market data and indicators, define alert conditions or monitors, and can ask agents to investigate market moves; results may include source-linked chart annotations. The repository also includes dashboards, watchlists, schedules, shared posts, and workspace files. The graph combines README-documented capabilities with sampled API and server boundaries; several implementation details are unsampled, so uncertain links are dashed.
Main entry points: router.ts Agent sessions and prompts · index.ts HTTP and Hose API · chart Charts and indicators · alerts Alerts and monitors
Components 20
Desktop experience
- Desktop host
platform/desktop/src/main.ts - Application UI
app/src/app
Market analysis
- Charts and indicators
app/src/features/chart - Dashboards
app/src/features/dashboard - Watchlists
app/src/features/watchlist - Market data providers
server/data/providers - Tea analysis logic
server/tea/tea.ts - Alerts and monitors
app/src/features/alerts
Agent workflows
- Agent interface
app/src/features/agent - Agent sessions and prompts
server/agent/router.ts - Model providers
server/models/models.ts - Chart explanations
app/src/features/chart/components/chart-explain-drawings.tsx
Backend services
- Schedules
app/src/features/schedule - Workspace files
server/workspace/router.ts - Community feed
app/src/features/posts
Runtime infrastructure
- HTTP and Hose API
server/index.ts - Hose transport
common/hose/src/server.ts - SQLite database
server/db/database.ts - Application events
server/events/router.ts
Other components
- Investor
Connections 21
- Investor → Desktop host: opens
- Desktop host → Application UI: hosts
platform/desktop/src/main.ts - Investor → Charts and indicators: explores markets
README.md - Charts and indicators → Market data providers: loads market data
- Charts and indicators → Tea analysis logic: uses custom logic
README.md - Investor → Alerts and monitors: defines alerts
README.md - Alerts and monitors → Tea analysis logic: evaluates monitors
README.md - Alerts and monitors → Agent sessions and prompts: requests investigation
README.md - Investor → Agent interface: asks agent
README.md - Agent interface → Agent sessions and prompts: submits prompts
- Agent sessions and prompts → Model providers: uses configured models
- Agent sessions and prompts → Chart explanations: produces explanations
- Investor → Dashboards: organizes charts
- Investor → Watchlists: tracks symbols
- Investor → Schedules: schedules tasks
- Investor → Workspace files: manages files
- Investor → Community feed: views posts
- HTTP and Hose API → Hose transport: creates transport
server/index.ts - HTTP and Hose API → SQLite database: starts runtime
- Agent sessions and prompts → HTTP and Hose API: routes through tRPC
- Application events → HTTP and Hose API: streams subscriptions