Skip to case study
Competition formats
4
Apps · athlete, organizer, admin
3
Background queues
5

Problem

Sports events require coordinated registration, competition rules, scoring, and payments across multiple participant types.

Athletes enter alone, as a team or with a doubles partner, while organizers choose among four competition formats and follow entries through to rankings. Entry fees and limited capacity must stay consistent even when a payment provider reports the same payment more than once.

Approach

A shared API connects the athlete app, organizer workspace, and admin panel, with competition management and payment processing.

Stripe Connect collects entry fees, a transactional capacity update protects confirmed places, and an append-only ledger records league points and later corrections. Five background queues carry operational work outside the request path.

Three client surfaces, one backend

The athlete app, organizer workspace and admin panel share one API. Each surface exposes the work its user needs.

  • Athlete app
  • Organizer workspace
  • Admin panel
Shared backendExpress APIPostgreSQL · Redis · Stripe Connect
Three client surfaces, one backend
SurfaceWho uses itWhat it supports
Athlete appAthletesRegister for tournaments and training, enter alone, as a team or with a doubles partner, and pay entry fees.
Organizer workspaceClubs and tournament organizersCreate competitions, choose one of four formats, and follow entries through to rankings.
Admin panelPlatform administratorsAdministrative access to competitions and platform operations.
Athlete app
Who uses it
Athletes
What it supports
Register for tournaments and training, enter alone, as a team or with a doubles partner, and pay entry fees.
Organizer workspace
Who uses it
Clubs and tournament organizers
What it supports
Create competitions, choose one of four formats, and follow entries through to rankings.
Admin panel
Who uses it
Platform administrators
What it supports
Administrative access to competitions and platform operations.

One engine, four structures

The competition engine supports four structures. All four share the same registration, payment and ranking path.

One engine, four structures
FormatHow it works
Single eliminationOne loss ends the run; the bracket narrows to a final.
Single round robinEvery entrant plays every other entrant once; standings decide the order.
Multiple round robinEntrants are split into groups, and each group plays its own round robin.
Two-stageA group stage feeds a knockout stage.
Single elimination
How it works
One loss ends the run; the bracket narrows to a final.
Single round robin
How it works
Every entrant plays every other entrant once; standings decide the order.
Multiple round robin
How it works
Entrants are split into groups, and each group plays its own round robin.
Two-stage
How it works
A group stage feeds a knockout stage.

From entry fee to confirmed place

Stripe Connect collects entry fees. A repeated payment callback cannot double-book a place: the registration and capacity update run inside a transaction with database constraints.

  1. Registration

    The athlete enters alone, as a team or with a doubles partner.

  2. Checkout

    Stripe Connect collects the entry fee.

  3. Payment callback

    The payment provider may report the same payment more than once.

    Callback may repeat
  4. Locked capacity update

    A transaction and database constraints keep the registration and capacity consistent.

  5. Confirmed entry

    The registration is final and the competition proceeds in its chosen format.

Five background queues handle operational work outside the request path.

One API, several client surfaces

The athlete app, organizer workspace and admin share the backend. This capture shows the public mobile website.

Tournwa public website adapted to a narrow mobile screen
Public website · mobile capture

Technical decisions

Four competition formats

The engine supports elimination, round-robin groups, and groups followed by knockout stages.

Consistent payment finalization

Database constraints and transactional locking protect registration and capacity updates when payment callbacks repeat.

Auditable league points

An append-only ledger records points and subsequent corrections without rewriting history.

Contribution & delivery

I built the competition engine, transactional payment flows, league-points ledger, and operational backend. A teammate handled social authentication and team-management CRUD.

Timeline
2026 · 8 months · ongoing

Built by me, built with a teammate

Built by me, built with a teammate
ContributionWorkstream
Built by meCompetition engine, payment finalization, league-points ledger, operational backend
Built with a teammateSocial authentication, team-management CRUD
Built by me
Workstream
Competition engine, payment finalization, league-points ledger, operational backend
Built with a teammate
Workstream
Social authentication, team-management CRUD

Stack by layer

Stack by layer
LayerTechnology
Mobile clientReact Native
APINode.js · Express
DatabasePostgreSQL
Cache and queuesRedis · BullMQ
PaymentsStripe Connect
Mobile client
Technology
React Native
API
Technology
Node.js · Express
Database
Technology
PostgreSQL
Cache and queues
Technology
Redis · BullMQ
Payments
Technology
Stripe Connect

Let’s build something useful.

Have a project in mind? Let’s talk about what it needs.

Discuss a similar project