Richee Wilson

Photography, music and other creative mischief.

ChatGPT - Website Architecture Discussion

Intro

What follows is the major part of a chat with ChatGPT to aid me in finding tools and services with which to build a new website for my favourite charity. Requirements and features are discussed as well as privacy and security issues and how well the chosen method aligns with my goals.

User

Given all you know about the Good Vibrations Website project, I’d like to ask, would the following be a good approach? Use Hugo for all the main content and for anything that requires a back end, separate it out, but still integrated into the main website with an efficient hugo workflow?

Assistant

Yes. I think this is probably the most sensible approach for Good Vibrations.

ComponentTechnology
Main website, news and galleriesHugo
Booking form and interactive calendarJavaScript integrated into Hugo templates
Booking logic and availabilityIndependent backend
Booking recordsSQLite
Staff administration and notificationsIndependent backend

The advantages are:

  • Retain your familiar Hugo development workflow.
  • Maintain a consistent appearance throughout the website.
  • Develop and test the booking system independently.
  • Update website content without affecting the booking system.
  • Replace or upgrade the backend without rebuilding the website.

I would keep the frontend pages within Hugo and have them communicate with the backend through an API. Visitors would have no reason to know that two separate systems were involved.

This gives you the simplicity of Hugo without compromising the dynamic functionality you need.


User

And what would be the most streamlined, no cost solution for the booking form, calendar and other backend stuff? As in, who would be the provider and what method or technology would be involved?

Assistant

Cloudflare would be my first choice, using its serverless services alongside Hugo. This avoids having to maintain a separate server or database installation.

ComponentTechnologyCost
Website hostingCloudflare PagesFree
Booking formHTML / JavaScriptFree
Booking API and logicCloudflare Workers (TypeScript)Free
DatabaseCloudflare D1 (SQLite-based)Free
Interactive calendarFullCalendar StandardFree, open source
Email confirmationsBrevo APIFree
Spam preventionCloudflare TurnstileFree

How it fits together

Hugo — Cloudflare Pages ├── Booking form ├── Calendar └── Staff administration ↕ Cloudflare Workers Booking API and business logic | ├── Cloudflare D1 | Booking records | └── Brevo Booking notifications

I’ve verified that Cloudflare Workers allows 100,000 requests per day and Brevo allows 300 emails per day without requiring a credit card.

Expected running cost: £0 per month, excluding the existing domain renewal.

The compromise is that Cloudflare and Brevo are proprietary hosted services, although all your application code could be open source. The bespoke booking logic would still need developing.


User

Okay, good. I’ve, I’ve spoken with other members of the team and how they’d like to get notifications. And they prefer WhatsApp. So can Cloudflare deal with delivering WhatsApp notifications?

Assistant

Yes. Cloudflare Workers can send automated WhatsApp notifications through Meta’s WhatsApp Business Cloud API whenever a booking is made.

However, the important question for Good Vibrations is whether this can be done entirely free of charge.

MethodCost
WhatsApp Business Cloud APIApproximately 1.6p per utility notification
Ordinary WhatsAppFree, but no official automation API
Telegram Bot APIFree and supports automated group notifications

Given your zero-cost requirement, I would suggest Telegram as an alternative for staff notifications.

Cloudflare could handle either integration easily, but official automated WhatsApp notifications cannot be guaranteed to remain free.


User

How do things look if I drop WhatsApp and just stick with email notifications?

Assistant

Much simpler, and entirely achievable at zero cost.

Using Cloudflare Workers and the Brevo free email API, you could automatically send:

  • Booking confirmations to visitors.
  • New booking notifications to staff.
  • Booking cancellation and amendment notifications.
  • Upcoming booking reminders.

Brevo’s free tier allows 300 emails per day, which should comfortably accommodate Good Vibrations.

This would be my preferred approach: straightforward to implement, minimal maintenance and no additional running costs within the free-tier limits.


User

What’s the situation should the website get spammed? And, you know, have a stupid amount of visitors, spam bots and the like causing havoc? Is that suddenly going to up the cost of everything?

Assistant

No, provided you keep everything on the free plans. Excessive traffic should result in service limits being reached rather than an unexpected bill.

I’ve checked the current service limits:

ServiceWhat happens under excessive traffic
Cloudflare PagesFree, unlimited static requests.
Cloudflare WorkersStops processing after 100,000 daily requests.
Cloudflare D1Database operations stop when free quotas are exhausted.
BrevoStops sending after 300 emails per day.

To protect the booking system, I would implement:

  • Cloudflare Turnstile — free bot protection.
  • Rate limiting — restrict repeated requests.
  • Booking verification — prevent fraudulent bookings.
  • Email throttling — prevent exhaustion of the email allowance.

The worst likely outcome is temporary disruption to the booking system, rather than financial liability.

I would make remaining on strictly free plans a non-negotiable design requirement.


User

Using this method, is the privacy of its users respected?

Assistant

Yes, provided the system is designed with privacy in mind. However, using Cloudflare and Brevo does not automatically make the website UK GDPR compliant.

Both providers have GDPR safeguards:

  • Cloudflare: Supports UK GDPR and provides a Data Processing Agreement.
  • Brevo: Provides GDPR safeguards and European data storage.

For Good Vibrations, I would implement the following:

  • No advertising, tracking cookies or marketing analytics.
  • Collect only essential booking information.
  • Encrypt communications using HTTPS.
  • Restrict personal information to authorised staff.
  • Never display visitors’ names on the public calendar.
  • Automatically delete booking records after an agreed retention period.
  • Disable email open and click tracking.

The principal compromise is that personal data is processed by third-party providers and may be transferred outside the UK.

Nevertheless, I see no fundamental privacy obstacle to using this architecture, and these safeguards do not require paid services.


User

Well, it does make me wonder what data Cloudflare collects. And um Brevo as well

Assistant

There is an important distinction between the information these providers collect themselves and the information your booking system passes to them.

DataCloudflareBrevo
Visitor IP addressesYesIf email tracking is enabled
Browser and network informationYesPotentially through tracking
Website traffic informationYesNo
Names and email addressesStored in D1 booking databaseAs supplied for email delivery
Booking detailsStored in D1Only those included in emails
Email contentsNot directlyYes
Email opens and clicksNoTracking available

Cloudflare collects technical information primarily for security, service operation and improvement.

Brevo retains email delivery logs and can retain copies of sent emails.

For maximum privacy, I would:

  • Disable optional analytics and email tracking.
  • Minimise data retention.
  • Disable Brevo’s email content previews.
  • Avoid collecting sensitive personal or medical information.

Neither service provides complete anonymity. However, we can substantially minimise the information exposed to both providers.

Official privacy policies:


User

My main concern is that email addresses may be collected and used to advertise to. That’s something I want to avoid happening to my users.

Assistant

I’ve checked the published data protection agreements for both providers.

  • Cloudflare: Explicitly prohibits using customer personal data for marketing or advertising. It also states that it does not sell website visitors’ data.
  • Brevo: Its data processing agreement prohibits selling customer contact information or sharing it for targeted advertising.

I would configure Brevo exclusively for booking notifications, with:

  • No marketing mailing lists.
  • No website tracking.
  • No email open or click tracking.
  • Minimum data retention.

There is no indication that using either provider’s free tier means sacrificing users’ email privacy. Their contractual commitments prohibit the advertising practices you’re concerned about, although no third-party service can offer an absolute guarantee.