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 🙏

© 2025 – Pkg Stats / Ryan Hefner

salat-cli

v1.6.9

Published

Interactive CLI for Islamic prayer times with smart location input and geocoding

Downloads

261

Readme

Salat CLI

Sebuah aplikasi command-line untuk menampilkan jadwal waktu sholat dengan berbagai fitur interaktif dan geocoding otomatis.

✨ Fitur Utama

  • 🌍 Smart Location Input: Setup dengan alamat atau koordinat
  • 🔍 Geocoding Otomatis: Konversi alamat ke koordinat secara otomatis
  • 📍 Location Names: Tampilan nama lokasi yang mudah dibaca
  • Setup Cepat: Satu perintah untuk konfigurasi lokasi
  • 🕰️ Countdown Real-time: Countdown ke waktu sholat berikutnya
  • 📺 Live Update: Mode watch dengan update otomatis setiap menit
  • 🔔 Notifikasi: Opsi notifikasi saat masuk waktu sholat
  • 🎨 UI Cantik: Interface terminal berwarna dengan emoji
  • ⚙️ Konfigurasi Fleksibel: 8 metode perhitungan (MWL, ISNA, Egypt, Makkah, Karachi, Tehran, Kemenag, JAKIM)

🚀 Instalasi

  1. Clone repository ini:
git clone https://github.com/herbras/BelGolang.git
cd BelGolang
  1. Build aplikasi:
go build -o salat
  1. (Opsional) Install ke sistem:
go install

📖 Penggunaan

🌍 Setup Lokasi (Baru!)

Setup dengan Alamat

# Setup dengan nama kota/alamat
salat setup "Jakarta, Indonesia"
salat setup "Bandung, Indonesia"
salat setup "Monas Jakarta"

# Pilih API geocoding
salat setup "Surabaya" --api photon
salat setup "Medan" --api nominatim  # default

Setup dengan Koordinat

# Format: "latitude,longitude"
salat setup -- "-6.2,106.8"        # Jakarta
salat setup -- "-6.9,107.6"        # Bandung
salat setup -- "-7.25,112.75"      # Surabaya

Setup Interaktif (Klasik)

salat setup

📅 Perintah Utama

Tampilkan Jadwal Hari Ini

salat show

Contoh output:

🕌 Jadwal Sholat - Friday, 30 May 2025
📍 Kota Bandung, Jawa Barat, Jawa, Indonesia (-6.921846, 107.607083) • Kemenag

WAKTU           JAM      STATUS
-------------------------------
🌙  Imsak        04:27    ✓
🌅  Subuh        04:37    ✓
☀️  Dzuhur      11:52    ✓
🌤️  Ashar       15:14    
🌇  Maghrib      17:45
✨  Isya         18:59
-------------------------------

⏰ Sholat berikutnya: 🌤️ Ashar dalam 1h 22m

Countdown Sholat Berikutnya

salat next    # atau salat n

Status Sholat Saat Ini

salat now

Mode Live Update

salat watch   # atau salat w

# Dengan notifikasi
salat watch --notify

⚙️ Konfigurasi

Lihat Konfigurasi

salat config show

Ubah Lokasi

# Dengan alamat
salat config set location "Yogyakarta, Indonesia"

# Dengan koordinat
salat config set location -- "-7.8,110.4"

Ubah Pengaturan Lain

salat config set timezone Asia/Jakarta
salat config set method Kemenag
salat config set geocoding_api photon

Kunci Konfigurasi yang Tersedia

  • timezone - Zona waktu (contoh: Asia/Jakarta)
  • location - Lokasi (alamat atau koordinat)
  • latitude - Garis lintang
  • longitude - Garis bujur
  • method - Metode perhitungan (MWL, ISNA, Egypt, Makkah, Karachi, Tehran, Kemenag, JAKIM)
  • geocoding_api - API geocoding (nominatim, photon)

🌐 Geocoding APIs

Aplikasi ini mendukung dua penyedia geocoding:

Nominatim (Default)

  • API gratis dari OpenStreetMap
  • Rate limit: 1 request/second
  • Coverage: Global

Photon

  • API gratis dari Komoot
  • Lebih cepat dari Nominatim
  • Coverage: Global
  • Usage: --api photon

🎨 Opsi Tampilan

Mode Compact

salat show --compact

Tema

salat show --theme dark
salat show --theme light  # default

🔧 Development

Build untuk Development

go run main.go setup "Jakarta"
go run main.go show

Build untuk Production

go build -ldflags="-s -w" -o salat

Build untuk Semua Platform

goreleaser build --snapshot --clean

📝 API Geocoding

Aplikasi menggunakan geocoding API eksternal untuk konversi alamat:

  • Forward Geocoding: Alamat → Koordinat + Nama Lokasi
  • Reverse Geocoding: Koordinat → Nama Lokasi
  • One-time Only: API dipanggil sekali saat setup, hasil disimpan di config
  • Offline-first: Setelah setup, tidak perlu internet untuk perhitungan sholat

🤝 Contributing

Lihat CONTRIBUTING.md untuk panduan kontribusi.

📄 License

MIT License - lihat file LICENSE untuk detail.

🔗 Links

  • Repository: https://github.com/herbras/BelGolang
  • Issues: https://github.com/herbras/BelGolang/issues
  • NPM Package: salat-cli

Version: 1.6.0 • Last Updated: January 2025