Blog
Building a Tactical Board
I built a free football tactical board with React and TypeScript to help me study football analysis and save teams and game plans.
Hello everyone!
One of my hobbies, besides IT, is football. I enrolled in an online course on football analysis so I can improve the way I watch and understand the game.
So, one of the first things I started searching for on the web to help me on that journey was a good tactical board for my needs, but I couldn’t find anything that wasn’t paid or freemium.
So, I decided to build one with React and TypeScript, using Vite as the build tool. Since this blog is already hosted on Cloudflare with Workers & Pages, I followed the same approach for the Tactical Board website. Deployment is super easy and (at least for now!) it won’t give me any issues, since it’s not a serious project.
Talking more about the Tactical Board itself, besides having 11 players on a pitch, I wanted an easy and practical way to save teams and the pitch setup. So, every time I want to review a certain team or game, I don’t need to put everything back together again. The board and saved teams are stored directly in the browser’s local storage, so there’s no account to create. When I want to share a team or a full game plan, I can export it as a JSON file and import it on another device.
Besides formations and player movement, I also created some tools to make in-depth analysis easier, like arrows, zones, and links. They all have some customization to help build an easy-to-understand board.
Each team can have its own shirt pattern and colors. I also wanted the players to be easy to edit, so their names and numbers are shown in rows that follow the selected formation.
Each tool also has a shortcut to make building boards faster: V for Move, A for a solid arrow, R for a dashed arrow, Z for a zone, L to link players, and E to erase.
I’m still improving it as I use it to study football. If you want to try it, the Tactical Board is available at tacticalboard.pdrso01.com.
My next step is to pull real squads and starting lineups directly onto the board. Web scraping would be the cheapest route, but I doubt it would be reliable enough.
EDIT: Added an option in the “Setups & match import” section to import the page source of a match from playmakerstats.com — the English version of zerozero.pt. It automatically extracts the starting eleven for both teams, fills in the names, kit colours, and substitutes for each team. For me, it’s the best option in terms of low complexity, and it’s easy since I visit zerozero every single day to check match details.
