—Under the hood
A fast website that works with the tools a business already uses.
Mill & Meadow is a fictional company. This page explains what the interactive features do, which parts are simulated, and how each one connects to real services when the site is set up for an actual business.
Demo vs live
What’s simulated here: the estimate request, booking calendar, customer portal, invoices and payments run in demo mode. They validate input and behave like the real thing, but nothing is sent, stored or charged. Customer names and figures in the portal are invented.
01Request flow
What happens when a form is submitted
When a business turns on the API mode, form submissions follow this path. The visitor gets a confirmation as soon as the request is stored; slower integrations finish in the background.
Visitor
Static pages from Cloudflare’s edge. No server to wait on.
Pages Function
Validates input, checks Turnstile, rate-limits by hashed IP (KV).
Store
Request saved to D1; photos to R2.
Fan-out
Email, CRM, webhook, field-service tool — in parallel, after the visitor gets a response.
02Modes
Every integration can be switched independently.
Configured in one file per client. A business can start with simple links to its existing tools and move to deeper integration later.
demoDemo- A built-in simulation, labeled on screen. No accounts, no keys, nothing sent.
linkLink- Sends visitors to the provider’s own hosted page — the fastest way to keep an existing workflow.
embedEmbed- Loads the provider’s widget only after the visitor clicks, so pages stay fast.
apiAPI- Handled server-side by a Cloudflare Function. Secrets never reach the browser.
offOff- Not rendered at all. Each integration is independent.
03Supported services
Integrations available
Payments
Stripe link · api
Payment Links for zero-code setup, or a Pages Function that creates a Checkout Session with the invoice amount. Webhook confirms payment.
Square link · embed
Square payment links or Square Appointments booking pages; keeps the client’s existing Square dashboard and payouts.
PayPal link
PayPal hosted payment page per invoice.
Invoicing
QuickBooks Online link · api
Invoices keep living in QuickBooks. The portal links to QuickBooks’ own pay-online invoice pages, or a Function reads invoice status via the Accounting API (OAuth 2.0, tokens stored in KV).
FreshBooks link · api
Same pattern as QuickBooks using the FreshBooks API.
Field service
Jobber link · api
Estimate requests can be created as Jobber requests via its GraphQL API; “Client login” links to Jobber Client Hub.
Housecall Pro link · api
Online booking link plus a Function that creates customers/leads through the Housecall Pro API.
Scheduling
Calendly link · embed
Inline embed loaded only on click, prefilled with the visitor’s name and email.
Google Calendar link · api
Appointment schedule booking page, or a Function that reads free/busy and creates events with a service account.
Maps
Google Maps embed
Click-to-load map embed so Google scripts never block the page.
Reviews
Google Business Profile link · api
Function fetches real reviews from the Places API, caches them in KV for 12 hours, and renders them without client-side Google scripts.
CRM
HubSpot api
Each estimate request creates or updates a HubSpot contact and note via a private app token.
Automation
Webhooks (Zapier, Make, n8n, any CRM) api
Signed JSON POST of every request to any URL — the easiest way to reach CRMs without a native adapter.
Notifications
Email notifications api
Cloudflare Email Routing send binding (or Resend/Postmark via REST) emails the office and sends the customer a receipt.
Portal
Existing customer portals link · demo
“Client login” can point at Jobber Client Hub, Housecall Pro, QuickBooks or any existing bill-pay page instead of the built-in portal.
04This deployment
Current configuration
Read from the site’s integration config at build time.
- Estimate requests
demo- Scheduling
builtin · demo- Payments
demo · demo- Invoicing
demo · demo- Customer portal
demo- Maps
embed- Reviews
demo
05Security & speed
Built so integrations don’t cost speed or safety.
- Secrets live in Cloudflare environment variables, never in page code.
- Server-side validation mirrors the browser checks; nothing is trusted from the client, including prices.
- Cloudflare Turnstile and per-IP rate limiting on every public form.
- Third-party widgets load on click, so they never slow the first page view.
- One failing integration never blocks the others or the visitor’s confirmation.
- Existing tools keep working during a migration — links first, deeper integration when ready.
Designed & developed by Daivik Patel — Developer & Technology Problem Solver. daivikpatel9@gmail.com