JavaScript library that takes your data and draws the tree of a knockout tournament in the browser. Suitable (hopefully) for any kind of sport
Bracketry is designed to draw single elimination brackets. Technically you can use it to make double elimination brackets too but it won't be that easy and the result won't look very nice (a lot of screen space will be left unused).
import { createBracket } from 'bracketry'
createBracket(your_data, your_wrapper_element)
You only need a wrapper element (advisably with explicit height) and some properly formatted data
🎾 Tennis: doubles, tiebreak, points within a game (15:30 etc), "serving" dot
🍏 Live updates
🔦 Team's path within a tournament is highlighted on click (if you want)
👯 Multiple brackets on a page
📱 Can be easily tuned for mobile devices
3️⃣ Third place match is possible
npm install bracketry
# or
yarn add bracketry
Minified bundle is 48k, gzipped is 12k.
Includes a d.ts file for ease of TypeScript development
MIT