deen

command module
v0.0.0-...-0b3183a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2026 License: BSD-3-Clause Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Deen

Command-line companion for prayer timings, Quran verses, and more.

Install

go install github.com/hjr265/deen@latest

Usage

adhan:next

Show the next prayer time:

~ » deen adhan:next
Fajr 04:05
quran:ayah

Show an ayah (verse) of the Quran:

~ » deen quran:ayah 2:255
[Al-Baqara 2:255, Saheeh International] Allah - there is no deity except Him, the Ever-Living, the Sustainer of [all] existence...

The reference format is surah:ayah (e.g. 2:255 for Ayat al-Kursi). Ranges are also supported (e.g. 2:13-15).

Multiple editions can be configured to show each verse in all editions.

Configuration

Deen reads its configuration from ~/.config/deen/config.toml. Use --config to specify an alternative path:

deen --config /path/to/config.toml adhan:next
[database]
path = "/home/user/.local/share/deen/deen.db"

[adhan]
method = 3
city = "Dhaka"
country = "Bangladesh"
time_format = "24h" # or "12h"

[quran]
editions = ["en.asad"]
Prayer Calculation Methods
Method Description
0 Shia Ithna Ansari
1 University of Islamic Sciences, Karachi
2 Islamic Society of North America
3 Muslim World League
4 Umm Al-Qura University, Makkah
5 Egyptian General Authority of Survey
7 Institute of Geophysics, University of Tehran
8 Gulf Region
9 Kuwait
10 Qatar
11 Majlis Ugama Islam Singapura, Singapore
12 Union Organization Islamic De France
13 Diyanet Isleri Baskanligi, Turkey
14 Spiritual Administration of Muslims of Russia

Data Sources

Prayer times are fetched from the Aladhan API and cached locally in a BoltDB database. Quran verses are fetched from the Al Quran Cloud API. Available editions can be found in the API documentation.

License

Deen is available under the BSD 3-Clause License.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址