{"id":13941710,"url":"https://github.com/paaatrick/playball","last_synced_at":"2025-07-20T05:30:52.525Z","repository":{"id":1564838,"uuid":"42956071","full_name":"paaatrick/playball","owner":"paaatrick","description":"Watch MLB games from the comfort of your own terminal","archived":false,"fork":false,"pushed_at":"2025-04-08T14:49:11.000Z","size":2835,"stargazers_count":536,"open_issues_count":6,"forks_count":27,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-07-03T17:46:09.427Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/paaatrick.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2015-09-22T19:29:38.000Z","updated_at":"2025-05-31T21:17:46.000Z","dependencies_parsed_at":"2025-04-18T00:45:00.647Z","dependency_job_id":"74cb78eb-1f70-4760-be0a-e179ba8fc323","html_url":"https://github.com/paaatrick/playball","commit_stats":{"total_commits":170,"total_committers":6,"mean_commits":"28.333333333333332","dds":0.04705882352941182,"last_synced_commit":"5eaf6a3b43cf67d07e6a70cd368b515d9095f660"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/paaatrick/playball","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paaatrick%2Fplayball","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paaatrick%2Fplayball/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paaatrick%2Fplayball/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paaatrick%2Fplayball/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paaatrick","download_url":"https://codeload.github.com/paaatrick/playball/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paaatrick%2Fplayball/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266071519,"owners_count":23871940,"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":"2024-08-08T02:01:25.601Z","updated_at":"2025-07-20T05:30:52.475Z","avatar_url":"https://github.com/paaatrick.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"## Playball!\nWatch MLB games from the comfort of your own terminal\n\n![screenshot](./demo.gif)\n\n### Why?\n[MLB Gameday](http://www.mlb.com/mlb/gameday/#) and [MLB.tv](http://mlb.tv) are\ngreat, but sometimes you want to keep an eye on a game a bit more discreetly.\n`playball` puts the game in a terminal window.\n\n### Quick Start\nJust want to try it out?\n```\n$ npx playball\n```\n\n### Install\nReady for the big leagues? Install the package globally\n```\n$ npm install -g playball\n```\nThen run it\n```\n$ playball\n```\n\n### Docker\n```\n$ docker build -t playball .\n$ docker run -it --rm --name playball playball:latest\n```\n\n### Keys\n#### Global\nkey | action\n----|--------\n\u003ckbd\u003eq\u003c/kbd\u003e | quit\n\u003ckbd\u003ec\u003c/kbd\u003e | go to schedule view\n\u003ckbd\u003es\u003c/kbd\u003e | go to standings view\n\n#### Schedule View\nkey | action\n----|--------\n\u003ckbd\u003e\u0026darr;\u003c/kbd\u003e/\u003ckbd\u003ej\u003c/kbd\u003e, \u003ckbd\u003e\u0026uarr;\u003c/kbd\u003e/\u003ckbd\u003ek\u003c/kbd\u003e, \u003ckbd\u003e\u0026larr;\u003c/kbd\u003e/\u003ckbd\u003eh\u003c/kbd\u003e, \u003ckbd\u003e\u0026rarr;\u003c/kbd\u003e/\u003ckbd\u003el\u003c/kbd\u003e | change highlighted game\n\u003ckbd\u003eenter\u003c/kbd\u003e | view highlighted game\n\u003ckbd\u003ep\u003c/kbd\u003e | show previous day's schedule/results\n\u003ckbd\u003en\u003c/kbd\u003e | show next day's schedule\n\u003ckbd\u003et\u003c/kbd\u003e | return to today's schedule\n\n#### Game View\nkey | action\n----|--------\n\u003ckbd\u003e\u0026darr;\u003c/kbd\u003e/\u003ckbd\u003ej\u003c/kbd\u003e, \u003ckbd\u003e\u0026uarr;\u003c/kbd\u003e/\u003ckbd\u003ek\u003c/kbd\u003e | scroll list of all plays\n\n### Configuration\n\nPlayball can be configured using the `config` subcommand. To list the current configuration values run the subcommand with no additional arguments:\n\n```shell\nplayball config\n```\n\nYou should see output similar to:\n\n```\ncolor.ball = green\ncolor.favorite-star = yellow\ncolor.in-play-no-out = blue\ncolor.in-play-out = white\ncolor.in-play-runs-bg = white\ncolor.in-play-runs-fg = black\ncolor.on-base = yellow\ncolor.other-event = white\ncolor.out = red\ncolor.strike = red\ncolor.strike-out = red\ncolor.walk = green\nfavorites = \n```\n\nTo get the value of a single setting pass the key as an additional argument:\n\n```shell\nplayball config color.strike\n```\n\nTo change a setting pass the key and value as arguments:\n\n```shell\nplayball config color.strike blue\n```\n\nTo revert a setting to its default value provide the key and the `--unset` flag:\n\n```shell\nplayball config color.strike --unset\n```\n\nThis table summarizes the available settings:\n\nkey | description | default | allowed values\n----|-------------|---------|---------------\n`color.ball` | Color of dots representing balls in top row of game view | green | One of the following: `black`, `red`, `green`, `yellow`, `blue`, `magenta`, `cyan`, `white`, `grey`. Any of those colors may be prefixed by `bright-` or `light-` (for example `bright-green`). The exact color used will depend on your terminal settings. The value `default` may be used to specify the default text color for your terminal. Finally hex colors (e.g `#FFA500`) can be specified. If your terminal does not support true color, the closest supported color may be used. \n`color.favorite-star` | Color of star indiciating favorite team in schedule and standing views | yellow | _See above_\n`color.in-play-no-out` | Color of result where ball was put in play and no out was made (single, double, etc) in list of plays in game view | blue | _See above_\n`color.in-play-out` | Color of result where ball was put in play and an out was made (flyout, fielder's choice, etc) in list of plays in game view | white | _See above_\n`color.in-play-runs-bg` | Background color for score update in list of plays in game view | white | _See above_\n`color.in-play-runs-fg` | Foreground color for score update in list of plays in game view | black | _See above_\n`color.on-base` | Color of diamonds representing runners on base in top row of game view | yellow | _See above_\n`color.other-event` | Color of other events (mound visit, injury delay, etc) in list of plays in game view | white | _See above_\n`color.out` | Color of dots representing outs in top row of game view | red | _See above_\n`color.strike` | Color of dots representing strikes in top row of game view | red | _See above_\n`color.strike-out` | Color of result where play ends on a strike (strike out) in list of plays in game view | red | _See above_\n`color.walk` | Color of result where play ends on a ball (walk, hit by pitch) in list of plays in game view | green | _See above_\n`favorites` | Teams to highlight in schedule and standings views | | Any one of the following: `ATL`, `AZ`, `BAL`, `BOS`, `CHC`, `CIN`, `CLE`, `COL`, `CWS`, `DET`, `HOU`, `KC`, `LAA`, `LAD`, `MIA`, `MIL`, `MIN`, `NYM`, `NYY`, `OAK`, `PHI`, `PIT`, `SD`, `SEA`, `SF`, `STL`, `TB`, `TEX`, `TOR`, `WSH`. Or a comma-separated list of multiple (e.g. `SEA,MIL`)\n\n### Development\n```\ngit clone https://github.com/paaatrick/playball.git\ncd playball\nnpm install\nnpm start\n```\nContributions are welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaaatrick%2Fplayball","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaaatrick%2Fplayball","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaaatrick%2Fplayball/lists"}