An AI-powered image authenticity detection tool that helps identify potentially manipulated or AI-generated images using advanced machine learning algorithms.
- Advanced Analysis: Leverages Hive AI's state-of-the-art machine learning models
- Multi-Format Support: Analyzes JPEG, PNG, WebP, and GIF images
- Confidence Scoring: Provides detailed confidence percentages for detection results
- Real-time Processing: Fast analysis with optimized image processing pipeline
- Material Design: Clean, intuitive interface built with Material-UI
- Responsive Layout: Works seamlessly on desktop, tablet, and mobile devices
- Dark/Light Themes: Customizable theme system with automatic detection
- Accessibility: WCAG 2.1 AA compliant for inclusive user experience
- Keyboard Navigation: Full functionality accessible via keyboard shortcuts
- Screen Reader Support: Comprehensive ARIA labels and semantic HTML
- Skip Navigation: Quick access to main content areas
- Focus Management: Enhanced focus indicators and logical tab order
- Reduced Motion: Respects user preferences for reduced animations
- High Contrast: Support for high contrast mode and customizable themes
- Touch Targets: Minimum 44px touch targets for mobile accessibility
- Batch Processing: Analyze multiple images simultaneously
- Detailed Reports: Export analysis results with confidence metrics
- Image Management: Organize, download, and share results
- Processing History: Track and review previous analyses
- Client-Side Processing: Images processed locally when possible
- Secure API Integration: Encrypted communication with detection services
- No Data Storage: Images are not permanently stored on servers
- Rate Limiting: Protection against abuse with intelligent request throttling
- Node.js 18.0 or higher
- npm 9.0 or higher (or yarn 1.22 or higher)
- Hive AI API Key (get yours at thehive.ai)
-
Clone the repository
git clone https://github.com/your-username/fake-checker.git cd fake-checker -
Install dependencies
npm install # or yarn install -
Configure environment variables
cp .env.example .env.local
-
Set up your API key
Edit
.env.localand add your Hive AI API key:VITE_HIVE_API_KEY=your_actual_api_key_here
-
Start the development server
npm run dev # or yarn dev -
Open your browser
Navigate to http://localhost:5173
-
Upload Images
- Drag and drop images onto the upload area
- Or click to browse and select files
- Supports multiple file selection
-
View Results
- Analysis results appear with confidence percentages
- Green indicators suggest authentic images
- Red indicators suggest potential manipulation
- Detailed breakdowns available for each image
-
Manage Results
- Download original or processed images
- Share results via social media or direct links
- Export detailed analysis reports
- Delete unwanted results
# Upload multiple images at once
- Select up to 10 images (configurable)
- View progress for each analysis
- Compare results across images# Access theme settings via the settings page
- Choose between light and dark modes
- Automatic system theme detection
- Customize accent colors// Example API usage (for developers)
import { aiDetectionService } from './services/aiDetectionService';
const result = await aiDetectionService.analyzeImage(file, {
includeDetails: true,
timeout: 30000
});fake-checker/
βββ src/
β βββ components/ # Reusable React components
β β βββ ErrorBoundary/ # Error handling component
β β βββ Header/ # Navigation header
β β βββ ImageGrid/ # Results display grid
β β βββ ThemeDemo/ # Theme preview component
β β βββ UploadArea/ # File upload interface
β βββ contexts/ # React context providers
β β βββ SearchContext.tsx
β β βββ SettingsContext.tsx
β β βββ ThemeContext.tsx
β βββ hooks/ # Custom React hooks
β β βββ useSearch.ts
β β βββ useSettings.ts
β β βββ useTheme.ts
β βββ pages/ # Main application pages
β β βββ AboutPage.tsx
β β βββ HelpPage.tsx
β β βββ HomePage.tsx
β β βββ SettingsPage.tsx
β βββ services/ # API and utility services
β β βββ aiDetectionService.ts
β β βββ errorHandler.ts
β β βββ imageProcessingService.ts
β β βββ storageService.ts
β βββ theme/ # Theme configuration
β βββ types/ # TypeScript type definitions
β βββ utils/ # Utility functions
βββ public/ # Static assets
βββ tests/ # Test files
βββ docs/ # Documentation
# Development
npm run dev # Start development server
npm run build # Build for production
npm run preview # Preview production build
npm run lint # Run ESLint
npm run lint:fix # Fix ESLint issues
# Testing
npm test # Run all tests
npm run test:watch # Run tests in watch mode
npm run test:coverage # Generate coverage report
npm run test:ui # Open Vitest UI
# Quality Assurance
npm run type-check # TypeScript type checking
npm run format # Format code with Prettier
npm run analyze # Bundle size analysis| Variable | Description | Default | Required |
|---|---|---|---|
VITE_HIVE_API_KEY |
Hive AI API key | - | β |
VITE_API_BASE_URL |
API base URL | https://api.thehive.ai/api/v2 |
β |
VITE_APP_TITLE |
Application title | Fake Checker |
β |
VITE_MAX_FILE_SIZE |
Max file size in bytes | 10485760 (10MB) |
β |
VITE_MAX_FILES |
Max files per batch | 10 |
β |
VITE_ENABLE_ANALYTICS |
Enable analytics | false |
β |
See .env.example for a complete list.
# Run all tests
npm test
# Run tests in watch mode
npm run test:watch
# Generate coverage report
npm run test:coverage
# Run specific test file
npm test src/components/Header/Header.test.tsx- Unit Tests: Individual components and utilities
- Integration Tests: Component interactions and workflows
- E2E Tests: Complete user journeys
- Accessibility Tests: WCAG compliance validation
- Statements: β₯ 90%
- Branches: β₯ 85%
- Functions: β₯ 90%
- Lines: β₯ 90%
# Create optimized production build
npm run build
# Preview the production build locally
npm run preview- Connect your GitHub repository
- Set build command:
npm run build - Set publish directory:
dist - Configure environment variables in Netlify dashboard
- Import project from GitHub
- Vercel auto-detects Vite configuration
- Add environment variables in project settings
# Deploy to GitHub Pages
npm run build
npm run deploy- Set
VITE_NODE_ENV=production - Configure real API keys
- Enable error reporting
- Set up monitoring
- Configure CDN
- Enable compression
We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create a feature branch
git checkout -b feature/amazing-feature
- Make your changes
- Add tests for new functionality
- Run the test suite
npm test npm run lint npm run type-check - Commit your changes
git commit -m 'Add amazing feature' - Push to your branch
git push origin feature/amazing-feature
- Open a Pull Request
- ESLint: Enforced code quality rules
- Prettier: Consistent code formatting
- TypeScript: Strict type checking
- Conventional Commits: Structured commit messages
The application integrates with Hive AI's detection services:
interface DetectionResult {
confidence: number; // 0.0 to 1.0
isAuthentic: boolean; // true if likely authentic
modelVersion: string; // AI model version used
processingTime: number; // Analysis duration (ms)
metadata: {
imageSize: number; // File size in bytes
dimensions: {
width: number;
height: number;
};
format: string; // Image format
};
}interface APIError {
code: string; // Error code
message: string; // Human-readable message
details?: any; // Additional error details
timestamp: string; // ISO timestamp
}Error: Invalid API key
Solution: Verify your VITE_HIVE_API_KEY in .env.localError: File too large
Solution: Check VITE_MAX_FILE_SIZE setting# Clear cache and reinstall
rm -rf node_modules package-lock.json
npm install
npm run build- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: support@fake-checker.com
This project is licensed under the MIT License - see the LICENSE file for details.
- Hive AI for providing advanced detection algorithms
- Material-UI for the beautiful component library
- React Team for the amazing framework
- Vite for the lightning-fast build tool
- Open Source Community for inspiration and contributions
- Live Demo: https://fake-checker.netlify.app
- Documentation: https://docs.fake-checker.com
- API Documentation: https://api.fake-checker.com/docs
- Support: https://support.fake-checker.com
Made with β€οΈ by Victor Williams