Experience the power of intelligent financial 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 layouts, 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, and cash flow statements
- Advanced LLM Analysis - Uses AI to analyze financial data, identify trends, and provide contextual insights with market context from web search
- Generative UI Dashboards - Dynamic charts, graphs, and analytics components created on-the-fly based on your queries using C1
- Interactive Visualizations - A responsive interface that adapts 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, SASS, and Thesys GenUI SDK
- AI Integration: Thesys C1 SDK, Anthropic Claude
- Financial APIs: Financial Datasets API for stocks/crypto, Exa API for web search
- Streaming: Real-time response streaming using Server-Sent Events
- Stock Analysis: Current prices, historical charts, and trend analysis
- Cryptocurrency Data: Real-time crypto prices and historical performance
- Company Financials: Income statements, balance sheets, and cash flow analysis
- Market News: Latest company news and market insights
- Web Context: Real-time web search to provide market context and explanations
- Dynamic charts and visualizations based on data type
- Interactive financial dashboards
- Contextual analysis with market insights
- Responsive layouts that adapt to query complexity
- Node.js (v20+)
- NPM
- API keys for required services
-
Clone the repository:
git clone https://github.com/thesysdev/analytics-with-c1.git cd analytics-with-c1 -
Install dependencies:
npm i
-
Set up environment variables by creating a
.envfile:touch .env
-
Add your API keys to the
.envfile:THESYS_API_KEY=[your_thesys_api_key] FINANCIAL_DATASETS_API_KEY=[your_financial_datasets_api_key] EXA_API_KEY=[your_exa_api_key] ANTHROPIC_KEY=[your_anthropic_api_key]API Key Sources:
- Thesys API Key: Generate at Thesys Console
- Financial Datasets API: Get your key at Financial Datasets for stock and crypto data
- Exa API: Sign up at Exa for web search capabilities
- Anthropic API: Get your key at Anthropic Console for related queries
Run the development server:
npm run 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 financial tools to fetch relevant market data, company financials, and news
- Web search provides additional market context and explanations
- C1 generates a dynamic analytics dashboard with appropriate visualizations
- The response is streamed back to the client for a smooth user experience
Try asking questions like:
- "Show me Apple's stock performance over the last year"
- "Compare Tesla and Ford's financial health"
- "What's happening with Bitcoin today?"
- "Analyze Microsoft's cash flow trends"
- "Show me the top performing tech stocks this quarter"
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
- Financial Datasets for comprehensive financial data APIs
- Exa for intelligent web search capabilities
- Next.js for the React framework