Skip to content

ShiiiivanshSingh/fcb-score-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

20 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

FC Barcelona Crest

FC Barcelona Live Tracker πŸ”΅πŸ”΄

A feature-rich Chrome extension for real-time FC Barcelona scores, fixtures, standings, and more β€” in pure Blaugrana style.

Chrome Extension How to Install API Key Setup


why i made this

ok i want to confess something β€” most of the time when i make something i don't really interact with you. yes, you. this makes my whole profile feel very robotic, no personality or soul, while it may seem like it, but that's not the case. i've realised all i want is perfection and that comes with a cost β€” the cost of having no soul, no personality.

so here it is. i made this because (a) i love barΓ§a and (b) i was bored at home. i hope at least one person finds it useful, and even if you don't β€” honestly it doesn't matter. i've been building stuff for so long but always felt like i didn't put any personality into it. so that's why i'm writing this, as a message to myself: put yourself out there no matter how much this world will clown you for it. peace. ✌️


✨ Features

Feature Description
🟑 Live Score Real-time score, match minute, and status pill (LIVE / HT / FT) with auto-refresh
⚽ Goal Events In-popup animated toast + live event strip showing goalscorers, OGs, and penalties
πŸŸ₯ Card Events Yellow ⚠️ and red πŸŸ₯ card bookings shown inline with goals in the live strip
🏟 Venue & Referee Stadium name and referee shown on the live card
πŸ‘• Starting XI Tap "Lineup β–Ό" during a live match to expand both teams' starting elevens
πŸ“… Upcoming Fixtures Next scheduled matches with countdown timer and H/A indicator
🏁 Recent Results Last results with score, W/D/L badge, and "Show more" to expand up to 20
πŸ“Š La Liga Standings BarΓ§a's current La Liga position, played/won/drawn/lost/points
πŸ† UCL Standings Champions League standing with a La Liga / UCL tab switcher
⚽ Top Scorers Barça's top 5 La Liga goalscorers for the season
πŸ“ˆ Form Guide Recent form dots (W/D/L) calculated from last results
πŸ” Competition Filter Filter fixtures and results by competition (La Liga, UCL, Copa…) from the βš™οΈ settings panel
πŸ”” Smart Notifications Background push notifications for kick-off, half time, full time, goals β€” individually toggleable
⏰ Pre-Match Alarm Notification 15 minutes before kick-off
πŸ”— Clickable Rows Click any fixture or result to open a Google search for that match
⚑ Rate-Limit Safe Cache API responses cached for 60 seconds β€” popup opens are instant and never hit your rate limit

πŸ“Έ Preview

FC Barcelona Live Tracker Preview

πŸ›‘οΈ API Key Setup

This extension uses the free football-data.org API.

Free tier: 10 requests/minute β€” the extension is designed to stay well within this limit via response caching.

Steps

  1. Sign up at football-data.org and copy your API key from the dashboard.

  2. Create config.js in the extension directory:

    // config.js
    export const API_KEY = 'YOUR_API_KEY_HERE';
  3. config.js is in .gitignore β€” it will never be committed to your repo. Keep your key private.

  4. Reload the extension at chrome://extensions/ after adding the file.

If you see a "Could not load data" or "API key missing" error in the popup, click "See why β†—" which links directly here.


πŸš€ Getting Started

Installation

  1. Download the ZIP and extract it.
  2. Open Chrome and navigate to:
    chrome://extensions/
    
  3. Enable Developer Mode (top-right toggle).
  4. Click "Load unpacked" and select the extracted folder.
  5. The BarΓ§a crest πŸ”΅πŸ”΄ appears in your toolbar β€” you're done.

Requirements

  • Any Chromium-based browser (Chrome, Edge, Brave, Arc, etc.)
  • A free football-data.org API key

πŸ› οΈ Troubleshooting

Problem Likely cause Fix
"API key missing or invalid" config.js missing or wrong key Re-check API Key Setup
Data not updating Rate limited (> 10 req/min) Wait 60 s, the cache will expire and retry
UCL standings empty BarΓ§a not currently in a UCL group stage Expected β€” only shows when data is available
Lineup not showing API doesn't return lineups until closer to kick-off Check back nearer match time

πŸ”§ Tech Stack

HTML5 CSS3 JavaScript Chrome Extensions Football Data API

Architecture:

  • manifest.json β€” MV3 extension manifest
  • popup.html / popup.css / popup.js β€” the extension popup UI
  • background.js β€” service worker for background polling and push notifications
  • settings.js β€” shared notification preference helpers (chrome.storage.local)
  • config.js β€” your API key (not committed, gitignored)

🀝 Contributing

  1. Fork the repository
  2. Create your feature branch: git checkout -b feature/my-feature
  3. Commit your changes: git commit -m 'Add my feature'
  4. Push to the branch: git push origin feature/my-feature
  5. Open a Pull Request

πŸ“„ License

MIT License β€” see LICENSE for details.


πŸ”— Connect

GitHub LinkedIn Twitter

Download GitHub

Built with β™₯️ by sh1vansh β€” Visca el BarΓ§a! πŸ”΅πŸ”΄

About

an extension for real-time FC Barcelona scores, fixtures, and results

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors