MCPcopy Index your code
hub / github.com/evroon/bracket

github.com/evroon/bracket @v2.2.5

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.2.5 ↗ · + Follow
1,048 symbols 5,375 edges 302 files 24 documented · 2%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Bracket - Tournament System

build status translations last commit release codecov

Demo · Documentation · Quickstart · GitHub · Releases

evroon/bracket | Trendshift

Tournament system meant to be easy to use. Bracket is written in async Python (with FastAPI) and Next.js as frontend using the Mantine library.

It has the following features: - Supports single elimination, round-robin and swiss formats. - Build your tournament structure with multiple stages that can have multiple groups/brackets in them. - Drag-and-drop matches to different courts or reschedule them to another start time. - Various dashboard pages are available that can be presented to the public, customized with a logo. - Create/update teams, and add players to teams. - Create multiple clubs, with multiple tournaments per club. - Swiss tournaments can be handled dynamically, with automatic scheduling of matches.

Explore the Bracket docs  ▶

Live Demo

A demo is available for free at https://www.bracketapp.nl/demo. The demo lasts for 30 minutes, after which your data will de deleted.

Quickstart

To quickly run bracket to see how it works, clone it and run docker compose up:

git clone git@github.com:evroon/bracket.git
cd bracket
sudo docker compose up -d

This will start the backend and frontend of Bracket, as well as a postgres instance. You should now be able to view bracket at http://localhost:3000. You can log in with the following credentials:

  • Username: test@example.org
  • Password: aeGhoe1ahng2Aezai0Dei6Aih6dieHoo.

To insert dummy rows into the database, run:

sudo docker exec bracket-backend pipenv run ./cli.py create-dev-db

See also the quickstart docs.

Usage

Read the usage guide for how to organize a tournament in Bracket from start to finish.

Configuration

Read the configuration docs for how to configure Bracket.

Bracket's backend is configured using .env files (prod.env for production, dev.env for development etc.). But you can also configure Bracket using environment variables directly, for example by specifying them in the docker-compose.yml.

The frontend doesn't can be configured by environment variables as well, as well as .env files using Next.js' way of loading environment variables.

Running Bracket in production

Read the deployment docs for how to deploy Bracket and run it in production.

Bracket can be run in Docker or by itself (using pipenv and yarn).

Development setup

Read the development docs for how to run Bracket for development.

Prerequisites are yarn, postgresql and pipenv to run the frontend, database and backend.

Translations

Based on your browser settings, your language should be automatically detected and loaded. For now, there's no manual way of choosing a different language.

Supported Languages

To add/refine translations, Crowdin is used. See the docs for more information.

More screenshots

Help

If you're having trouble getting Bracket up and running, or have a question about usage or configuration, feel free to ask. The best place to do this is by creating a Discussion.

Supporting Bracket

If you're using Bracket and would like to help support its development, that would be greatly appreciated!

Several areas that we need a bit of help with at the moment are: - ⭐ Star Bracket on GitHub - 🌐 Translating: Help make Bracket available to non-native English speakers by adding your language (via crowdin) - 📣 Spread the word by sharing Bracket to help new users discover it - 🖥️ Submit a PR to add a new feature, fix a bug, extend/update the docs or something else

See the contribution docs for more information on how to contribute

Contributors

evroon Erik Vroon robigan Null BachErik BachErik djpiper28 Danny Piper MaxRickettsUy Max Ricketts-Uy sevi418 Sevi C
nvanheuverzwijn Nicolas Vanheuverzwijn IzStriker IzStriker jmillxyz Jon Miller babeuh Raphael Le Goaller

License

Bracket is licensed under AGPL-v3.0.

Please note that any contributions also fall under this license.

See LICENSE

Extension points exported contracts — how you extend this code

FormValues (Interface)
(no doc)
frontend/src/components/modals/create_stage_item.tsx
FAQProps (Interface)
(no doc)
docs/components/FAQ.tsx
Pagination (Interface)
(no doc)
frontend/src/components/utils/util.tsx
ServiceProps (Interface)
(no doc)
docs/components/Features.tsx
Options (Interface)
(no doc)
frontend/src/components/utils/query_parameters.tsx
statsProps (Interface)
(no doc)
docs/components/Statistics.tsx
TableState (Interface)
(no doc)
frontend/src/components/tables/table.tsx
FeatureProps (Interface)
(no doc)
docs/components/AdvancedFeatures.tsx

Core symbols most depended-on inside this repo

send_tournament_request
called by 53
backend/tests/integration_tests/api/shared.py
createAxios
called by 51
frontend/src/services/adapter.tsx
insert_dummy
called by 50
backend/bracket/utils/db_init.py
inserted_team
called by 50
backend/tests/integration_tests/sql.py
handleRequestError
called by 45
frontend/src/services/adapter.tsx
model_dump
called by 43
backend/bracket/models/db/shared.py
assert_row_count_and_clear
called by 33
backend/tests/integration_tests/sql.py
assert_some
called by 28
backend/bracket/utils/types.py

Shape

Function 761
Class 141
Route 61
Interface 43
Method 42

Languages

Python65%
TypeScript35%

Modules by API surface

frontend/src/services/adapter.tsx32 symbols
backend/bracket/routes/models.py22 symbols
backend/bracket/models/db/match.py18 symbols
backend/tests/integration_tests/sql.py17 symbols
backend/bracket/models/db/stage_item_inputs.py17 symbols
backend/bracket/routes/tournaments.py14 symbols
backend/bracket/routes/stages.py14 symbols
frontend/src/interfaces/match.tsx13 symbols
backend/bracket/sql/users.py13 symbols
backend/bracket/routes/teams.py13 symbols
frontend/src/components/utils/util.tsx12 symbols
backend/bracket/routes/users.py12 symbols

Datastores touched

bracketDatabase · 1 repos
bracket_ciDatabase · 1 repos
bracket_devDatabase · 1 repos
dbDatabase · 1 repos

For agents

$ claude mcp add bracket \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact