Automated testing platform for validating designs and web applications against Software Requirements Specification (SRS) documents.
- Google OAuth integration via Supabase
- Secure user sessions and profile management
- Personal dashboard for tracking tests
- Upload SRS documents (PDF, DOCX)
- AI-powered content extraction and analysis
- Secure cloud storage with Supabase
- Test Existing URLs - Validate Figma designs or live websites
- Generate & Test - AI creates websites from SRS requirements, deploys to Vercel, then tests
- Uses Groq LLM for code generation
- Creates responsive HTML/CSS/JavaScript websites
- Automatic GitHub repository creation
- One-click Vercel deployment
- Functional Testing - Core functionality validation
- UI/UX Testing - Design consistency and responsiveness
- Accessibility Testing - WCAG compliance and screen reader support
- Compatibility Testing - Cross-browser testing (Chrome, Firefox, Safari)
- Performance Testing - Load times and performance metrics
- Interactive test results dashboard
- Detailed test breakdowns by category
- Downloadable JSON reports
- Real-time test status updates
- Next.js - React framework with App Router
- TypeScript - Type-safe development
- Tailwind CSS - Utility-first styling
- shadcn/ui - Modern component library
- Supabase Auth - Authentication system
- Python Flask - REST API server
- Playwright - Browser automation
- Supabase - Database and storage
- PostgreSQL - Relational database
- Groq API - LLM for code generation
- GitHub API - Repository management
- Vercel API - Website deployment
- Google OAuth - User authentication
- Node.js 18+ and npm
- Python 3.8+ and pip
- Supabase account
- Google OAuth credentials
- Groq API key
- GitHub Personal Access Token
- Vercel Personal Access Token
git clone https://github.com/P1Manav/FigmaGuard.git
cd figmaguard
yarn install
.env.local
NEXT_PUBLIC_BACKEND_URL=http://localhost:5000/
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
cd backend
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
playwright install
.env
SUPABASE_URL=your_supabase_url
SUPABASE_KEY=your_supabase_service_role_key
GROQ_API_KEY=your_groq_api_key
GEMINI_API_KEY=your_gemini_api_key
FLASK_ENV=development
FLASK_DEBUG=True
RENDER_URL=http://localhost:5000/ #optional for deployment on render
- Create a Supabase project
- Run the SQL schema from
backend/supabase_schema.sql - Set up Google OAuth in Supabase Auth settings
- Create storage buckets:
srs-documents,test-reports,generated-sites
cd backend
python server.py
npm run dev
Visit http://localhost:3000 π
- Sign in with your Google account
- Upload your SRS document (PDF/DOCX)
- Enter the Figma design or website URL
- Select test types to run
- Click "Run Test" and wait for results
- View detailed results in your dashboard
- Sign in and upload your SRS document
- Choose "Generate Website from SRS"
- Provide generation arguments (e.g., "Create a modern blog with dark theme")
- Enter your GitHub and Vercel API tokens
- Select test types and click "Generate & Test Website"
- Monitor progress as the system:
- Generates HTML/CSS/JS code using AI
- Creates a GitHub repository
- Deploys to Vercel
- Runs comprehensive tests
- Review results and access your live website
- Form validation and submission
- Navigation functionality
- Interactive elements
- Core user workflows
- Responsive design validation
- Typography consistency
- Visual element placement
- Mobile compatibility
- Alt text for images
- Heading hierarchy
- Form label associations
- Color contrast ratios
- Keyboard navigation
- Cross-browser functionality
- Basic loading across Chrome, Firefox, Safari
- JavaScript execution consistency
- Page load times
- First Contentful Paint (FCP)
- Network request optimization
- Resource loading efficiency
The application uses PostgreSQL via Supabase with the following main tables:
user_profiles- Extended user informationuser_integrations- API tokens and integrationstest_requests- Test execution requeststest_reports- Test results and statustest_execution_logs- Detailed test logs
See backend/supabase_schema.sql for the complete schema.
- Fork the repository
- Create a feature branch (`git checkout -b feature/amazing-feature`)
- Commit your changes (`git commit -m 'Add amazing feature'`)
- Push to the branch (`git push origin feature/amazing-feature`)
- Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Check the Issues page
- Review the console logs for error details
- Ensure all environment variables are properly set
Prajapati Manav
- LinkedIn: Prajapati Manav
- Email: maxprajapati606@gmail.com
- GitHub: P1Manav
Give a βοΈ if you liked this project !
Built with β€οΈ using Next.js, Python, and AI
Β© 2025 FigmaGuard. All rights reserved.