Experience the power of intelligent stock market analytics through Thesys, where large language models and generative UI combine to create dynamic, context-aware analytics dashboards. From automatically generated financial visualizations and interactive charts to real-time market data and adaptive filter controls, this demo showcases how generative UI transforms traditional analytics into an intelligent, visual, and highly engaging interface that understands and responds to your unique analytical queries.
This project reimagines what financial analytics could be if combined with Thesys GenUI:
- Comprehensive Financial Data - Access real-time and historical stock prices, cryptocurrency data, income statements, balance sheets, cash flow statements, forex, commodities, and economic indicators via Alpha Vantage
- Advanced LLM Analysis - Uses AI to analyze financial data, identify trends, and provide contextual insights through a conversational interface powered by Claude
- Generative UI Dashboards - Dynamic charts, filter bars, and analytics components created on-the-fly based on your queries using C1
- Interactive Visualizations - A responsive interface with adaptive filters and branching conversations that adapt to different types of financial analysis requests
Unlike traditional analytics platforms that show static charts or AI platforms that generate plain text, this project creates rich, visual, and interactive financial dashboards tailored to each analytical query.
- Frontend: Next.js 15 with App Router
- UI: Tailwind CSS and Thesys GenUI SDK
- Chat Shell: Crayon AI React components
- AI Integration: Thesys C1 SDK, Anthropic Claude
- Financial APIs: Alpha Vantage MCP for stocks, crypto, forex, commodities, and economic data
- Streaming: Real-time response streaming using Server-Sent Events
- Stock Analysis: Current prices, historical charts, technical indicators, and trend analysis
- Company Financials: Income statements, balance sheets, cash flow analysis, and earnings reports
- Cryptocurrency Data: Real-time crypto prices and historical performance
- Forex & Commodities: Currency exchange rates, oil, gold, and agricultural commodity tracking
- Economic Indicators: GDP, CPI, unemployment, treasury yields, and more
- Alpha Intelligence: News sentiment, earnings call transcripts, insider transactions, and top gainers/losers
- Dynamic charts and visualizations based on data type
- Interactive filter bars with dropdowns, multi-selects, and toggles
- Contextual analysis with structured page layouts
- Responsive layouts that adapt to query complexity
- Node.js (v20+)
- pnpm
- API keys for required services
-
Clone the repository:
git clone https://github.com/thesysdev/generativeui-analytics.git cd generativeui-analytics -
Install dependencies:
pnpm install
-
Set up environment variables:
cp .env.example .env
-
Add your API keys to the
.envfile:THESYS_API_KEY=[your_thesys_api_key] ALPHA_VANTAGE_API_KEY=[your_alpha_vantage_api_key]API Key Sources:
- Thesys API Key: Generate at Thesys Console
- Alpha Vantage API Key: Get your key at Alpha Vantage for stock, crypto, forex, and economic data
Run the development server:
pnpm devOpen http://localhost:3000 in your browser.
- User enters a financial analysis query
- The application sends the query to the Thesys C1 API
- C1 utilizes Alpha Vantage MCP tools to fetch relevant market data, company financials, and economic indicators
- C1 generates a dynamic analytics dashboard with a header, filter bar, and appropriate visualizations
- The response is streamed back to the client for a smooth user experience
- Users can refine results using interactive filters or follow-up questions
Try asking questions like:
- "Show me AAPL's price history for the last month"
- "Compare MSFT and GOOGL revenue"
- "What are TSLA's key financial metrics?"
- "Get the latest earnings report for NVDA"
- "Show AMZN's balance sheet"
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Thesys - Build GenUI Apps
- C1 Documentation - Learn how to use C1 and build AI apps
- Example Apps - Clone and explore more C1 example projects
- Alpha Vantage for comprehensive financial data APIs
- Next.js for the React framework