{"id":25803159,"url":"https://github.com/flocasts/lynx-scoreboard","last_synced_at":"2025-02-27T17:44:22.718Z","repository":{"id":39568648,"uuid":"278137282","full_name":"flocasts/lynx-scoreboard","owner":"flocasts","description":"Connection interface to FinishLynx Scoreboard","archived":false,"fork":false,"pushed_at":"2023-07-18T22:53:01.000Z","size":680,"stargazers_count":4,"open_issues_count":15,"forks_count":1,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-02-07T17:39:11.921Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flocasts.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-08T16:14:40.000Z","updated_at":"2024-12-26T05:25:56.000Z","dependencies_parsed_at":"2023-02-06T00:01:18.637Z","dependency_job_id":null,"html_url":"https://github.com/flocasts/lynx-scoreboard","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flocasts%2Flynx-scoreboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flocasts%2Flynx-scoreboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flocasts%2Flynx-scoreboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flocasts%2Flynx-scoreboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flocasts","download_url":"https://codeload.github.com/flocasts/lynx-scoreboard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241040404,"owners_count":19898861,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2025-02-27T17:44:21.975Z","updated_at":"2025-02-27T17:44:22.700Z","avatar_url":"https://github.com/flocasts.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lynx-scoreboard\n\nCreate a Scoreboard Interface to listen to updates from FinishLynx\n\n## Publish new version\nEdit Cloud Build trigger by updating _FLO_NPM_TOKEN with a valid github personal access token.\nUpdate version in package.json\nMerge changes to master branch\n\n## Usage Example\nUse \"npm run build\" to create dist version of example.js\nOpen terminal and cd to \"lynx-scoreboard\\dist\"\nRun command \"node example.js\"\n\n```javascript\nconst scoreboard = await LynxScoreboard.listen({\n  port: 8080,\n  ip: \"127.0.0.1\",\n});\n\nif (scoreboard.isListening) {\n  console.log(\"I am listening!\");\n}\n\nscoreboard.subscribe(\"error\", (err) =\u003e {\n  console.log(`Uh oh! There was an error: ${err}`);\n});\n\nscoreboard.subscribe(\"results\", (data) =\u003e {\n  console.log(\n    `Received ${data.results.length} results from ${data.event.eventName}`\n  );\n});\n\nscoreboard.subscribe(\"directive\", (data) =\u003e {\n  console.log(`Received directive: ${data.title}`);\n});\n\nscoreboard.subscribe(\"stoppedListening\", () =\u003e {\n  console.log(`I stopped listening!`);\n});\n\n// Stop listening after 10 seconds\nsetTimeout(() =\u003e scoreboard.stopListening(), 10000);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflocasts%2Flynx-scoreboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflocasts%2Flynx-scoreboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflocasts%2Flynx-scoreboard/lists"}