SampleRealm

SampleRealm

Architecture

A simplified view of how samplerealm.com is built. Everything on AWS is defined in code with AWS CDK.

The whole site. Pick a flow to follow one path through it.

GitHub Actions

Tests, builds and deploys the site on every push to main. It signs in with short-lived credentials rather than stored keys, and can ship code but can't change the infrastructure.

AWS Lambda

Runs the Next.js server, rendering pages and the small API behind downloads, plugin activation, the contact form and bookings. Two small functions sign plugin licences and clear the page cache when the catalogue or page copy changes.

CloudFront

Two distributions: one in front of the site, caching pages close to you and serving its built files; one serving plugin screenshots and playable demos from cdn.samplerealm.com.

AWS WAF

Filters requests before they reach the screenshot and demo distribution.

Route 53

DNS for samplerealm.com.

S3

Holds installers, screenshots, demos and the site's built files. The buckets are private; downloads use short-lived signed links.

DynamoDB

The plugin catalogue behind the homepage and product pages, the longer copy on each plugin page, and anonymous download counts per plugin. A change to the catalogue or the copy clears the page cache, so edits show within minutes.

Plugin activation

A plugin opens the activation page in your browser. After the bot check, the page hands the signed licence straight back to the plugin on your own computer (127.0.0.1). Nothing about it is stored.

Parameter Store

The site's configuration, and the licence signing key, which only the licence signer can read.

IAM

Each part runs under its own role, allowed only what it needs.

SES

Delivers contact form messages.

Cloudflare Turnstile

Bot check on the contact form, downloads and plugin activation, verified on the server.

Cloudflare Web Analytics

Page view counts, without cookies.

cal.com

Availability and bookings behind the Book a Call page.