Convert natural language questions into PostgreSQL queries with a heavy-duty, premium AI-powered interface.
- Intuitive NL to SQL: Powered by Gemini 2.5 Flash for high accuracy.
- Midnight Sapphire UI: Ultra-premium dark theme with advanced glassmorphism.
- Live Database Connection: Automatically reflects your current schema.
- Dynamic Schema Creator: Create tables with support for TEXT, INTEGER, FLOAT, TIMESTAMP, and DATE.
- Execution Safety: Strict read-only validation blocks destructive commands.
- Frontend: React 18, Vite, TypeScript, Custom CSS (Midnight theme).
- Backend: FastAPI, PostgreSQL, Google GenAI SDK.
- Orchestration: Docker & Docker Compose.
- API Key: Get a Gemini API key from Google AI Studio.
- Environment: Add your keys and DB config to
backend/.env. - Run:
docker-compose up --build
Access the app at: http://localhost:3000
All generated SQL queries are parsed for restricted keywords (DROP, DELETE, etc.) before execution to ensure a read-only experience for the AI.