Beautiful terminal-based cryptocurrency and stock tracker
npm install cryptoinkA beautiful terminal-based cryptocurrency and stock tracker built with React Ink.
``bash`
npx cryptoink
`bash`
curl -fsSL https://raw.githubusercontent.com/faisalnazir/cryptoink/main/install.sh | bash
Requires Bun runtime.
`bashInstall Bun (if not installed)
curl -fsSL https://bun.sh/install | bash
⌨️ Keyboard Controls
$3
| Key | Action |
|-----|--------|
| ↑ ↓ | Navigate list |
| ← → | Change timeframe |
| Tab | Switch Crypto/Stocks/Portfolio |
| / | Search (fuzzy match) |
| Enter / Esc | Exit search |$3
| Key | Action |
|-----|--------|
| P | Add to portfolio (enter amount) |
| B | Set buy price |
| A | Set price alert |
| V | View active alerts |
| W | Toggle watchlist ⭐ |
| U | Update to latest version |$3
| Key | Action |
|-----|--------|
| C | Toggle Candlestick/Line chart |
| L | Toggle Log scale |
| S | Cycle sort (rank/price/change/volume/cap) |
| T | Change theme |
| F | Fullscreen chart |
| M | Cycle minimal mode |
| Q | Quit |🔄 Update
Update to the latest version:
`bash
From within the app
Press UOr manually
curl -fsSL https://raw.githubusercontent.com/faisalnazir/cryptoink/main/update.sh | bash
`📁 Configuration
Data is stored in
~/.cryptoink/:`
~/.cryptoink/
├── portfolio.json # Your holdings
├── portfolio_history.json # Daily value snapshots
├── alerts.json # Price alerts
└── watchlist.json # Starred assets
`$3
`json
{
"holdings": [
{ "symbol": "BTC", "amount": 0.5, "buyPrice": 42000 },
{ "symbol": "MSTR", "amount": 10, "buyPrice": 450, "isStock": true }
]
}
`📡 Data Sources
| Data | Source | Rate Limit |
|------|--------|------------|
| Crypto Prices | Binance API | No key required |
| Stock Prices | Yahoo Finance | No key required |
| Market Cap | CoinGecko | No key required |
| Fear & Greed | Alternative.me | No key required |
🛠️ Tech Stack
- Bun - JavaScript runtime & bundler
- React Ink - React for CLI
- yahoo-finance2 - Stock data
📸 Screenshots
$3
`
━━ CRYPTO (RANK) ━━ ━━ STOCKS ━━
▶ ★BTC $97,234 ▲ 2.34% ━ DAT ━
ETH $3,456 ▼ 1.23% ● MSTR $380.50 ▲ 5.2%
SOL $198.45 ▲ 5.67% ● COIN $265.30 ▲ 3.1%
... ...📊 BTC/USDT $97,234 ▲ 2.34% 1H 4H [1D] 1W 1M
$100k│████████████████████████████████████
$95k│██████████ ████████████████████████
$90k│████████████████████████████████████
└────────────────────────────────────
▸ Low: $89,500 │ High: $100,200 │ 167 candles
● Live │ F&G: 72 │ BTC.D: 54.2% /Search SSort
``MIT
Pull requests welcome! Please open an issue first to discuss changes.
---
Made with ☕ and React Ink