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

@prisri/jyotish

v1.0.2

Published

A library for Jyotish (Vedic astrology) calculations.

Readme

@prisri/jyotish

A comprehensive library for Jyotish (Vedic astrology) calculations, built on top of the highly accurate.

Installation

npm install @prisri/jyotish

Features

  • Kundli (Birth Chart): Generate detailed Ascendant (Lagna), planetary positions, houses, Vimshottari Dasha, and divisional charts (Vargas D1 to D60).
  • Panchangam: Calculate core elements like Tithi, Nakshatra, Yoga, Karana, and Vara.
  • Match Making: Ashtakoota Guna Milan for marriage compatibility.
  • Festivals: Determine Vedic festivals and fasting days (Ekadashi) accurately based on Tithis.
  • Doshas & Muhurta Elements: Calculate Shoola, Chandrashtama, Tarabalam, and Sade Sati Daiya.

Basic Usage

1. Generating a Janam Kundli

Calculates the Ascendant, planetary positions in Rashis and Nakshatras, house mappings, and Vimshottari Dasha.

import { getKundli, Observer } from '@prisri/jyotish';

// Use UTC time or handle timezones strictly
const date = new Date('1990-01-01T10:00:00Z');

// Define location: Observer(latitude, longitude, elevation_in_meters)
const observer = new Observer(28.6139, 77.2090, 0); // New Delhi

// Generate the Kundli
const kundli = getKundli(date, observer, { houseSystem: 'whole_sign' });

console.log('Ascendant (Lagna):', kundli.ascendant.rashiName);
console.log('Planets:', kundli.planets);
console.log('Houses:', kundli.houses);
console.log('Dasha:', kundli.dasha);

2. Formatting Festivals

Easily look up Vedic festivals for any given day based on planetary positions and Udaya Tithi.

import { getFestivals } from '@prisri/jyotish';

// Your target date
const today = new Date(); // Or any specific date
const festivals = getFestivals(today);

if (festivals.length > 0) {
  console.log('Festivals today:', festivals);
} else {
  console.log('No major festivals today.');
}

3. Panchangam Calculations

Direct access to underlying calculations like Tithi or Nakshatra is also available from the core modules.

import { getAyanamsa, getTithi, getNakshatra } from '@prisri/jyotish';

const date = new Date();
const ayanamsa = getAyanamsa(date);

// Get current tithi / nakshatra
// Add specific observer/location data depending on your required precision and helper outputs

API Overview

The library encompasses the following broad modules:

  • core/calculations: Fundamentals like planetary positions, nodes (Rahu/Ketu), Udaya Lagna, Tithi, Nakshatra.
  • core/ayanamsa: Calculates the sidereal offset (Ayanamsa) using standard astrological models.
  • kundli: Logic for generating and building a full birth chart structure (getKundli()), Vargas, and Houses.
  • matching: Logic for calculating Ashtakoota compatibility between individuals.
  • core/muhurta: Contains logic for determining auspicious/inauspicious times and specific astrological indicators (Sade Sati, Tarabalam, etc.).

Open Source Contributions

Contributions, bug reports, and features are welcome! Feel free to raise an issue on the repository.

License

ISC License © Priyansh Srivastava