New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@askvedicguru/sdk

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@askvedicguru/sdk

Official AskVedicGuru SDK — Vedic astrology data and AI insights via one API

latest
Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
5
150%
Maintainers
1
Weekly downloads
 
Created
Source

@askvedicguru/sdk

Official TypeScript/JavaScript SDK for AskVedicGuru — Vedic astrology data and AI insights via one API.

Install

npm install @askvedicguru/sdk
# or
bun add @askvedicguru/sdk

Works in Node.js 18+, Bun, Deno, and any environment with Fetch API support.

Quick start

import { AskVedicGuru } from '@askvedicguru/sdk'

const guru = new AskVedicGuru({
  apiKey: process.env.ASKVEDICGURU_API_KEY!,
})

// List profiles and get a birth chart
const profiles = await guru.profiles.list()
const chart = await guru.chart.full(profiles[0].id)
console.log(chart.moonSign)

Core resources

ResourceMethods
guru.profileslist(), create()
guru.chartfull(), basicDetails(), planets(), ascendant(), nakshatra(), elements(), personality()
guru.panchangget(), rashi()
guru.rashifalget(), allSigns()
guru.dashaget()
guru.predictionsget(), dailyInsight(), transits()
guru.doshaget(), sadeSati(), remedies()
guru.strengthyogas(), ashtakavarga(), shadbala(), houseLords(), atmakaraka(), functional()
guru.conjunctionsget(), aspects(), vargas()
guru.chatsend() — AI Guru
guru.apiKeyslist(), create(), revoke()
guru.reportskundli(), predictions(), compatibility() — returns PDF ArrayBuffer

Error handling

import {
  AskVedicGuru,
  AuthenticationError,
  InsufficientCreditsError,
  PlanRequiredError,
  RateLimitError,
} from '@askvedicguru/sdk'

try {
  const chart = await guru.chart.full(profileId)
} catch (err) {
  if (err instanceof InsufficientCreditsError) {
    console.error('Out of credits')
  } else if (err instanceof RateLimitError) {
    console.error(`Retry after ${err.retryAfter}s`)
  } else if (err instanceof PlanRequiredError) {
    console.error('Upgrade required')
  }
}

Full documentation

docs.askvedicguru.com

Keywords

vedic-astrology

FAQs

Package last updated on 17 May 2026

Related posts