I’ve just published an article on the AWS Builder Center: Building a multiplayer quiz game with AI using AWS serverless.

It tells the story of Trivolt, an open-source live trivia game, and I presented it at the AWS User Group Wellington meetup on 5 November 2026, finishing with a live game for the room.

What is Trivolt?

A Host enters a topic and a difficulty, and generative AI writes the quiz. The Host reviews the questions, discarding or regenerating any they don’t like, then starts a game. Players join from their phones by scanning a QR code or entering a join code, pick a nickname, and race the clock: points are awarded for correct answers, with more for answering quickly. A leaderboard crowns the winner at the end.

From QuizDash to Trivolt

Trivolt grew out of QuizDash, a FizzBuzz-style multiplayer game I demonstrated at AWS Community Day Aotearoa NZ 2025 to show off API Gateway WebSocket APIs. I’d always wanted to extend it to quizzes on any subject, with AI writing the questions, but as a side project, time was the constraint.

This time I designed and built it with Claude Code and Matt Pocock’s grill-with-docs skill. Rather than jumping straight to code, it interviewed me about the design over 11 rounds and nearly 50 questions, then wrote up a product requirements document, a glossary, a milestone plan and architecture decision records. Each milestone was then built test-first.

The architecture

Trivolt’s AWS architecture: CloudFront and S3 for the web app, API Gateway and Lambda for the API, DynamoDB, AppSync Events for real-time play, Cognito, and Bedrock AgentCore for question generation

Everything is serverless and deployed with CloudFormation (using the SAM transform) to ap-southeast-2:

  • Amazon S3 and CloudFront host the React web app and route /api/* to the API.
  • API Gateway (HTTP API) and AWS Lambda (arm64) run the game logic.
  • Amazon DynamoDB stores quizzes, games and history in a single table.
  • AWS AppSync Events pushes “question opened”, “answer revealed” and “game finished” to every screen. It replaces the hand-rolled WebSocket fan-out QuizDash needed.
  • Amazon Cognito handles Host sign-in. Players stay anonymous, with short-lived tokens that can only subscribe to their own game’s channel.
  • Amazon Bedrock AgentCore Runtime runs a question-generation agent built with the open-source Strands Agents SDK. It generates questions with Amazon Bedrock, then verifies them in a second pass, because LLMs sometimes mark the wrong answer as correct.
  • Amazon Comprehend moderates player nicknames.

With nothing running when nobody is playing, the bill tracks usage rather than capacity.

Read the full article

The full article goes much deeper: excerpts from the design session, the reasoning behind each AWS service, security and abuse controls, cost guardrails, and what I learned about where AI excels and where you still need to make the calls.

The source code is on GitHub at cirruscape/public-app-trivolt under the MIT licence, so you can deploy your own copy or dig into how it works.

Or skip straight to the fun part and play Trivolt with your team.

Thanks to everyone who came along to the meetup in Wellington, and for the great questions afterwards. ☁️

← All posts