{"id":23564564,"url":"https://github.com/parnic/node-shiftstats","last_synced_at":"2026-02-18T11:33:28.936Z","repository":{"id":31972967,"uuid":"131091618","full_name":"parnic/node-shiftstats","owner":"parnic","description":"Node package for pulling data from any Digital Shift site (HockeyShift, BasketballShift, etc.)","archived":false,"fork":false,"pushed_at":"2025-11-15T16:21:30.000Z","size":340,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-15T18:21:19.728Z","etag":null,"topics":["baseball","baseballshift","basketball","basketballshift","digitalshift","football","footballshift","hockey","hockeyshift","lacrosse","lacrosseshift","soccer","soccershift","sports","stats"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/node-shiftstats","language":"JavaScript","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/parnic.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-26T02:54:29.000Z","updated_at":"2025-11-15T16:21:28.000Z","dependencies_parsed_at":"2024-06-16T16:22:47.367Z","dependency_job_id":"6c06c56b-f7fa-4856-9356-ae3eb2bc2520","html_url":"https://github.com/parnic/node-shiftstats","commit_stats":{"total_commits":22,"total_committers":2,"mean_commits":11.0,"dds":"0.31818181818181823","last_synced_commit":"bb5b91f80d362decc762dd5e969d033a1661fdca"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/parnic/node-shiftstats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parnic%2Fnode-shiftstats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parnic%2Fnode-shiftstats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parnic%2Fnode-shiftstats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parnic%2Fnode-shiftstats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parnic","download_url":"https://codeload.github.com/parnic/node-shiftstats/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parnic%2Fnode-shiftstats/sbom","scorecard":{"id":720668,"data":{"date":"2025-08-11","repo":{"name":"github.com/parnic/node-shiftstats","commit":"f97406f870d63859042a1a9f5c01e80d611912fd"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/15 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 9 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T11:14:16.537Z","repository_id":31972967,"created_at":"2025-08-22T11:14:16.538Z","updated_at":"2025-08-22T11:14:16.538Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29577976,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T08:38:15.585Z","status":"ssl_error","status_checked_at":"2026-02-18T08:38:14.917Z","response_time":162,"last_error":"SSL_read: 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":false,"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":["baseball","baseballshift","basketball","basketballshift","digitalshift","football","footballshift","hockey","hockeyshift","lacrosse","lacrosseshift","soccer","soccershift","sports","stats"],"created_at":"2024-12-26T17:16:46.740Z","updated_at":"2026-02-18T11:33:28.782Z","avatar_url":"https://github.com/parnic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-shiftstats\nThis package pulls data from DigitalShift sites such as HockeyShift, SoccerShift, LacrosseShift, FootballShift, BasketballShift, and BaseballShift.\n\nFor the Ruby version of this library, see [shift_stats](https://github.com/parnic/shift_stats)\n\n[![npm version](https://badge.fury.io/js/node-shiftstats.svg)](http://badge.fury.io/js/node-shiftstats)\n\n## Install\nYou can install node-shiftstats via npm: `npm install node-shiftstats`\n\n## Usage\n\n```js\nconst ShiftStats = require('node-shiftstats')\n```\n\nCreate a new instance of ShiftStats with\n```js\nlet s = new ShiftStats()\n```\nthen `await` or `.then()` on `s.login()`. This connects to the ShiftStats server, logs in, and stores the ticket hash so you're ready to make any other request. This ticket is only valid for a limited amount of time.\n\nOptionally specify your API key (note: by default uses the same API key as the Android HockeyShift app)\n\n```js\nlet s = new ShiftStats('yourApiKeyHere')\n```\n\nAttempting to login or call any API can `reject`/`catch` if there are network issues or the API key is invalid.\n\nSee [the included example script](https://github.com/parnic/node-shiftstats/blob/master/example.js) for a small sample of interfacing with the library.\n\n### Available methods\n\n* `leagues` - Get a list of all available leagues.\n* `league(leagueId)` - Show details for a specific league.\n* `leagueSeasons(leagueId)` - Get a list of seasons for a specific league.\n* `leagueSuspensions(leagueId, onlyActive = true)` - Get a list of suspended players for the specified league.\n  * `onlyActive` controls whether expired suspensions are included or not.\n  * WARNING: this response can be very large, especially if `onlyActive` is false.\n* `teamSearch(sportName, teamName)` - Search for the given team in the given sport for all active seasons.\n* `teamSchedule(teamId)` - Retrieve the game schedule for the supplied team.\n* `teamPlayersList(teamId)` - Get the list of players on a specific team.\n* `teamsInDivision(divisionName, leagueId, currentSeason = true)` - Get all teams in the named division in the specific league.\n  * This is an odd API that requires the division be a name, not an ID, and requires specifying a league ID to search in.\n* `teamGames(teamId, includeFuture = true, includeToday = true)` - Get all games for a specific team.\n* `teamGamesForStatus(teamId, status = 'Final,In Progress,Forfeit')` - Get a list of all games for a specific team matching the specified type.\n  * Valid values for `status` are `Final`, `In Progress`, and `Forfeit`, and can be mixed and matched, separated by commas.\n* `teamPractices(teamId, includeFuture = true, includeToday = true)` - Get a list of practices schedule for the specified team.\n* `teamSuspensions(teamId, onlyActive = true)` - Get a list of suspensions of players on the specified team.\n  * `onlyActive` controls whether expired suspensions are included or not.\n* `game(gameId)` - Returns data about the specified game.\n* `gameGoals(gameId, only = null)` - Returns a list of goals in the specified game.\n  * Valid values for `only` are `'home'` and `'away'`. If not specified, both teams' goals are included.\n* `gameGoalies(gameId, only = null)` - Returns a list of goalies in the specified game.\n  * Valid values for `only` are `'home'` and `'away'`. If not specified, both teams' goalies are included.\n* `gamePenalties(gameId, only = null)` - Returns a list of penalties in the specified game.\n  * Valid values for `only` are `'home'` and `'away'`. If not specified, both teams' penalties are included.\n* `gameRoster(gameId, only = null)` - Returns the roster for the specified game.\n  * Valid values for `only` are `'home'` and `'away'`. If not specified, both teams' rosters are included.\n* `divisionGamesList(divisionId)` - Returns all games for a specified division.\n* `divisionStandings(divisionId, type = 'Regular Season')` - Returns a ranked list of teams for the specified division.\n  * Valid values for `type` are `Regular Season`, `Playoffs`, and `Exhibition`.\n* `divisionTeams(divisionId)` - Lists all teams in the specified division.\n* `divisionLeaders(divisionId, type = 'Regular Season', limit = 20, metrics = ['points', 'goals'])` - Lists up to `limit` number of leaders for the specified division.\n  * Valid values for `type` are `Regular Season`, `Playoffs`, and `Exhibition`.\n  * Valid values for `metrics` include anything listed in `league(leagueId).league.view_settings.leader_metrics`.\n* `divisionSuspensions(divisionId, onlyActive = true)` - Get a list of suspensions of players in the specified division.\n  * `onlyActive` controls whether expired suspensions are included or not.\n* `season(seasonId)` - Show details for a specific season.\n* `seasonDivisionsList(seasonId)` - Lists all divisions for the specified season.\n* `seasonSuspensions(seasonId, onlyActive = true)` - Get a list of suspended players for the specified season.\n  * `onlyActive` controls whether expired suspensions are included or not.\n\n## Bug reports, feature requests, contributions\n\nPlease create an issue or pull request on github. Assistance is most welcome.\n\nThere are more endpoints available on Shift sites, but none are documented. Running a mobile app inside an emulator and watching wireshark, fiddler, etc. is how the current endpoints were discovered.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparnic%2Fnode-shiftstats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparnic%2Fnode-shiftstats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparnic%2Fnode-shiftstats/lists"}