realtime-data-cli-tool
v1.0.1
Published
A real-time data dashboard CLI tool built with Ink, React, and TypeScript that displays live ISS location, weather, Bitcoin prices, random facts, and inspirational quotes
Maintainers
Readme
Real-Time Data CLI Dashboard
A beautiful terminal dashboard that displays real-time data from around the world, built with Ink, React, and TypeScript.
Features
- 🛰️ Live ISS Tracking - See the International Space Station's current location
- 🌤️ Weather Information - Current weather conditions
- ₿ Bitcoin Price - Real-time cryptocurrency prices with change indicators
- 🧠 Random Facts - Interesting facts that update automatically
- 💭 Inspirational Quotes - Motivational quotes to brighten your day
- ⏰ Live Clock - Current time display
- 🌈 Beautiful UI - Colorful, responsive terminal interface
Install
$ npm install --global realtime-data-cli-toolUsage
# Run with default settings
$ realtime-data-cli-tool
# Run with custom name
$ realtime-data-cli-tool --name="Your Name"CLI Options
$ realtime-data-cli-tool --help
Usage
$ realtime-data-cli-tool
Options
--name Your name (optional, default: "Stranger")
Examples
$ realtime-data-cli-tool
$ realtime-data-cli-tool --name="John Doe"Screenshot
The dashboard displays:
- Live ISS coordinates with latitude/longitude
- Current weather information
- Bitcoin price with 24h change
- Random interesting facts
- Inspirational quotes
- Real-time clock
All data updates automatically in the background!
Development
This project uses a modular architecture with:
source/types.ts- TypeScript interfaces and typessource/services/- API data fetching servicessource/hooks/- Custom React hooks for data managementsource/components/- Reusable UI componentssource/app.tsx- Main application componentsource/cli.tsx- CLI entry point
Setup
# Clone the repository
$ git clone <your-repo-url>
$ cd realtime-data-cli-tool
# Install dependencies
$ npm install
# Build the project
$ npm run build
# Run in development mode
$ npm run dev
# Run tests
$ npm testArchitecture Benefits
- Separation of Concerns - Each file has a single responsibility
- Reusability - Components and hooks can be easily reused
- Maintainability - Easy to find and modify specific functionality
- Testability - Each module can be tested independently
- Type Safety - All types are centralized
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT © Sakun Panthi
Built with ❤️ using Ink, React, and TypeScript.
