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

tauqeet-js

v1.1.6

Published

High-precision TypeScript library for Islamic astronomical calculations: prayer times, Qibla direction, moon phase & crescent visibility, and Hijri calendar conversions.

Readme

tauqeet-js

A high-precision TypeScript library for Islamic astronomical calculations, covering prayer times, Qibla direction, lunar events, Hijri conversion, and solar alignment.

License: MIT TypeScript Node.js Version

Interactive reference: https://tauqeet-js.web.app

tauqeet-js provides numerically precise astronomical calculations using a VSOP87-based solar ephemeris, lunar theory, and ΔT corrections. The package is modular and tree-shakeable, so Node.js and browser applications can import only the modules they need.


What is tauqeet-js?

tauqeet-js is a TypeScript-first library for Islamic astronomy. It helps applications compute:

  • Prayer times for major prayer events such as Fajr, Sunrise, Dhuhr, Asr, Maghrib, and Isha.
  • Qibla direction and distance to Mecca.
  • Moon phase, moon age, lunar events, and visibility heuristics.
  • Hijri calendar conversions and calendar-method helpers.
  • Solar alignment events relative to the Qibla bearing.

The current release, v1.1.3, focuses on stable public exports, stronger validation, better diagnostics around timezone and formatting fallbacks, and measurable runtime improvements.


Installation

Install with your preferred package manager:

npm install tauqeet-js
yarn add tauqeet-js
pnpm add tauqeet-js

The package ships ESM and CommonJS entry points, with per-module subpath exports for selective bundling.


Quick Start

import { calculatePrayerTimes } from 'tauqeet-js';

const result = calculatePrayerTimes({
  lat: 51.5074,
  long: -0.1278,
  timeZone: 'Europe/London',
  method: 'MWL',
  madhab: 'Shafi',
});

console.log(result.fajr.local);
console.log(result.dhuhr.local);
console.log(result.isha.local);

For a more resilient integration, see API.md and ERROR_HANDLING.md.


Core Modules

| Module | What it provides | |---|---| | Prayers | Prayer-time calculations, formatting helpers, config validation, high-latitude handling | | Qibla | Bearing and distance to the Kaaba | | Moon | Phase, age, lunar events, crescent visibility heuristics | | Hijri | Gregorian/Hijri conversion and calendar methods | | Solar Alignment | Sun-at-Qibla alignment times |


Documentation Set

  • API.md — comprehensive API reference for public exports.
  • ERROR_HANDLING.md — error classes, Result wrappers, and diagnostics.
  • CONFIGURATION.md — prayer configuration, methods, high-latitude strategies, and timezone hooks.
  • PERFORMANCE.md — ephemerides, models, optimisations, and benchmarks.
  • CHANGELOG.md — release notes and migration guidance.

Highlights in v1.1.3

  • Per-module exports for tree-shaking: API.md
  • Optional fallback diagnostics for timezone and formatting issues
  • More explicit validation for custom prayer angles
  • Performance improvements in the astronomy hot path
  • Improved error handling around timezone formatting and visibility calculations

License

MIT © Ghulam Hasnain