A beautiful, modern WhatsApp bot management dashboard with glassmorphism design and advanced features.
- 🎨 Modern UI: Colorful gradients, glassmorphism effects, and smooth animations
- 📱 WhatsApp Integration: Pair/unpair WhatsApp numbers with your bot
- 🔐 Secure Pairing: Display pairing codes with copy-to-clipboard functionality
- 📊 Session Management: View and manage all active bot sessions
- 🗑️ Easy Removal: One-click session removal with confirmation
- 📱 Mobile Responsive: Works perfectly on all devices
- ⚡ Real-time Updates: Auto-refresh sessions every 30 seconds
- 🌐 Vercel Ready: Optimized for Vercel deployment
git clone <your-repo-url>
cd kaisen-bot-dashboardnpm install# Install Vercel CLI
npm install -g vercel
# Deploy
vercel
# For production deployment
vercel --prod- Go to vercel.com
- Click "New Project"
- Import your GitHub repository
- Vercel will automatically detect the configuration
- Click "Deploy"
├── api/
│ └── index.js # Node.js API server with proxy
├── public/
│ ├── index.html # Main dashboard page
│ ├── styles.css # Glassmorphism styling
│ └── script.js # Frontend JavaScript
├── vercel.json # Vercel deployment config
├── package.json # Node.js dependencies
└── README.md # This file
The dashboard automatically proxies requests to your bot API at:
http://mainline.proxy.rlwy.net:35640
GET /api/pair?number=XXXXXXXXXX- Pair new WhatsApp numberGET /api/logout?number=XXXXXXXXXX- Remove/logout WhatsApp sessionGET /api/sessions- Get all active sessionsGET /api/health- Health check
# Install dependencies
npm install
# Start development server
npm run dev
# The dashboard will be available at http://localhost:3000- Colorful Gradients: Pink, blue, yellow gradient backgrounds
- Glass Effects: Backdrop blur and transparency
- Orbitron Font: Futuristic typography for headers
- Space Grotesk: Clean, modern body font
- Smooth Animations: Hover effects and transitions
- Mobile First: Responsive design for all screen sizes
- CORS protection
- Request rate limiting (100 requests per 15 minutes)
- Input validation and sanitization
- Error handling with user-friendly messages
- Secure proxy to external API
The dashboard is fully responsive and provides an excellent experience on:
- 📱 Mobile phones (iOS/Android)
- 📟 Tablets
- 💻 Desktop computers
- 🖥️ Large displays
Create a .env file for local development:
NODE_ENV=development
PORT=3000
API_BASE_URL=http://mainline.proxy.rlwy.net:35640- CORS Errors: The built-in proxy handles CORS automatically
- API Timeouts: Requests timeout after 30 seconds
- Session Not Loading: Check if your bot API is running
- Pairing Code Not Showing: Verify the API response format
Check browser console and server logs for detailed error information.
- ⚡ Fast Loading: Optimized static assets
- 🔄 Auto-refresh: Sessions update every 30 seconds
- 💾 Memory Efficient: Lightweight Node.js server
- 📡 Low Latency: Direct API proxy without additional layers
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
MIT License - Feel free to use this in your own projects!
Once deployed, your dashboard will be available at:
- Vercel URL:
https://your-project.vercel.app - Custom Domain: Configure in Vercel dashboard
For issues or questions, please open an issue on GitHub or contact the development team.
Made with ❤️ by Kaisen-MD Team