world-cup-tui provides a terminal-based interface for tracking live FIFA World Cup scores and match details. With automatic updates, match stats, and seamless integration with ESPN's live data, this tool enhances the experience for soccer fans without requiring an API key. Enjoy an efficient way to follow every moment of the tournament.
The world-cup-tui project is a terminal-based application that offers a live scoreboard and match timeline specifically designed for the FIFA World Cup. This tool pulls data directly from ESPN's public endpoints, allowing users to experience live scores, match statuses, detailed stats, events, and commentary without the need for an API key.
To get started with the application, one can utilize the default commands. Here is an example of how to run the app after installation:
npm run dev
Manage your navigation with simple keyboard shortcuts:
j / down: Move down or scroll through the match timeline.k / up: Move up or scroll through the match timeline.enter: Open the selected match for more details.b / esc: Return to the match list.r: Refresh the current scoreboard view.o: Open the selected match page in your browser on ESPN.q: Quit the application.Additional configuration can be set through command-line options, such as:
npm run dev -- --refresh 10
This command specifies an auto-refresh interval of 10 seconds. Other options include setting a specific date for the scoreboard or limiting the count of events displayed.
The application retrieves live match data from the following ESPN endpoints:
https://site.api.espn.com/apis/site/v2/sports/soccer/fifa.world/scoreboardhttps://site.web.api.espn.com/apis/site/v2/sports/soccer/fifa.world/summaryThese endpoints are accessed to provide live data during the FIFA World Cup, including real-time commentary for ongoing matches. Although these do not form part of a formal API contract, the adapter used in the application remains concise and well-structured to ensure functionality.
For developers looking to contribute or modify the project, standard commands for type checking, testing, and building are available, ensuring a streamlined development workflow.
No comments yet.
Sign in to be the first to comment.