Mayura is an intelligent AI routing platform that solves the problem of choosing the right AI model for your specific task. Instead of juggling multiple AI services and guessing which one to use, Mayura automatically analyzes your prompt and routes it to the most suitable AI model.
- Choice Paralysis: With dozens of AI models available, which one should you use?
- Context Switching: Constantly switching between different AI platforms is inefficient
- Suboptimal Results: Using the wrong model for your task leads to poor outcomes
- Complexity: Managing multiple API keys, rate limits, and pricing models
Mayura provides a single interface to access the best AI models through intelligent routing:
- Automatic prompt analysis and classification
- Context-aware model recommendation
- Google: Gemini 2.5 Pro, Gemini 1.5 Pro
- Meta: Llama 3.3 70B, Llama 3.1 405B
- DeepSeek: DeepSeek R1, DeepSeek V3
- ...can be extended to more models
Mayura follows a microservices architecture designed for scalability and reliability:
| Component | Technology | Purpose |
|---|---|---|
| Infrastructure | Docker, AWS(Storage), GCP(AI Models, Auth), Azure(Compute) | Deployment and scaling |
| Frontend | Next.js 14, React 18, TypeScript | Modern web interface |
| Gateway | Go 1.23, Gin, Firebase | API gateway and routing |
| Classifier | Python 3.9+, FastAPI, Transformers | AI model classification |
| Payment | Go 1.23, LemonSqueezy, DynamoDB | Subscription management |
| Cache | Redis 7 | High-performance caching |
| Database | DynamoDB, Firebase Firestore | Data persistence |
- Node.js 18+ and npm/pnpm
- Go 1.23+
- Python 3.9+
- Docker and Docker Compose
-
Clone the repository
git clone --recurse-submodules https://github.com/mayuraai/mayura.git cd mayura -
Set up environment variables
# Frontend cp frontend/.env.example frontend/.env # Backend services cp backend/gateway/.env.example backend/gateway/.env cp backend/payment/.env.example backend/payment/.env
Obtain your Firebase service account JSON file from the Firebase console. Copy this file to both
backend/gatewayandbackend/paymentdirectories, and rename it tofirebase_env.jsonin each location. -
Install dependencies for frontend
# Frontend cd frontend npm install # or pnpm install
-
Start backend services with Docker
cd backend docker-compose up -d -
Start the frontend
cd frontend npm run dev -
Access the application
- Frontend: http://localhost:3000
- Gateway API: http://localhost:8080
- Classifier API: http://localhost:8000
- JWT Authentication with refresh tokens
- Rate limiting per user and tier
- CORS protection with allowlist
- Request/response logging
This project is licensed under the MIT License - see the LICENSE file for details.
Built with ❤️ by the Mayura Team
⭐ If you found this helpful, please give us a star!
