{"_id":"@amonroe7/playball","name":"@amonroe7/playball","dist-tags":{"latest":"3.4.0"},"versions":{"3.4.0":{"name":"@amonroe7/playball","version":"3.4.0","description":"Watch MLB games from the comfort of your terminal","keywords":["MLB","gameday","baseball","cli","terminal"],"scripts":{"build":"npm run lint && npm run clean && npm run compile","clean":"rimraf ./dist","compile":"babel src --out-dir dist","lint":"eslint --ext .jsx,.js src","start":"babel src --out-dir dist --watch","prepublishOnly":"npm run build","react-devtools":"react-devtools","test":"echo \"No tests yet\""},"bin":{"playball":"bin/playball.js"},"repository":{"type":"git","url":"git+https://github.com/alex-monroe/playball.git"},"author":{"name":"amonroe7"},"bugs":{"url":"https://github.com/alex-monroe/playball/issues"},"homepage":"https://github.com/alex-monroe/playball","preferGlobal":true,"license":"MIT","dependencies":{"@date-fns/utc":"^2.1.1","@reduxjs/toolkit":"^1.8.0","axios":"^0.26.1","blessed":"^0.1.81","commander":"^11.0.0","conf":"^11.0.1","date-fns":"^4.1.0","figlet":"^1.10.0","json-patch":"^0.7.0","prop-types":"^15.8.1","raf":"^3.4.1","react":"^17.0.2","react-blessed":"^0.7.2","react-devtools-core":"^4.24.7","react-redux":"^7.2.6","redux":"^4.1.2","update-notifier":"^6.0.2","winston":"^3.7.2"},"devDependencies":{"@babel/cli":"^7.17.10","@babel/core":"^7.18.2","@babel/node":"^7.17.10","@babel/preset-env":"^7.18.2","@babel/preset-react":"^7.17.12","babel-plugin-module-resolver":"^4.1.0","eslint":"^8.12.0","eslint-plugin-react":"^7.29.4","react-devtools":"^4.24.7","rimraf":"^2.6.3","ws":"^8.5.0"},"type":"module","babel":{"presets":[["@babel/preset-env",{"targets":{"node":"14"},"modules":false}],"@babel/preset-react"],"plugins":[["module-resolver",{"alias":{"react-redux":"react-redux/lib/alternate-renderers.js"}}]]},"gitHead":"e6a3a8398ddcef673dce19ea70e96a24040c3c1b","_id":"@amonroe7/playball@3.4.0","_nodeVersion":"25.3.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-/9Y3aT2u8X4t+mkKfjjHfP8ITvwuk/ioKJx1C2y4Vkek+uDdiFNYMAZn5KIXkIHEmnOgtq89UZCmx8p53HqdLw==","shasum":"53fff5e3c49be10600430b536e4ec3376030a5a2","tarball":"https://registry.npmjs.org/@amonroe7/playball/-/playball-3.4.0.tgz","fileCount":38,"unpackedSize":83894,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCUCx1IUxlVqbvm89R6EeDAvA+8jb+YhcKkBdgPpTfx5AIhAPCSrndiH7ejlUI5Bk1VHh4SAG6vw8SReRvI2cpryjsw"}]},"_npmUser":{"name":"amonroe7","email":"alexrmonroe@gmail.com"},"directories":{},"maintainers":[{"name":"amonroe7","email":"alexrmonroe@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/playball_3.4.0_1777611872009_0.7607931051175634"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-01T05:04:31.952Z","3.4.0":"2026-05-01T05:04:32.145Z","modified":"2026-05-01T05:04:32.310Z"},"maintainers":[{"name":"amonroe7","email":"alexrmonroe@gmail.com"}],"description":"Watch MLB games from the comfort of your terminal","homepage":"https://github.com/alex-monroe/playball","keywords":["MLB","gameday","baseball","cli","terminal"],"repository":{"type":"git","url":"git+https://github.com/alex-monroe/playball.git"},"author":{"name":"amonroe7"},"bugs":{"url":"https://github.com/alex-monroe/playball/issues"},"license":"MIT","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\nDon't have Node.js installed? You can run via Docker instead.\n```\n$ docker run -it --rm paaatrick0/playball\n```\n\n> [!TIP]\n> When running via Docker, times will be shown by default in Eastern Time. To change this, set the `TZ` environment variable to your desired timezone. \n> \n> For Central Time use:\n> ```\n> $ docker run -it --rm -e TZ=America/Chicago paaatrick0/playball\n> ```\n> For Mountain Time use:\n> ```\n> $ docker run -it --rm -e TZ=America/Denver paaatrick0/playball\n> ```\n> For Pacific Time use:\n> ```\n> $ docker run -it --rm -e TZ=America/Los_Angeles paaatrick0/playball\n> ```\n> For other timezones see the list of [TZ database time zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).\n\n### Keys\n#### Global\nkey | action\n----|--------\n<kbd>q</kbd> | quit\n<kbd>c</kbd> | go to schedule view\n<kbd>s</kbd> | go to standings view\n\n#### Schedule View\nkey | action\n----|--------\n<kbd>&darr;</kbd>/<kbd>j</kbd>, <kbd>&uarr;</kbd>/<kbd>k</kbd>, <kbd>&larr;</kbd>/<kbd>h</kbd>, <kbd>&rarr;</kbd>/<kbd>l</kbd> | change highlighted game\n<kbd>enter</kbd> | view highlighted game\n<kbd>p</kbd> | show previous day's schedule/results\n<kbd>n</kbd> | show next day's schedule\n<kbd>t</kbd> | return to today's schedule\n\n#### Game View\nkey | action\n----|--------\n<kbd>&darr;</kbd>/<kbd>j</kbd>, <kbd>&uarr;</kbd>/<kbd>k</kbd> | scroll list of all plays\n\n### World Baseball Classic\n\nWatch World Baseball Classic games by setting the sport configuration:\n\n```shell\nplayball config sport wbc\n```\n\nOr use an environment variable for one-time viewing:\n\n```shell\nPLAYBALL_SPORT=wbc playball\n```\n\nTo switch back to MLB:\n\n```shell\nplayball config sport mlb\n```\n\nWhen running via Docker:\n\n```shell\ndocker run -it --rm -e PLAYBALL_SPORT=wbc paaatrick0/playball\n```\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`).<br/><br />Note: in some terminals the list must be quoted: `playball config favorites \"SEA,MIL\"`\n`title` | If enabled, the terminal title will be set to the score of the current game | `false` | `false`, `true`\n`live-delay` | Number of seconds to delay the live game stream. Useful when watching with delayed broadcast streams. | `0` (no delay) | Any positive number\n`sport` | Which sport/league to display | `mlb` | `mlb`, `wbc`\n\n### Development\n```\ngit clone https://github.com/paaatrick/playball.git\ncd playball\nnpm install\nnpm start\n```\nContributions are welcome!\n","readmeFilename":"README.md","_rev":"1-fd52a0602b354d5a9ab741a1f3df7181"}