A multiplayer browser-based game built using htmx and Golang. Leveraging web sockets.
  • Go 89.7%
  • templ 7.6%
  • HCL 0.9%
  • JavaScript 0.6%
  • Nix 0.6%
  • Other 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Renovate Bot a7cf656ad7
All checks were successful
CI / generate (push) Has been skipped
CI / unit (push) Successful in 1m27s
CI / lint (push) Successful in 1m53s
CI / integration (push) Successful in 2m17s
CI / e2e (push) Successful in 6m38s
CI / ci (push) Successful in 0s
CI / publish (push) Successful in 2m8s
chore(config): migrate config renovate.json
2026-12-01 14:03:42 +00:00
.agents fix(gameplay): playtest QA fixes, reveal/score screens, round header, bot harness 2026-10-01 17:29:11 +01:00
.forgejo/workflows ci: add Forgejo Actions workflows 2026-11-28 20:13:50 +00:00
cmd/bot feat: add websocket bot harness 2026-09-26 17:33:07 +01:00
containers chore(ci): rebuild CI around the tagged docker runner 2026-09-25 17:09:54 +01:00
dashboards feat: small improvements 2026-01-11 15:57:46 +00:00
docker feat(service): question and group CRUD with postgres tests 2026-10-01 17:29:11 +01:00
docs feat(ui): question deck polish (search, filters, game pin, mobile) 2026-10-01 17:29:11 +01:00
infra/tf chore(deps): update terraform cloudflare to v5 2026-09-25 19:20:05 +01:00
internal fix(quiz): expire rooms after an hour of inactivity 2026-11-30 11:56:02 +00:00
nix build(hooks): skip gotest for e2e tests that need a running server 2026-12-01 13:16:44 +00:00
static fix(quiz): restyle audience pages with Banterbus theme and fonts 2026-11-30 11:14:30 +00:00
tests/e2e fix(e2e): reuse reconnectToRoom in the one-player reconnect test 2026-12-01 13:16:53 +00:00
.air.toml fix: small ui bugs 2025-10-25 20:41:22 +01:00
.copier-answers.yml fix(deps): update all non-major dependencies 2026-09-25 18:44:23 +01:00
.env fix(gameplay): playtest QA fixes, reveal/score screens, round header, bot harness 2026-10-01 17:29:11 +01:00
.envrc chore: update lock again 2024-07-14 23:37:17 +01:00
.gitignore chore(git): ignore .wayfinder planning artifacts 2026-09-27 12:02:54 +01:00
.gitlab-ci.yml chore(ci): regenerate mocks and use v0.1.22 CI image 2026-10-01 18:33:58 +00:00
.golangci.yml feat: Add separate migration job 2025-09-18 12:30:48 +01:00
.mockery.yaml feat: add crash recovery logic 2025-10-24 19:21:59 +01:00
.sqlfluff chore: update dependencies 2025-08-15 17:22:39 +01:00
default.nix ci: skip nix package tests during docker build 2026-09-25 17:52:29 +01:00
docker-compose.yml fix(auth,handlers): OIDC hardening and review fixes 2026-10-01 17:29:11 +01:00
flake.lock chore(deps): lock file maintenance 2026-09-28 09:22:03 +01:00
flake.nix chore(nix): refresh nixpkgs, adopt git-hooks, and Go 1.26 2026-09-25 17:09:54 +01:00
go.mod feat(quiz): add slide-driven quiz mode with Pocket ID host API 2026-11-21 21:03:07 +00:00
go.sum fix(auth,handlers): OIDC hardening and review fixes 2026-10-01 17:29:11 +01:00
gomod2nix.toml feat(ui): question deck polish (search, filters, game pin, mobile) 2026-10-01 17:29:11 +01:00
LICENSE feat: initial commit 2024-07-15 20:03:42 +01:00
main.go fix(quiz): persist sessions to Redis and restore them on startup 2026-11-30 11:36:41 +00:00
README.md fix: Winner page styles 2025-11-16 18:04:06 +00:00
renovate.json chore(config): migrate config renovate.json 2026-12-01 14:03:42 +00:00
shell.nix fix(auth,handlers): OIDC hardening and review fixes 2026-10-01 17:29:11 +01:00
sqlc.yaml refactor: split sqlc queries into domain files 2026-09-26 14:23:36 +01:00
tailwind.config.js feat(ui): question deck polish (search, filters, game pin, mobile) 2026-10-01 17:29:11 +01:00
Taskfile.yml fix(config): disable auto-reconnect for the e2e server 2026-11-28 19:11:06 +00:00

Banter Bus

Banter Bus is a multiplayer web-based party game inspired by JackBox games. Players join lobbies to play social deduction and guessing games together in real-time.

Home Page

Table of Contents

Demo

Demo Video

Getting Started

# Clone the repository
git clone https://gitlab.com/hmajid2301/banterbus
cd banterbus

# Allow direnv to load the development environment
direnv allow

# Start the development server
task dev

The application will be available at http://localhost:7331 (proxy for templ -> :8080).

Preview Environments

When creating merge requests, you can deploy preview environments:

  1. Add the deploy/flux-preview label to your merge request
  2. CI will automatically build and deploy a preview environment
  3. Access your preview at https://mr-{MR_ID}.dev.banterbus.games
  4. Environment is automatically cleaned up when MR is merged/closed

Technology Stack

Backend

  • Go - Core application language
    • Standard library HTTP server
    • gobwas/ws for WebSocket communication
    • SQLC for type-safe database queries
  • PostgreSQL - Primary database for game state and user data
  • Redis - Pub/Sub messaging for real-time events between players
  • templ - Type-safe HTML templating

Frontend

  • HTMX - Dynamic HTML updates without JavaScript frameworks
  • Alpine.js - Minimal JavaScript for interactive components
  • Tailwind CSS - Utility-first styling

Development Experience

  • Nix - Reproducible development environments
    • gomod2nix for Go dependency management
    • Automated development shells
    • Pre-commit hooks for code quality
    • Docker image builds
  • Task - Simple task runner (alternative to Make)
  • Air - Live reload during development
  • SQLC - Generate type-safe Go code from SQL

Infrastructure & Deployment

  • Terraform - Infrastructure as code
    • Single state file with workspace separation (dev/prod)
    • Automated DNS management via Cloudflare
    • Secret management through OpenBao
  • Kubernetes - Container orchestration
    • GitOps deployment with Flux CD
    • Automatic scaling and health checks
  • GitLab CI/CD - Continuous integration and deployment
    • Automated testing (unit, integration, e2e)
    • Docker image builds and registry management
    • Preview Environments - Automatic deployment for merge requests
      • Temporary environments for testing features
      • Automatic cleanup when MR is closed
      • URL format: https://mr-{ID}.dev.banterbus.games

Monitoring & Observability

  • OpenTelemetry - Distributed tracing and metrics
  • Grafana - Metrics visualization and alerting
  • Prometheus - Metrics collection and storage
  • Loki - Log aggregation
  • Tempo - Distributed tracing backend