Deploy bayesian-quiz
Railway

Deploy bayesian-quiz

Quantified pub quiz from the PyData Helsinki meetup

Deploy bayesian-quiz

Just deployed

Deploy and Host Bayesian Quiz on Railway

Bayesian Quiz is a real-time pub quiz app for data scientists where players estimate numerical answers with uncertainty. Instead of just guessing a number, participants submit a probability distribution (mean + standard deviation), and scoring uses CRPS to reward both accuracy and well-calibrated confidence.

About Hosting Bayesian Quiz

Bayesian Quiz is a single Python service with no database — all game state lives in memory. It uses FastAPI with Server-Sent Events to push real-time state changes to all connected clients: the quizmaster control panel, the projector display, and player phones. Railway's public domain is automatically used for the QR code that players scan to join. The in-memory architecture means it must run on a single node (no horizontal scaling), but it has been load-tested with 100 concurrent players on one instance. Quiz questions are uploaded as environment variables — use just upload-quiz with the Railway CLI to set a QUIZ_ variable from a text file.

Common Use Cases

  • Running a statistics-themed pub quiz at meetups, conferences, or team offsites
  • Teaching calibration and probabilistic thinking in a fun, competitive format
  • Conference entertainment for data science and ML communities (e.g., PyData, SciPy)

Dependencies for bayesian-quiz Hosting

  • Python 3.14+
  • No database required (in-memory state)
  • Quiz questions in RFC 822-style text format, uploaded via environment variables
  • FastAPI — web framework
  • HTMX — real-time UI updates via SSE
  • uv — Python package manager (used as build system)

Deployment Dependencies

Why Deploy bayesian-quiz on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Bayesian Quiz on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

More templates in this category

View Template
Foundry Virtual Tabletop
A Self-Hosted & Modern Roleplaying Platform

Lucas
View Template
(v1) Simple Medusa Backend
Deploy an ecommerce backend and admin using Medusa

Shahed Nasser
View Template
peppermint
Docker-compose port for peppermint.sh

HamiltonAI