{"id":28381090,"url":"https://github.com/mvicens/sporscor","last_synced_at":"2026-02-16T02:38:37.512Z","repository":{"id":290818277,"uuid":"975666117","full_name":"mvicens/sporscor","owner":"mvicens","description":"TypeScript API to manage sport data getting scoreboards and statistics","archived":false,"fork":false,"pushed_at":"2026-02-06T22:27:32.000Z","size":224,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-07T08:45:35.296Z","etag":null,"topics":["api-client","data","score","scoreboards","sport","statistics","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mvicens.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-30T17:33:37.000Z","updated_at":"2026-02-06T22:39:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"694d4f44-6b19-46e8-a550-bc2aa3d67620","html_url":"https://github.com/mvicens/sporscor","commit_stats":null,"previous_names":["mvicens/sporscor"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/mvicens/sporscor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvicens%2Fsporscor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvicens%2Fsporscor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvicens%2Fsporscor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvicens%2Fsporscor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mvicens","download_url":"https://codeload.github.com/mvicens/sporscor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvicens%2Fsporscor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29498757,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T02:07:14.481Z","status":"online","status_checked_at":"2026-02-16T02:03:22.852Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-client","data","score","scoreboards","sport","statistics","typescript"],"created_at":"2025-05-30T03:38:01.283Z","updated_at":"2026-02-16T02:38:37.508Z","avatar_url":"https://github.com/mvicens.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SporScor\n\nTypeScript API to manage sports data, including scoreboards and statistics.\n\nImplemented matches (for now):\n- Basketball\n- Tennis (only players, not pairs)\n- Volleyball\n\n## Demo\n\n[Here](https://mvicens.github.io/sporscor/) you have to try it out.\n\n## Get started\n\n```sh\nnpm install sporscor\n```\n\nThis is a sample with tennis:\n\n```ts\nimport { Player, TennisMatch } from 'sporscor';\n\nconst\n\tplayerOne = new Player('R. Federer'),\n\tplayerTwo = new Player('R. Nadal'),\n\n\t// Obviously, you can use any HTML elements you want\n\tscoreboard = document.getElementById('scoreboard'),\n\tstats = document.getElementById('stats'),\n\n\tmatch = new TennisMatch(playerOne, playerTwo, () =\u003e {\n\t\tscoreboard!.innerHTML = match.getScoreboard();\n\t\tstats!.innerHTML = match.getStats();\n\t});\n```\n\nAnd then, proceed like e.g.:\n\n```ts\nmatch.start();\n// match.play(); // It would failed (due to someone should be the opening server)\nmatch.grantOpeningServeTo(playerTwo);\nmatch.play();\nmatch.logPointWonBy(playerOne);\nmatch.logServeAsFault();\nmatch.logPointWonBy(playerTwo);\nmatch.logServeAsFault();\nmatch.logServeAsFault();\nmatch.logServeAsAce();\nmatch.logPointWonBy(playerOne);\n```\n\nNow look at current content. What about it?\n\nTo speed it up, you can use the panel, obtained from `.getPanel()`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvicens%2Fsporscor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmvicens%2Fsporscor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvicens%2Fsporscor/lists"}