Live at: https://SBConfig.com π
A secure, fast web application that generates production-ready Supabase self-hosting configuration files with proper secrets management and Docker Compose setup.
- π Cryptographically secure secret generation
 - π« JWT token creation with proper HMAC-SHA256 signing
 - π Complete configuration files (.env and docker-compose.yml)
 - π One-click VPS deployment with SCP automation to Hostinger
 - π Global edge deployment on Cloudflare Workers
 - π± Mobile responsive design with cyberpunk theme
 - β‘ Lightning fast performance (sub-50ms response times)
 - π Automated CI/CD with GitHub Actions
 - π§ͺ Staging environment for testing
 - π‘οΈ Complete security setup including firewall and SSL
 
Visit SBConfig.com to generate your configuration instantly, or use the staging environment at staging.sbconfig.com for testing.
# Clone the repository
git clone https://github.com/miskaone/supabase-configurator.git
cd supabase-configurator
# Navigate to workers directory
cd workers
# Install dependencies
npm install
# Start local development server
npm run dev
# Opens at http://localhost:8787- π Cloudflare Workers - Global edge computing platform
 - π Web Crypto API - Secure cryptographic operations
 - π¦ Zero dependencies - Self-contained application
 - π 275+ Edge locations - Worldwide distribution
 
- π Vanilla JavaScript - Monolithic Workers script (4,000+ lines)
 - π¨ Inline CSS - TRON-style cyberpunk theme with particle effects
 - π§ͺ GitHub Actions - Automated testing and deployment
 - π Lighthouse CI - Performance monitoring
 
Target Architecture: Hybrid Next.js Frontend + Cloudflare Workers Backend
βββββββββββββββββββββββ    API Calls    ββββββββββββββββββββββββ
β   Next.js Frontend  β βββββββββββββββ β Cloudflare Workers   β
β  (Cloudflare Pages) β                 β    (Backend API)     β
β                     β βββββββββββββββ β                      β
βββββββββββββββββββββββ    Responses    ββββββββββββββββββββββββ
Migration Benefits:
- β Type Safety with TypeScript
 - β Component-based architecture for maintainability
 - β Modern development experience with hot reload
 - β Better testing capabilities for components and utilities
 - β Easier feature additions (AI integration, user accounts)
 
Migration Status: Ready to begin - See PROJECT_STATUS.md
ENVIRONMENT- Current environment (production/staging)DOMAIN- Domain name for the deployment
- Project naming with validation
 - Custom domains for Supabase instance
 - Email configuration for admin notifications
 - Database passwords (auto-generated or custom)
 - JWT secrets with secure generation
 - Anonymous keys for public API access
 - Service role keys for administrative access
 
- Database configuration and credentials
 - JWT secrets and API keys
 - SMTP settings for email notifications
 - Storage backend configuration
 - Analytics and logging setup
 
- Complete Supabase stack (15+ services)
 - Health checks and dependency management
 - Volume mounts and network configuration
 - Resource limits and security settings
 
NEW: One-click deployment directly to your Hostinger VPS!
- Generate your Supabase configuration files
 - Click "Deploy to VPS" button on results page
 - Enter VPS details: IP, SSH credentials, domain (optional)
 - Watch real-time progress through 7 deployment steps
 - Access your instance immediately after completion
 
The automated deployment handles everything:
- π¦ System Updates - Updates Ubuntu/Debian packages
 - π³ Docker Installation - Installs Docker & Docker Compose
 - π Directory Setup - Creates volume directories with proper permissions
 - βοΈ Configuration - Uploads all config files (Kong, Vector, SQL scripts)
 - π‘οΈ Security - Configures UFW firewall with essential ports only
 - π Nginx Setup - Reverse proxy with automatic SSL (if domain provided)
 - π SSL Certificates - Let's Encrypt with auto-renewal
 - π Service Startup - Launches complete Supabase stack
 - β Health Checks - Verifies all services are running
 
- β Hostinger VPS (primary target)
 - β DigitalOcean Droplets
 - β Linode
 - β AWS EC2 (Ubuntu/Debian)
 - β Any Ubuntu/Debian VPS
 
After deployment completes:
- Studio Dashboard: 
https://yourdomain.comorhttp://vps-ip:3000 - API Endpoint: 
https://yourdomain.com/apiorhttp://vps-ip:8000 - Database: 
vps-ip:5432 
mainβ Production deployment tosbconfig.comstagingβ Staging deployment tostaging.sbconfig.com- Pull Requests β Temporary preview deployments
 
- Code changes pushed to GitHub
 - GitHub Actions runs tests and validation
 - Cloudflare Workers deployment
 - Health checks verify deployment
 - Lighthouse performance testing
 - Notifications on success/failure
 
- β HTTPS enforced with automatic SSL certificates
 - β Secure headers (HSTS, CSP, XSS Protection)
 - β CORS configured for safe cross-origin requests
 - β Input validation on client and server
 - β No data persistence - completely stateless
 - β Cryptographically strong secret generation
 - β DDoS protection via Cloudflare
 
- π Sub-50ms response times globally
 - π 99.9%+ uptime via Cloudflare infrastructure
 - β‘ Instant loading with edge caching
 - π± Mobile optimized responsive design
 - π Lighthouse Score: 90+ across all metrics
 
cd workers
npm test- Production: https://sbconfig.com/health
 - Staging: https://staging.sbconfig.com/health
 
Lighthouse CI runs automatically on production deployments and provides detailed performance reports.
Deployed across 275+ Cloudflare edge locations worldwide:
- πΊπΈ Americas: USA, Canada, Brazil, Mexico
 - πͺπΊ Europe: UK, Germany, France, Netherlands
 - π¦πΊ Asia-Pacific: Japan, Singapore, Australia, India
 - π Africa & Middle East: South Africa, UAE
 
- 100,000 requests/day - FREE
 - Sub-50ms response times - FREE
 - Global CDN distribution - FREE
 - SSL certificates - FREE
 - DDoS protection - FREE
 
Expected costs for typical usage: $0/month πΈ
- Fork the repository
 - Create a feature branch: 
git checkout -b feature/amazing-feature - Make your changes to the Workers code in 
/workers/ - Test locally: 
npm run dev - Commit changes: 
git commit -m 'Add amazing feature' - Push to branch: 
git push origin feature/amazing-feature - Create Pull Request - automatic staging deployment will be created
 
- β Keep it simple - Vanilla JS, no dependencies
 - β Test locally before pushing
 - β Write clear commit messages
 - β Update documentation for new features
 
- PROJECT STATUS - Current status and migration roadmap
 - GitHub Setup Guide - Complete deployment setup
 - Cloudflare Deployment - Workers deployment details
 - Production Deployment - Traditional server deployment
 
- Migration Plan - Detailed Next.js migration guide
 - Hybrid Architecture - Recommended approach
 - AI Integration Plan - Future AI-powered features
 
- π Bug reports: GitHub Issues
 - π‘ Feature requests: GitHub Discussions
 - π§ Contact: Create an issue for urgent matters
 
- Check the GitHub Setup Guide for common issues
 - Monitor health endpoints: 
/health - Review Cloudflare Analytics for performance metrics
 
MIT License - see the LICENSE file for details.
- Supabase team for the amazing open-source platform
 - Cloudflare for the incredible Workers platform
 - GitHub for Actions and hosting
 
Built with β€οΈ for the Supabase community
π Star this repository if you find it helpful!