npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

nx-stock

v1.4.1

Published

Real-time Stock Market CLI for Indonesian Stock Exchange (IHSG)

Readme

📈 nx-stock

Real-Time Stock Market CLI, Portfolio Tracker, Bandarmology & Price Alert for Indonesian Stock Exchange (IHSG).

Bikin kamu tetap fokus ngoding tanpa perlu bolak-balik buka Stockbit atau browser! Dipasang langsung di terminal kesayanganmu.

NX-Stock CLI Banner License NPM Version


🔥 Features

  • Live Watchlist Dashboard (--live): Dashboard auto-refresh real-time dengan tampilan ringkas.
  • 💼 Portfolio PnL Tracker: Pantau harga modal (Avg Price), jumlah lot, dan floating cuan/loss (Rp & %).
  • 📊 Technical Analysis (check): Deteksi otomatis indikator RSI (14), MA20, MA50, dan sinyal Trend.
  • 🕵️ Bandarmology & Volume Spike: Deteksi Volume Ratio vs Rata-Rata 10 Hari (Ultra Spike 🔥) dan dinamika pasar.
  • 🔔 Desktop Price Alert: Notifikasi OS & suara (beep) instan saat harga menyentuh target Take Profit atau Stop Loss.
  • 🇮🇩 IHSG Native: Otomatis menanganai ticker saham Indonesia (cukup ketik BUMI, BBCA, DEWA, dll).

📦 Installation

Pasang secara global via NPM atau PNPM:

# Via NPM
npm install -g nx-stock

# Atau via PNPM / YARN
pnpm add -g nx-stock
yarn global add nx-stock

🚀 Quick Usage

1. Cek Analisa Saham Spesifik

Analisa fundamental ringkas, rasio PER/PBV, indikator RSI, MA20/MA50, dan sinyal teknikal secara instan:

nx-stock check BUMI
# atau shortcut alias
nx-stock c BBCA

2. Kelola Watchlist & Portofolio

Tambah / Update Saham ke Watchlist (dengan Harga Modal & Lot):

# Tambah ticker biasa
nx-stock w -a DEWA

# Tambah ticker + Data Portofolio (Harga Modal & Lot)
nx-stock w -a BUMI --avg-price 165 --lots 100

Set Target Price Alert (Take Profit / Stop Loss):

# Notifikasi jika BUMI tembus Rp 180 (High) atau turun ke Rp 165 (Low)
nx-stock w --alert BUMI:180:165

# Set target High saja
nx-stock w -al DEWA:480

Hapus Saham dari Watchlist:

nx-stock w -r BUVA

3. Tampilkan Live Dashboard (Split Screen Friendly!)

Jalankan dashboard live auto-refresh yang akan terus memperbarui data pasar di background:

# Refresh tiap 5 detik (Default)
nx-stock w --live

# Refresh dengan interval kustom (Misal: tiap 10 detik)
nx-stock w -l -i 10

💻 CLI Commands Overview

| Command / Flag | Alias | Description | | --------------------------- | :---: | ----------------------------------------------------- | | nx-stock check <ticker> | c | Analisa detail teknikal & fundamental untuk 1 ticker. | | nx-stock watchlist | w | Lihat daftar watchlist dan portofolio. | | -l, --live | — | Mode auto-refresh real-time. | | -i, --interval <sec> | — | Mengatur interval auto-refresh (default: 5s). | | -a, --add <ticker> | — | Menambahkan ticker ke watchlist. | | --avg-price <price> | — | Menentukan harga modal rata-rata beli. | | --lots <lots> | — | Menentukan jumlah lot kepemilikan. | | --alert <ticker:high:low> | — | Menambahkan target harga notifikasi untuk OS. | | -r, --remove <ticker> | — | Menghapus ticker dari watchlist. |


🛠️ Configuration & Storage

Data watchlist, portofolio, dan target alert disimpan secara lokal di komputer kamu pada lokasi berikut:

~/.nx-stock-watchlist.json

Data hanya disimpan secara lokal dan tidak dikirim ke server mana pun.


##📄 License

Distributed under the MIT License.

See the LICENSE file for more information.