Configuration Guide
Iris uses environment variables to configure application behavior and integrate with third-party APIs. This guide covers all available configuration options.Environment File Setup
Iris loads configuration from a.env file in the project root. Start by copying the example template:
Core Configuration
Logging
Control application logging verbosity:0- Disabled (no console output)1- Basic (errors and important events)2- Debug (verbose logging for development)
The
NEXT_PUBLIC_ prefix makes this variable available in both server and client code. Use 2 during development to troubleshoot issues.NEXT_PUBLIC_LOG_LEVEL setting and formats output with timestamps and context.
Node Environment
development- Enables hot reload, verbose errors, and debugging toolsproduction- Optimizes performance, minimizes output, disables source maps
Always set
NODE_ENV=production when deploying to production servers for optimal performance and security.Image Search Configuration
Image search requires temporary hosting of uploaded images for reverse search queries.ImgBB API Key
Required for: Image upload and reverse search functionalityGet API Key
- Visit https://api.imgbb.com/
- Sign up for a free account
- Copy your API key from the dashboard
Maximum Image Size
Default: 32000 (32 MB)
Range: 1-32000 (ImgBB free tier limit) This setting controls the maximum file size for image uploads. Images larger than this limit are rejected before upload. How it’s used:
Image Expiry Time
Default: 600 (10 minutes)
Range: 60-15552000 (1 minute to 180 days) Images uploaded to ImgBB automatically delete after this duration. This minimizes privacy risks by ensuring temporary storage. Privacy Impact:
- Shorter expiry (60-300s) = Better privacy, may timeout for slow searches
- Longer expiry (600-3600s) = More time for reverse search, longer exposure
The default 10 minutes balances privacy with sufficient time for reverse image searches across multiple engines.
Email Verification Configuration
Email verification uses IPQualityScore for reputation checking and breach detection.IPQS API Key
Required for: Email verification and analysisCreate Account
- Visit https://www.ipqualityscore.com/
- Sign up for a free account (5,000 lookups/month)
- Verify your email address
- Email format validation
- Disposable email detection
- Known breach database lookups
- Spam/fraud risk scoring
- Domain reputation analysis
- MX record validation
verifyEmail function handles IPQS API calls, error handling, and response parsing.
Company Search Configuration
Company search integrates with UK Companies House for British company data.Companies House API Key
Required for: UK company lookupsCreate Developer Account
- Visit https://developer.company-information.service.gov.uk/
- Click “Sign in / Register”
- Complete registration
Register Application
- Log in to your developer account
- Navigate to “Your applications”
- Click “Create an application”
- Select “REST API”
- Provide application details
- SEC EDGAR (US) - No key required
- GLEIF LEI database - No key required
- Basic company name search - Limited results
Companies House API is free for non-commercial use with rate limits of 600 requests per 5 minutes.
API-Free Features
Many Iris features work without any API keys:Domain Analysis
Fully functional without API keys:- DNS resolution (A, AAAA, MX, TXT, NS, CNAME, SOA)
- WHOIS lookups
- SSL certificate information
- Security header analysis
- Technology detection
- HTTP response analysis
Username Search
Uses public OSINT databases:- WhatsMyName (600+ sites)
- Sherlock (300+ sites)
- Maigret (2500+ sites)
Company Search (Partial)
- SEC EDGAR - US company filings (no key)
- GLEIF - Global LEI database (no key)
- Companies House - Requires key for detailed UK data
Configuration Best Practices
Security
- Never commit
.envto git - Use different keys for dev/prod
- Rotate keys periodically
- Store secrets in vault for production
Performance
- Set
NODE_ENV=productionin prod - Disable debug logging (
LOG_LEVEL=0) - Use shorter image expiry for faster cleanup
- Monitor API rate limits
Privacy
- Use minimum image expiry needed
- Self-host for complete control
- Review third-party API privacy policies
- Consider VPN for sensitive searches
Reliability
- Keep API keys valid and funded
- Set up monitoring for API failures
- Have backup keys for critical services
- Test configuration after changes
Environment Variable Reference
Complete.env.example file:
Validating Configuration
After configuring your.env file, verify it works:
Test API-Dependent Features
- Upload an image (tests
IMGBB_API_KEY) - Verify an email (tests
IPQS_API_KEY) - Search UK company (tests
COMPANIESHOUSE_API_KEY)
Production Deployment
For production environments: Recommended Production Setup:When deploying to platforms like Vercel, Railway, or AWS, use their built-in secrets management instead of
.env files.Troubleshooting
API Key Not Recognized
- Ensure no spaces around
=in.env - Restart dev server after changes
- Verify key is correct (copy-paste errors)
- Check API provider dashboard for key status
Image Upload Fails
Email Verification Returns Errors
- Verify IPQS account is active
- Check remaining API credits
- Ensure key has email verification permissions
- Test with known valid email addresses
Environment Variables Not Loading
Next Steps
API Reference
Explore all API endpoints and parameters
Username Search
Search for usernames across platforms
Self-Hosting Guide
Deploy Iris to production environments
Privacy & Security
Learn about privacy and security features