A real-time dashboard for tracking and comparing prices across different AI model providers (OpenAI, Anthropic, Google, Mistral).
- 📊 Real-time price tracking for major AI model providers
- 📈 Historical price trends and comparisons
- 🔔 Price change alerts and notifications
- 🔍 Search and filter capabilities
- 📱 Responsive design for all devices
- 🔒 Authentication system for admin access
- Node.js with Express
- TypeScript
- PostgreSQL
- JWT Authentication
- Winston Logger
- Next.js
- React
- TypeScript
- Chart.js
- Tailwind CSS
- Docker
- GitHub Actions for CI/CD
- Node.js 18+
- Node.js 18 or higher
- PostgreSQL 15 or higher
- npm or yarn
- Clone the repository:
git clone https://github.com/yourusername/ai-price-index.git
cd ai-price-index- Install dependencies:
# Backend
cd backend
npm install
# Frontend
cd ../frontend
npm install- Set up environment variables:
Backend (.env):
PORT=3000
DATABASE_URL=postgresql://user:password@localhost:5432/aipriceindex
JWT_SECRET=your_jwt_secret
OPENAI_API_KEY=your_openai_key
ANTHROPIC_API_KEY=your_anthropic_key
GOOGLE_API_KEY=your_google_key
MISTRAL_API_KEY=your_mistral_key
# Email notifications
SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_USER=your_email
SMTP_PASS=your_password
# Slack notifications
SLACK_TOKEN=your_slack_token
SLACK_CHANNEL=price-alertsFrontend (.env.local):
NEXT_PUBLIC_API_URL=http://localhost:3000/api- Start the backend:
cd backend
npm run dev- Start the frontend:
cd frontend
npm run devThe application will be available at:
- Frontend: http://localhost:3000
- Backend API: http://localhost:3000/api
- Build and run using Docker Compose:
docker-compose up --buildGET /api/prices/current- Get current prices for all modelsGET /api/prices/history- Get historical prices for a specific modelGET /api/prices/provider/:provider- Get prices for a specific provider
GET /api/alerts/recent- Get recent price change alertsPOST /api/alerts/subscribe- Subscribe to price alerts
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenAI API Documentation
- Anthropic API Documentation
- Google AI Documentation
- Mistral AI Documentation
Project Link: https://github.com/makalin/AIPriceIndex