How This Site Is Built

JANEMERNAI is a static Astro site on Cloudflare Pages, with forms stored in D1 and an hourly AI agent pipeline whose stories are fact-checked by a second model.

Pages

Every page is pre-built to HTML with Astro (static output), so it loads fast and ships almost no JavaScript, apart from a small form script.

Hosting

The site is hosted on Cloudflare Pages and served from locations close to readers.

Forms

The contact and newsletter forms post to Cloudflare Pages Functions and are stored in a Cloudflare D1 database, with spam protection and rate limiting. IP addresses are stored only as hashes.

Writing the news

An AI agent pipeline runs every hour: it finds stories from primary sources, writes them in Thai and English with citations, generates a cover image and rebuilds the site.

Fact checking

Before publishing, a second AI model checks every claim against the sources. Stories that fail do not go live. See our editorial policy.