Projects

The Travel Project

Content-led travel platform on Cloudflare: editorial storytelling, member accounts and enquiries on web and mobile, an editorial CMS and desktop media tools, built by me as the sole engineer.

thetravelprojectstudios.com

At a glance

Role
Full Stack Software Engineer (sole engineer: architecture, backend, frontends, delivery)
Timeframe
January 2026 to present
Status
Live: content, member accounts and enquiries. Live booking paused; enquiries remain long term

Stack

  • Cloudflare D1
  • Cloudflare KV
  • Cloudflare Queues
  • Cloudflare R2
  • Cloudflare Workers
  • Cloudflare Workers AI
  • Cloudflare Workflows
  • ESLint
  • Hono
  • Next.js
  • Prettier
  • React
  • Sentry
  • Tailwind CSS
  • TypeScript
  • Zod

Key outcomes

  • Backend Workers behind the gateway8
  • SQL migrations across three databases98
  • Test files on the core API484

Jump to technical deep dive

Technical deep dive

Expand a section for architecture detail, trade-offs, and evidence. Written for technical hiring managers.

Overview

The Travel Project Studio is a content-led travel platform. Editors publish films, hotels, journeys, restaurants and journal stories; members save favourites and send enquiries from the website or the mobile app. I designed and built the whole platform as its only engineer: a set of Cloudflare Workers behind one edge gateway, serving a public site, an editorial CMS, a mobile app and desktop media tools.

Problem

A travel studio that sells through storytelling needs an editorial engine a small team can publish and schedule with safely, and a fast public experience that turns readers into enquiries on web and mobile. It has to stay cheap to run as public traffic grows, protect member and staff data more strongly than public content, and let one engineer change any part without risking the whole system on every deploy.

Solution

- Built one edge gateway that routes web, CMS, mobile and desktop clients to eight backend Workers, each shipped and reverted on its own - Split data into three D1 databases by domain, with the core API as the only writer - Served the public site from KV read models rebuilt on publish, so readers rarely touch the database - Ran publishing asynchronously through Queues, cron schedules, a Workflow and a Durable Object that de-duplicates revalidation - Isolated password hashing in a Rust Argon2id container behind a binding-only Worker instead of paying for a third-party auth provider - Shipped validated hotel, restaurant, journey and product enquiries with email confirmations, behind a supplier layer ready for live booking

How it works: an editor saves a draft in the CMS and the core API validates it with Zod and writes it to D1. On publish, queue consumers rebuild the affected KV read models and trigger revalidation. The public site reads the KV copy first and only falls back to the API on a miss or a preview.

Architecture
WhatWhy
Service boundaries: Edge gateway routing to eight domain Workers; internal services have no public routeDevelop, ship and revert one service without affecting the rest of the system
Data ownership: Three D1 databases split by domain (identity, content, operations), 98 SQL migrationsEach store has a different security level and caching profile; splitting early avoids a painful extraction later
Public read path: KV read models written on publish; the public site reads KV firstPublic traffic does not hammer the database or drive compute cost
Async work: 11 queue producers, 6 consumers, dead-letter queues, 5 cron schedules, a Workflow, Durable ObjectsPublishing, digests and clean-up run off the request path and retry safely
Authentication: Auth.js sessions, WebAuthn passkeys, MFA, CSRF, rate limiting, Turnstile; Argon2id in a Rust containerStrong hashing exceeds Worker CPU time limits; owning auth avoids third-party cost and forced branding
Booking: Enquiries and orders service with a pluggable supplier layerSome hotels do not offer online booking through third-party APIs, so enquiries serve every partner
Clients: Astro public site, Next.js CMS, Expo mobile app, desktop media toolsOne API estate serves every surface, so business rules live in one place
Challenges

Saved pages were losing their images

Problem

Some pages lost data when content was saved, and the pattern looked erratic.

Why it was difficult

It did not reproduce on demand, and the first clue pointed the wrong way: the admin saved from a different country, which suggested corruption in transit.

Solution

I recovered the affected pages from backups first, then followed the logs instead of the hypothesis. The root cause: on loading the edit page, images were not populated correctly in the draft payload, so empty fields were sent and overwrote saved images. The backend now checks that images exist and stops empty fields overwriting saved values when a draft is saved. Editors can still remove an image on purpose, by removing its element or clicking delete on the image; if a required image is then missing, the page can only be saved as a draft, because pages cannot be published without required fields.

What I learned

Treat every client payload as untrusted, even from your own CMS, and let logs, not geography, drive the diagnosis.

Strong hashing inside Worker CPU limits

Problem

Argon2id with safe parameters needs more CPU time than a Worker allows.

Alternatives considered

A third-party auth provider: rejected for high cost, or free plans that force their branding.

Solution

A Rust Argon2id container behind a Worker with no public route, reached only by service binding, with rehash on verify.

Trade-offs

Cold starts add sign-in latency when the container is idle: around 10 to 15 seconds cold against under a second warm (approximate, from my own testing). Next: reduce cold starts or explore alternatives.

Fast public pages without database cost

Problem

Serving every public page from D1 would tie database load and compute cost to traffic.

Solution

Publishing rebuilds KV read models, which the public site reads first.

Trade-offs

A short window where an older page can show in production; by design, not a fault. A manual rebuild and revalidation for one page or a page category refreshes the build and KV.

Decisions

Three D1 databases split by domain

Alternatives

One shared database

Why this choice

Identity, content and operations data need different security and caching. Separate concerns and ownership now rather than extract them under load later.

Trade-off

Cross-domain reads go through the owning service; more migrations to manage.

Separate Workers behind one gateway

Alternatives

A single Worker

Why this choice

One engineer shipping often across many features. Ship and revert one service without affecting the whole system.

Trade-off

More deploy units and bindings to keep consistent.

KV read models for public pages

Alternatives

Read from D1 on every request

Why this choice

Public traffic should not scale database reads and cost. Cheap, fast reads at the edge.

Trade-off

Brief staleness accepted by design; manual rebuild per page or category.

Own Argon2id hashing in a Rust container

Alternatives

Third-party auth provider

Why this choice

Worker CPU time limits block strong hashing in-request. Avoid high cost and forced branding; keep control of auth.

Trade-off

Cold-start latency on sign-in.

Enquiries first, live booking paused

Alternatives

Ship live booking through that supplier

Why this choice

Partner contracts and supplier connections not yet in place; an evaluated wholesale supplier did not meet the studio's needs. Some hotels do not offer online booking through third-party APIs.

Trade-off

Supplier layer ready but empty; enquiries remain alongside future live booking.

Evidence
  • Backend Workers behind the gateway8(Code review, 23 Nov 2026)
  • SQL migrations across three databases98(Code review, 23 Nov 2026)
  • Test files on the core API484(Code review, 23 Nov 2026)
  • Gateway routing unit tests14(Code review, 23 Nov 2026)
  • Merged pull requests164, including automated dependency updates(GitHub, all time to 24 Nov 2026)
Reflection

- Learned: a defensive write path matters more than tidy client code; one missing guard on a draft save cost real content - Learned: deciding data ownership on day one is cheaper than extracting it from a shared database later - Would improve: reduce hashing cold starts, or evaluate alternatives that keep strong hashing without the latency - Next: sign partner contracts and connect suppliers through the existing layer, keeping enquiries for hotels without API booking