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

jyotish-cli

v1.0.6

Published

CLI for jyotish-calc with human and AI modes

Readme

jyotish-cli

Terminal-first CLI for jyotish-calc with two operating styles:

  • Human mode: readable output with branded ASCII banner.
  • AI mode: strict JSON payloads for agent pipelines.

Features

  • Full feature coverage through dynamic invocation of exported functions.
  • Discoverability commands (modules, functions).
  • Generic executor command for any API target (invoke / run).
  • AI-safe execution command (agent) with JSON request/response contracts.
  • Diagnostics command (doctor) for environment sanity checks.

Install (local workspace)

cd jyotish-cli
npm install

Run directly:

node ./bin/jyotish.js --help

Or globally in your machine:

npm link
jyotish --help

Command Overview

jyotish start --date 2020-05-05 --time 15:05:05 --lat 25 --lng 70 --timezone 5
jyotish start
jyotish panchanga --date 2020-05-05 --time 15:05:05 --lat 25 --lng 70 --timezone 5
jyotish chart --date 2020-05-05 --time 15:05:05 --lat 25 --lng 70 --timezone 5
jyotish doshas --date 2020-05-05 --time 15:05:05 --lat 25 --lng 70 --timezone 5
jyotish yogas --date 2020-05-05 --time 15:05:05 --lat 25 --lng 70 --timezone 5
jyotish dashas --date 2020-05-05 --time 15:05:05 --lat 25 --lng 70 --timezone 5
jyotish modules
jyotish functions --module panchanga
jyotish invoke <target> --args-file ./examples/args.json
jyotish --mode ai invoke <target> --args-file ./examples/args.json
jyotish agent --request-file ./examples/request.json
jyotish doctor

Human usage examples

Run full workflow (everything):

jyotish start --date 2020-05-05 --time 15:05:05 --lat 25 --lng 70 --timezone 5

Interactive UX mode (prompts for birth input + sections):

jyotish start

List all top-level modules:

jyotish modules

List callable functions for a module:

jyotish functions --module vargas

Invoke a function using argument file:

jyotish invoke panchanga.calculatePanchanga --args-file ./examples/panchanga-args.json

AI usage examples

Invoke with strict JSON output:

jyotish --mode ai invoke panchanga.quickTithi --args-file ./examples/quick-tithi-args.json

Agent request contract:

{
  "target": "vargas.calculateVarga",
  "args": [45.5, "D9"]
}

Run agent request:

jyotish agent --request-file ./examples/agent-request.json

Response contract:

{
  "ok": true,
  "schema_version": "1.0.0",
  "target": "vargas.calculateVarga",
  "duration_ms": 3,
  "result": {}
}

Error contract:

{
  "ok": false,
  "schema_version": "1.0.0",
  "target": "vargas.invalidFunction",
  "error": {
    "code": "UNKNOWN_TARGET",
    "message": "Unknown target segment \"invalidFunction\" in \"vargas.invalidFunction\""
  }
}

Error codes used by AI mode:

  • INVALID_ARGS: bad request shape, malformed JSON, or conflicting flags.
  • UNKNOWN_TARGET: unknown function path or non-callable target.
  • RUNTIME_ERROR: target function threw during execution.

High-value targets

  • grahas.getGrahasPosition
  • panchanga.calculatePanchanga
  • dashas.calculateAllPlanetaryDashas
  • dashas.getAllActiveDashas
  • vargas.calculateVarga
  • vargas.calculateVargaChart
  • strengths.calculateShadbala
  • strengths.calculateBhavaBala
  • lagnas.calculateAllSpecialLagnas
  • upagrahas.calculateAllUpagrahas
  • ashtakavarga.calculateAshtakavarga
  • doshas.getDoshaDetails
  • rajayogas.getRajaYogaDetails
  • yogas.getYogaDetails