Skip to content

About

Source code for the myspeedpuzzling.com application

Topics

Resources

Stars

21 stars

Watchers

4 watching

Forks

Latest commit

 

History

3,010 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MySpeedPuzzling

MySpeedPuzzling

The world's largest speed puzzling results database and the home of the global speed puzzling community.

Website · Competitions · Issues · MIT License


Speed puzzling is the sport of assembling jigsaw puzzles against the clock: solo, in pairs or in teams. MySpeedPuzzling is where puzzlers from all over the world track their times, compare themselves on leaderboards and rankings, and find, run and follow competitions.

What's inside

  • Results & rankings: solve times for solo, pairs and teams, a puzzle catalogue with thousands of puzzles across brands, per-puzzle leaderboards, the MSP Rating and player statistics.
  • Competitions: an event calendar, registration, live results, standings and a toolkit for organisers, from local meetups to world championships, in person and online.
  • Community: player profiles, collections, a marketplace to sell, swap and lend puzzles, and a partner finder.
  • Open data: a public API with personal access tokens and OAuth2.

The site is translated into English, Czech, German, Spanish, French and Japanese.

Tech stack

Backend PHP 8.5, Symfony 8, FrankenPHP (worker mode), Doctrine ORM, Symfony Messenger
Database PostgreSQL 18
Frontend Twig, Symfony UX (Turbo, Stimulus, Live Components), Bootstrap 5, Chart.js, Webpack Encore
Realtime Mercure
Storage & images S3-compatible object storage, imgproxy
Payments Stripe
Infrastructure Docker, GitHub Actions CI

The code follows a CQRS style: state changes go through Messenger commands and handlers (src/Message/, src/MessageHandler/), reads through raw-SQL query classes (src/Query/).

Running locally

All you need is Docker. Everything else (PHP, Node, PostgreSQL, object storage, mail catcher) runs in containers.

git clone git@github.com:MySpeedPuzzling/myspeedpuzzling.com.git
cd myspeedpuzzling.com
docker compose up

The first start installs dependencies, runs the database migrations and builds the frontend assets, so give it a few minutes. Then open http://localhost:8080.

Want some demo data (players, puzzles, results)? Load the fixtures. This replaces everything in your local database.

docker compose exec web bin/console doctrine:fixtures:load

To sign in, request an e-mail sign-in link for a fixture player such as player1@speedpuzzling.cz (admin: admin@speedpuzzling.cz) and open the e-mail in Mailpit.

Service URL Notes
Website http://localhost:8080
Mailpit (e-mails) http://localhost:8025 every e-mail the app sends lands here
Adminer (database) http://localhost:8000 system PostgreSQL, server postgres, user postgres, password postgres
Images (imgproxy) http://localhost:19100 thumbnails, like on production
Object storage (Garage, S3) http://localhost:19000 bucket puzzle, key speedpuzzling, secret speedpuzzling-local-dev

A port is already taken? Every published port can be changed with an environment variable, for example WEB_PORT=8090 POSTGRES_PORT=55432 docker compose up. The full list is in compose.yml.

Upgrading an older checkout (Postgres 16, MinIO)
  • The database moved from Postgres 16 to 18.7. Copy your old data over once with tools/migrate-local-postgres-to-18.sh.
  • Object storage moved from MinIO to Garage in November 2026. If you still have .docker-data/minio-data, copy it over once with tools/migrate-local-minio-to-garage.sh.

Both scripts leave the old data untouched; see the head of each script for details.

Running tests and checks

PHP and JavaScript commands run inside the containers:

docker compose exec web vendor/bin/paratest --testsuite "Project Test Suite"   # tests, in parallel
docker compose exec web composer run phpstan                                    # static analysis (max level)
docker compose exec web composer run cs-fix                                     # coding standard

These are the same checks CI runs on every pull request.

Contributing

Contributions are welcome, whether it is a bug report, an idea or a pull request.

  • Found a bug or have an idea? Open an issue, or suggest a feature right on myspeedpuzzling.com, where the community votes on feature requests.
  • Want to write code? For anything bigger than a small fix, open an issue first so we can agree on the approach. Then fork the repository, create a branch and open a pull request. Please make sure the tests, PHPStan and the coding standard pass.
  • Translations: texts live in translations/. New texts are written in English first, then added to every other language, so no page falls back to English.
  • Wrong puzzle data (a name, EAN, piece count)? No code needed: use Suggest a change on the puzzle's page.

A few conventions worth knowing before your first pull request:

  • One controller per route (single-action controllers with __invoke).
  • Anything that changes data goes through a Messenger command and its handler; controllers only dispatch.
  • Database changes are made in the Doctrine entities; migrations are generated with bin/console doctrine:migrations:diff, not written by hand.

Feature design notes live in docs/features/. CLAUDE.md and .claude/ hold detailed instructions for AI coding agents; humans are welcome to read them too.

License

MIT, see LICENSE.

About

Source code for the myspeedpuzzling.com application

Topics

Resources

Stars

21 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages