Package Exports
- nba-tipoff
- nba-tipoff/src/main.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nba-tipoff) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
nba-tipoff - NBA Terminal Viewer
A command-line interface for following live NBA games directly in your terminal.
Installation
npm install -g nba-tipoffUsage
# Launch with today's games
nba-tipoff
# Or use with npx (no installation required)
npx nba-tipoffDevelopment
Setup
# Clone the repository
git clone https://github.com/rfwilliams11/tipoff.git
cd tipoff
# Install dependencies
npm install
# Link the package locally for testing the CLI
npm linkRunning the Application
# Run in development mode
npm run dev
# Or use the CLI command (if linked)
nba-tipoff
# Run with options
nba-tipoff --date 2024-01-15
nba-tipoff --team LALTesting
# Run tests
npm test
# Run tests with coverage
npm run test:coverageProject Structure
bin/tipoff- CLI executable entry pointsrc/main.js- Application bootstrap (auto-starts when run directly)src/cli.js- Command-line interface handlersrc/components/- React components for terminal UIsrc/store/- Redux store and slices (scoreboard, games)src/services/- API services and polling logicsrc/utils/- Utility functions and helpers
Architecture Notes
- Terminal UI: Built with
react-blessedfor rendering React components in the terminal - State Management: Redux Toolkit for managing application state
- Live Updates: Polling service for real-time game data from ESPN API
- Entry Points:
npm run devexecutessrc/main.jsdirectly (auto-starts)nba-tipoffcommand runs throughbin/tipoff→cli.js→main.start()
Features
- View today's NBA games in terminal
- Navigate between different dates
- View detailed game information with live updates
- Real-time statistics and play-by-play
- Keyboard navigation and shortcuts
Keyboard Controls
Scoreboard View
↑/↓orj/k- Navigate between gamesEnter- View detailed game informationn- Next dayp- Previous dayt- Go to todayqorEsc- Quit
Game Detail View
c- Return to scoreboardqorEsc- Quit
License
MIT