Your AI-powered finance coach for smarter portfolio investing. WalletWise helps new investors understand their portfolios, analyze individual stocks, and make informed investment decisions with AI insights backed by reliable sources. WalletWise combines portfolio insights, AI-powered guidance, and live market data, so you can dig into the nuances of your investments, ask questions, and learn as you go.
WalletWise is a comprehensive financial analysis platform that combines:
- Portfolio Intelligence: Upload your holdings for personalized analysis
- AI Finance Coach: Interactive Q&A for investment education
- Real-Time Market Data: Live charts and company fundamentals
- AI-Powered Insights: Movement explanations, risk analysis, and recommendations
- Accurate Citations: AI analysis comes with inline superscript links to sources, no fake references
Perfect for new investors who want to understand their investments better and grow their financial knowledge.
- CSV Upload: Simple ticker + shares format for instant portfolio analysis
- Portfolio Overview: Total value, daily changes, asset allocation visualization
- Diversification Analysis: AI recommendations for portfolio improvement
- Investor Personality: Understand your investment style and risk profile
- Interactive Q&A: Ask anything about investing, your portfolio, or market concepts
- Reliable Sources: All AI responses include proper citations and source links
- Personalized Guidance: Context-aware responses based on your actual holdings
- Educational Focus: Learn while you analyze
- Company Descriptions: Understand what each company actually does
- Real-Time Charts: 30-day price history with interactive data points
- Movement Explanations: AI analysis of why stocks moved up or down
- Risk Highlights: Identify potential concerns with each holding
- Similar Stocks: Discover comparable investment opportunities
- Frontend: Next.js 14 with TypeScript and Tailwind CSS
- Data Visualization: Recharts for interactive charts
- Financial Data: Yahoo Finance library for real-time market data
- AI Analysis: Perplexity Sonar API for intelligent insights with citations
- Fonts: Montserrat for modern, professional typography
- Icons: Lucide React for consistent iconography
- Node.js v18 or higher
- npm v9 or higher
-
Clone the repository
git clone https://github.com/yourusername/walletwise.git cd walletwise -
Install dependencies
npm install
-
Set up environment variables
cp .env.example .env.local
Add your Perplexity API key to
.env.local:SONAR_KEY=your_api_key_here -
Start the development server
npm run dev
-
Open your browser Navigate to
http://localhost:3000
WalletWise uses a simple 2-column CSV format:
ticker,shares
AAPL,10
MSFT,25
GOOGL,5
TSLA,15For a sample CSV portfolio, see examples/sample-portfolio.csv.
Requirements:
ticker: Stock symbol (e.g., AAPL, MSFT)shares: Number of shares owned (whole or decimal numbers)
- Upload CSV: Drag and drop your portfolio file
- Get Insights: View allocation, performance, and AI analysis
- Ask Questions: Use the AI coach for personalized guidance
- Explore Holdings: Click any stock for detailed individual analysis
- Enter Ticker: Type any stock symbol (AAPL, TSLA, etc.)
- View Analysis: Company description, charts, fundamentals financial metrics
- Understand Movements: AI explanations for price changes
- Assess Risks: Review potential concerns and challenges
- Portfolio Analysis:
/api/portfolio- Basic portfolio data - Portfolio AI Analysis:
/api/portfolio/ai-analysis- AI insights and recommendations - Stock Data:
/api/ticker/[symbol]- Real-time stock data and fundamentals - Stock AI Analysis:
/api/ticker/[symbol]/ai-analysis- AI movement and risk analysis - Q&A Coach:
/api/qna- Interactive finance coaching
Two-Phase Loading System:
- Phase 1: Fast loading of essential data (charts, fundamentals, portfolio overview)
- Phase 2: Background AI processing for insights, explanations, and recommendations
Benefits:
- Users see core data in 1-2 seconds
- AI analysis loads progressively
- Graceful fallbacks if AI services are slow
🔮 Future Enhancements:
- User authentication and saved portfolios
- Wealthsimple import integration
- Historical portfolio tracking
- Advanced charting options
- Social sharing features
- PWA mobile app
- Fork the repository
- Create a feature branch (
git checkout -b feature/cool-feature) - Commit your changes (
git commit -m 'Add cool feature') - Push to the branch (
git push origin feature/cool-feature) - Open a Pull Request
WalletWise is an educational tool designed to help users understand investing concepts and analyze their portfolios. It is not financial advice. All AI-generated insights are for educational purposes only and should not be used as the sole basis for investment decisions. Always consult with qualified financial advisors before making investment choices.
This project is licensed under the MIT License - see the LICENSE file for details.
A tool I wish I had, built to help new investors understand their money better.



