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)

DomainWatch

NEW: Domain Expiry & Health Monitoring (ยฃ7.99/month or ยฃ49/year)

ForgeFix

Professional domain setup and email configuration service.

ForgeMigrate

Domain and email migration assistance.

ForgeAcademy

Educational content about domains and email setup.

๐Ÿ—๏ธ Architecture

Frontend

Backend (Cloudflare Pages Functions)

InboxGuard Report Generation

The InboxGuard system provides truly tailored reports with:

๐Ÿ” Real DNS Scanning

๐ŸŽฏ Provider-Specific Instructions

๐Ÿ  Hosting-Specific DNS Guides

๐Ÿ“‹ Comprehensive Reports Include

DomainWatch Monitoring System

The DomainWatch system provides proactive domain monitoring with:

๐Ÿ” Daily Monitoring Checks

๐Ÿ“ง Smart Alert System

๐Ÿ”ง Integration Features

๐Ÿ“Š Subscription Management

๐Ÿ”ง Development

Prerequisites

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

๐Ÿ“Š SEO

๐Ÿงช Testing

InboxGuard System Test

# Test the report generation system
curl https://your-domain.pages.dev/api/inboxguard/test

Manual Testing

  1. Visit /inboxguard/ and purchase a report
  2. Check email delivery
  3. Download and verify PDF report
  4. 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

  1. Customer Purchase โ†’ Stripe checkout
  2. Webhook Processing โ†’ Triggers report generation
  3. DNS Scanning โ†’ Real queries for SPF, DKIM, DMARC
  4. Provider Detection โ†’ Identifies email/hosting providers
  5. Report Creation โ†’ Generates tailored PDF with specific instructions
  6. Storage โ†’ Saves to R2, creates KV token
  7. Email Delivery โ†’ Sends download link via Resend
  8. Download โ†’ Secure, time-limited access

Tailored Content Examples

For Google Workspace Users

For Microsoft 365 Users

For Cloudflare Hosting

Quality Assurance

๐Ÿ“ž Support

For technical support or questions about the InboxGuard system:


Domain Forge - Professional domain and email management solutions.