A spiritual AI wisdom platform featuring Bring Your Own Key (BYOK) architecture, Firebase authentication, and invite-only access control.
- Firebase Authentication with Google Sign-in
- Invite-only whitelist system using Firestore
- Admin dashboard for user management
- Secure Firestore rules with admin-only access controls
- Users provide their own AI API keys (stored in localStorage)
- Support for multiple AI providers:
- Gemini (Google Generative AI)
- Groq (Fast inference)
- OpenRouter (Multiple models)
- No server-side API key storage required
- Vedic-inspired design with spiritual color themes
- Fully responsive chat interface
- Real-time API health monitoring
- Beautiful message bubbles with optimal spacing
- Smart user avatars with fallback to initials
- User whitelist management
- API health monitoring
- Payment plan configuration
- Pro feature management
- Real-time system overview
- Node.js 18+ and npm
- Firebase project with Firestore enabled
- AI API keys from supported providers (Gemini, Groq, OpenRouter)
git clone <your-repo-url>
cd vedanta-byok-integrated
npm installCreate a .env file with your Firebase config:
VITE_FIREBASE_API_KEY=your_api_key_here
VITE_FIREBASE_AUTH_DOMAIN=your_project.firebaseapp.com
VITE_FIREBASE_PROJECT_ID=your_project_id
VITE_FIREBASE_STORAGE_BUCKET=your_project.appspot.com
VITE_FIREBASE_MESSAGING_SENDER_ID=123456789
VITE_FIREBASE_APP_ID=1:123456789:web:abcdef123456npm run firebase:deploy:rules# Add yourself to the whitelist as admin
node add-to-whitelist.mjs your-email@example.com truenpm run dev# If using GitHub
git add .
git commit -m "Initial commit - Vedanta AI Platform"
git branch -M main
git remote add origin https://github.com/yourusername/vedanta-ai-platform.git
git push -u origin main- Go to Netlify and sign in
- Click "New site from Git"
- Choose your Git provider and repository
- Configure build settings:
- Build command:
npm run build - Publish directory:
dist
- Build command:
In Netlify dashboard β Site settings β Environment variables, add:
VITE_FIREBASE_API_KEY=your_api_key_here
VITE_FIREBASE_AUTH_DOMAIN=your_project.firebaseapp.com
VITE_FIREBASE_PROJECT_ID=your_project_id
VITE_FIREBASE_STORAGE_BUCKET=your_project.appspot.com
VITE_FIREBASE_MESSAGING_SENDER_ID=123456789
VITE_FIREBASE_APP_ID=1:123456789:web:abcdef123456
Click "Deploy site" - your platform will be live in minutes! π
- Sign in with Google account
- Wait for whitelist approval (contact admin)
- Add API keys in settings for your preferred AI providers
- Start chatting with Vedanta AI wisdom!
- Access admin dashboard via β‘ button in header
- Manage whitelist - add/remove users
- Monitor API health across all providers
- Configure features and pricing plans
- React 18 with TypeScript
- Vite for fast development and building
- Tailwind CSS with custom Vedic theme
- Firebase SDK for authentication and Firestore
- Google Generative AI (Gemini)
- Groq SDK for fast inference
- OpenRouter API for multiple model access
- BYOK pattern - user-provided API keys
- Firebase Authentication with Google provider
- Firestore security rules with admin controls
- Whitelist-based access control
- Client-side API key storage (localStorage)
vedanta-byok-integrated/
βββ components/ # React components
β βββ AdminDashboard.tsx
β βββ ChatWindow.tsx
β βββ MessageBubble.tsx
β βββ ...
βββ services/ # AI and Firebase services
β βββ firebaseService.ts
β βββ vedantaAIService.ts
β βββ aiService.ts
β βββ geminiService.ts
βββ utils/ # Utility functions
βββ types.ts # TypeScript definitions
βββ constants.ts # App constants
βββ firestore.rules # Firestore security rules
βββ netlify.toml # Netlify configuration
βββ package.json
npm run dev # Start development server
npm run build # Build for production
npm run preview # Preview production build
npm run firebase:deploy:rules # Deploy Firestore rules- No server-side API key storage - users provide their own keys
- Invite-only access with admin-controlled whitelist
- Secure Firestore rules preventing unauthorized access
- Firebase Authentication with Google Sign-in only
- Local storage for user preferences and API keys
- Create Firebase project at Firebase Console
- Enable Authentication with Google provider
- Enable Firestore database
- Deploy security rules from
firestore.rules - Add admin users to whitelist collection
For whitelist access requests or technical support:
- Email: satish@skids.health
- Admin: Access admin dashboard after approval
- Fork the repository
- Create feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open Pull Request
This project is private and proprietary. All rights reserved.
Built with ποΈ spiritual wisdom and modern technology
For detailed deployment instructions, see DEPLOYMENT_GUIDE.md