Domain Forge Site
A comprehensive domain and email management platform built with 11ty, Cloudflare Pages, and Stripe integration.
๐ Products
ForgeScan
Free domain scanning tool that checks DNS, SSL, and email configuration.
InboxGuard
Email Deliverability Report (ยฃ19 one-time)
- Comprehensive analysis of SPF, DKIM, DMARC, and TLS configuration
- Provider-specific implementation guides for major email providers
- Hosting-specific DNS instructions for Cloudflare, GoDaddy, etc.
- Priority-ordered fixes with step-by-step actions
- Verification commands to test each configuration
- Professional PDF reports with detailed findings and recommendations
DomainWatch
NEW: Domain Expiry & Health Monitoring (ยฃ7.99/month or ยฃ49/year)
- Daily monitoring of domain expiry dates
- SSL certificate expiry alerts
- MX/NS record presence checking
- DNS change detection
- Proactive email alerts before issues occur
- Integration with ForgeFix for resolution
ForgeFix
Professional domain setup and email configuration service.
ForgeMigrate
Domain and email migration assistance.
ForgeAcademy
Educational content about domains and email setup.
๐๏ธ Architecture
Frontend
- 11ty (Eleventy) static site generator
- Nunjucks templating
- CSS with utility classes and component styling
- Vanilla JavaScript for interactivity
Backend (Cloudflare Pages Functions)
- Stripe payment processing
- Cloudflare R2 for PDF storage
- Cloudflare KV for session management
- Resend for email delivery
- Zod for input validation
- Cron Triggers for daily monitoring
InboxGuard Report Generation
The InboxGuard system provides truly tailored reports with:
๐ Real DNS Scanning
- SPF record validation and analysis
- DKIM key detection across common selectors
- DMARC policy evaluation
- MTA-STS configuration checking
- Email provider detection via MX records
- Hosting provider identification
๐ฏ Provider-Specific Instructions
- Google Workspace: Admin console navigation, DKIM setup
- Microsoft 365: Exchange Online Protection configuration
- Zoho Mail: Control panel specific steps
- ProtonMail: Custom domain setup
- Fastmail: Settings configuration
- Mailgun/SendGrid: API-based setup
- Custom SMTP: Generic but actionable guidance
๐ Hosting-Specific DNS Guides
- Cloudflare: Dashboard navigation and record creation
- GoDaddy: Domain Control Center steps
- Namecheap: DNS management interface
- AWS Route 53: Console-specific instructions
๐ Comprehensive Reports Include
- Executive summary with deliverability score
- Technical findings with pass/fail status
- Priority-ordered action items
- Step-by-step implementation guides
- Verification commands for each fix
- Monitoring and next steps
- Professional PDF-ready HTML with print-optimized styling
DomainWatch Monitoring System
The DomainWatch system provides proactive domain monitoring with:
๐ Daily Monitoring Checks
- Domain expiry date tracking (WHOIS)
- SSL certificate expiry validation
- MX/NS record presence verification
- DNS change detection and alerting
๐ง Smart Alert System
- 30-day advance warning for domain expiry
- 15-day advance warning for SSL expiry
- Immediate alerts for missing DNS records
- Change detection for MX/NS modifications
๐ง Integration Features
- Stripe subscription management (monthly/annual)
- Email notifications via Resend
- KV storage for subscription data
- Cron triggers for automated monitoring
- ForgeFix integration for issue resolution
๐ Subscription Management
- Monthly (ยฃ7.99) and Annual (ยฃ49) plans
- Automatic status updates on payment failures
- Subscription cancellation handling
- Customer data management
๐ง Development
Prerequisites
- Node.js 18+
- npm or yarn
- Cloudflare account
- Stripe account
Environment Variables
Required
# Stripe
STRIPE_SECRET_KEY=sk_test_...
STRIPE_PRICE_INBOXGUARD=price_...
STRIPE_PRICE_DOMAINWATCH_MONTHLY=price_...
STRIPE_PRICE_DOMAINWATCH_ANNUAL=price_...
# Cloudflare
KV_NAMESPACE=your-kv-namespace-id
R2_BUCKET_REPORTS=your-r2-bucket-name
# Email
RESEND_API_KEY=re_...
# Enhanced HTML Generation
# No additional tokens needed - generates professional HTML optimized for PDF conversion
# Site
SITE_URL=https://domainforge.co.uk
Admin Panel (Optional)
# Admin Configuration
ADMIN_MODE=true
[email protected],[email protected]
ADMIN_BASIC_USER=domainforge
ADMIN_BASIC_PASS=<strong-password>
# Security Notes:
# - Admin panel only accessible when ADMIN_MODE=true
# - All admin endpoints require Basic Authentication
# - Admin emails can bypass Stripe payment for InboxGuard reports
# - Never expose admin credentials in client-side JavaScript
# - Consider using Cloudflare Access for additional security in production
# Admin Features:
# - Generate free InboxGuard reports
# - Add domains to DomainWatch monitoring
# - View recent reports and monitored domains
# - Re-send report emails
# - Expire download links
# - Remove domains from monitoring
Optional
# Analytics
GA4_MEASUREMENT_ID=G-XXXXXXXXXX
# Development
NODE_ENV=development
Local Development
# Install dependencies
npm install
# Start development server
npm start
# Build for production
npm run build
Deployment
# Deploy to Cloudflare Pages
npx wrangler pages deploy _site
# Set secrets
npx wrangler pages secret put STRIPE_SECRET_KEY
npx wrangler pages secret put STRIPE_PRICE_INBOXGUARD
npx wrangler pages secret put KV_NAMESPACE
npx wrangler pages secret put R2_BUCKET_REPORTS
npx wrangler pages secret put RESEND_API_KEY
๐ Security
- All sensitive data handled via Cloudflare Pages secrets
- Input validation with Zod schemas
- Secure download links with 24-hour expiration
- HTTPS enforcement via Cloudflare Worker
- Comprehensive security headers
๐ SEO
- Structured data (JSON-LD) for all products
- Comprehensive meta tags and Open Graph
- XML sitemap with proper priorities
- Canonical URLs enforced
- HSTS and security headers
๐งช Testing
InboxGuard System Test
# Test the report generation system
curl https://your-domain.pages.dev/api/inboxguard/test
Manual Testing
- Visit
/inboxguard/
and purchase a report
- Check email delivery
- Download and verify PDF report
- Test download link expiration
๐ File Structure
โโโ _data/ # Site configuration
โโโ _includes/ # Nunjucks templates
โโโ functions/ # Cloudflare Pages Functions
โ โโโ api/
โ โ โโโ inboxguard/ # InboxGuard API endpoints
โ โ โโโ checkout.ts # Stripe checkout
โ โ โโโ stripe-webhook.ts
โโโ inboxguard/ # InboxGuard pages
โ โโโ index.njk # Product landing
โ โโโ success.njk # Post-purchase
โ โโโ faq.njk # FAQ page
โ โโโ sample-report.njk # Sample report preview
โโโ styles/ # CSS files
โโโ workers/ # Cloudflare Workers
โโโ df-canonical/ # Canonical URL enforcement
๐ InboxGuard Implementation Details
Report Generation Flow
- Customer Purchase โ Stripe checkout
- Webhook Processing โ Triggers report generation
- DNS Scanning โ Real queries for SPF, DKIM, DMARC
- Provider Detection โ Identifies email/hosting providers
- Report Creation โ Generates tailored PDF with specific instructions
- Storage โ Saves to R2, creates KV token
- Email Delivery โ Sends download link via Resend
- Download โ Secure, time-limited access
Tailored Content Examples
For Google Workspace Users
- Exact Admin Console navigation paths
- DKIM key generation steps
- SPF record:
v=spf1 include:_spf.google.com ~all
For Microsoft 365 Users
- Exchange Online Protection setup
- DKIM configuration in EOP
- SPF record:
v=spf1 include:spf.protection.outlook.com ~all
For Cloudflare Hosting
- Dashboard DNS management steps
- Record creation with exact field names
- Verification using Cloudflare's tools
Quality Assurance
- Mock DNS responses for development
- Real DNS queries in production
- Provider-specific validation of configurations
- Comprehensive error handling with user-friendly messages
- Professional PDF formatting with branding
๐ Support
For technical support or questions about the InboxGuard system:
- Email: [email protected]
- Documentation: See individual product pages
- GitHub: Report issues in the repository
Domain Forge - Professional domain and email management solutions.