A powerful platform for verifying health influencers' claims using AI-powered analysis. This tool helps bring clarity and credibility to online health information by automatically analyzing content from health influencers and verifying their claims against trusted scientific journals.
-
Influencer Discovery and Analysis
- Automated influencer profile analysis
- Trust score calculation based on claim accuracy
- Follower and revenue metrics tracking
-
Health Claims Extraction and Categorization
- Natural language processing for claim extraction
- Automatic categorization (Nutrition, Exercise, Mental Health, etc.)
- Historical claim tracking and analysis
-
Scientific Verification Against Trusted Journals
- Integration with major scientific databases
- Real-time claim verification
- Evidence-based scoring system
-
Trust Score Generation
- Weighted scoring algorithm
- Multiple verification factors
- Transparent scoring breakdown
-
Interactive Dashboard with Leaderboard
- Real-time trust score updates
- Filtering and sorting capabilities
- Detailed performance metrics
-
Detailed Influencer Profiles
- Comprehensive claim history
- Scientific reference tracking
- Revenue and impact analysis
- React 18 with TypeScript
- Tailwind CSS for styling
- React Router for navigation
- Axios for API requests
- Headless UI components
- Node.js with Express
- TypeScript for type safety
- MongoDB with Mongoose
- Rate limiting and security middleware
- Perplexity AI integration
- Node.js 18 or higher
- MongoDB Atlas account
- Perplexity AI API key
-
Clone the repository
git clone https://github.com/P3st83/InfluencerVerifier.git cd InfluencerVerifier -
Install dependencies:
npm run install-all
-
Set up environment variables:
- Copy
.env.exampleto.envin the backend directory:cp backend/.env.example backend/.env
- Update the
.envfile with your credentials:PERPLEXITY_API_KEY: Get from Perplexity AIMONGODB_URI: Get from MongoDB Atlas
⚠️ SECURITY NOTE:- Never commit the
.envfile to version control - Keep your API keys and database credentials secure
- Regularly rotate your API keys and credentials
- Use environment-specific
.envfiles for different deployments
- Copy
-
Start the development servers:
npm run dev
InfluencerVerifier/
├── frontend/ # React frontend application
│ ├── src/
│ │ ├── components/ # Reusable UI components
│ │ ├── pages/ # Page components
│ │ ├── App.tsx # Main application component
│ │ └── index.css # Global styles
│ ├── package.json
│ └── vite.config.ts # Vite configuration
├── backend/ # Node.js backend server
│ ├── src/
│ │ ├── services/ # Business logic
│ │ ├── models/ # Database models
│ │ ├── routes/ # API routes
│ │ └── index.ts # Server entry point
│ ├── package.json
│ └── tsconfig.json # TypeScript configuration
└── package.json # Root package.json
main: Production-ready codedevelop: Main development branchfeature/*: New featuresbugfix/*: Bug fixesrelease/*: Release preparation
-
mainbranch:- Require pull request reviews
- Require status checks to pass
- No direct pushes
- No force pushes
-
developbranch:- Require one reviewer
- Require status checks
- Allow force pushes with lease
-
Review for:
- Code quality and style
- Security considerations
- Performance implications
- Test coverage
-
Pull Request Template:
## Description [Description of changes] ## Type of Change - [ ] Bug fix - [ ] New feature - [ ] Breaking change - [ ] Documentation update ## Testing - [ ] Unit tests - [ ] Integration tests - [ ] Manual testing ## Security Considerations [Security implications]
- Returns list of analyzed influencers
- Sorted by trust score
- Includes basic metrics
- Analyzes a specific influencer
- Parameters:
{ influencerName: string; timeRange: string; claimsToAnalyze: number; }
- Verifies health claims against scientific sources
- Parameters:
{ claims: string[]; journals: string[]; }
-
Environment Variables:
- Use
.envfiles for configuration - Never commit sensitive data
- Use different credentials per environment
- Use
-
API Keys:
- Keep API keys secure and private
- Use environment variables
- Implement rate limiting
- Regular key rotation
-
Database:
- Strong passwords
- IP whitelisting
- Regular security audits
- Encrypted connections
-
Frontend:
- Input sanitization
- XSS prevention
- CSRF protection
- Secure cookie handling
- Fork the repository
- Create your 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
- Follow the existing code style
- Add tests for new features
- Update documentation
- Keep commits atomic
- Use meaningful commit messages
This project is licensed under the MIT License - see the LICENSE file for details.
- Perplexity AI for AI capabilities
- MongoDB Atlas for database hosting
- Tailwind CSS for styling
- React for frontend framework