Bali has thousands of events a week, scattered across Instagram stories, Telegram chats and venue websites. We built a calendar that gathers them into one place. This post is about how it stays fresh without a heavy backend.

The shape of the system

  • A bot collects events from public sources and exports one JSON file.
  • An Astro site turns that file into roughly 11,800 static pages: areas, categories, venues, days and guides.
  • A Cloudflare Worker with D1 and KV handles the small dynamic parts, such as subscriptions and counters.
  • A scheduled job rebuilds and deploys the site every hour, then pings search engines about changed URLs.

Why static

Event pages are read far more than they are written. Static HTML on a CDN is cheap, fast on slow mobile networks, and easy to crawl. The cost is build time, so the build has to be incremental where possible and the hourly job has to fail safely: a broken build must never replace a working site.

What went wrong first

Most of our pages were not indexed by search engines at first. Thousands of near-identical event pages with little unique text are a weak signal. What helped: fewer thin pages, stronger hub pages per area and per series, clear internal links from guides to hubs, and sitemaps split by page type so we can see which type is not being picked up.

What it looks like to a reader

The output is plain useful pages. For example, a day-by-day planning guide built on what actually runs each weekday: Bali itinerary for 3, 5 and 10 days.

If you build a similar calendar for another city, I would be glad to compare notes on deduplication and indexing in the comments.