
Teen Arts Ambassadors
The website for a youth-led arts program: live event sign-ups with capacity and waitlists, a blog, a newsletter, and a photo gallery, all run by the team from one dashboard with no server to maintain.
- Event sign-ups use one atomic database statement, so two people can never take the last spot.
- The team runs events, posts, newsletters, and the gallery from /admin, with no deploy needed.
- No server to run or patch: the whole site fits inside Cloudflare's free plan.
- A Coming Soon gate on the real domain, with a private preview link for the client.
The brief
Teen Arts Ambassadors is a youth-led, charity-driven program of the Majestic Empire Foundation. Teens organize events, raise money for competitive scholarships, and prepare for careers in the arts. The program needed a home on the web that looked the part, filled its events, and could be kept up by a team of teenagers and Foundation staff, not by a developer.
It also had to cost close to nothing to run. A nonprofit pilot should not carry a hosting bill or a server someone has to patch.
What I built
A fast, static site on Cloudflare Pages, with a small backend in Pages Functions and a D1 database for events and sign-ups. Pages cover the mission, the team, events, a gallery, a blog, donating, getting involved, and the Foundation.
Events that fill themselves. Each event has a capacity, and the public site shows the spots left live. Visitors reserve one to four spots in under a minute, join a waitlist when it is full, and add the event to their calendar. If an attendee is under 18, the form asks for a parent or guardian. Sign-ups close an hour after the event starts.
A dashboard the team can run. /admin is one place for everything that changes week to week:
- Events and sign-ups: create and edit events, see who registered, move people off the waitlist, and download a CSV.
- Blog: a formatting toolbar, a live preview, drafts, and scheduled posts that go live on their own.
- Newsletter: write a newsletter or turn a blog post into one, send a test, then send to every subscriber. If a daily sending limit stops it partway, it resumes later and nobody gets it twice.
- Gallery: drag in photos from a phone. They are resized in the browser, their location data is removed, and they appear on the site within a minute.
- Interest forms: ambassador applications, volunteers, and sponsor inquiries in one list.
None of it needs a deploy.
How it works
The last spot goes to one person. A sign-up is a single atomic database statement that checks capacity and inserts the registration together. I tested it with 20 simultaneous sign-ups for 5 spots: exactly 5 got in.
Safe by default. Form endpoints only accept requests from the site itself, every form has a honeypot for bots, CSV downloads are protected against spreadsheet formula injection, and strict security headers are set on every page. Newsletters carry a signed one-click unsubscribe link.
Launch on the client's schedule. Until the Foundation is ready, the real domain shows a branded Coming Soon page that still collects newsletter sign-ups. The client reviews the finished site through a private preview link, and every branch gets its own preview address. Launch is one setting.
Found by search engines and AI assistants. Every page carries connected structured data for the
organization, its events, and its posts. FAQ answers are published so search and answer engines can
quote them, and an llms.txt summary of the program is rebuilt on every deploy.
Result
The program has a polished site that its own team can keep current: events, stories, newsletters, and photos without waiting on a developer, on hosting that costs nothing at its size.



