LifeAstroAPILifeAstroAPI

Plain REST, plus a typed Node.js SDK today.

Every one of the 311 endpoints is REST + JSON over HTTPS, documented in an OpenAPI 3.1 spec you can drop into Postman or any code generator right now. The official Node.js / TypeScript SDK is open source on GitHub today. SDKs for Flutter / Dart and React Native are in development, with Python, PHP, Go, Ruby and Java to follow.

Node.js & TypeScript SDK.

The official lifeastroapi package is on npm and open source on GitHub — a fully-typed client for every one of the 311 endpoints (festivals, panchang calendar sheets, charts, dashas, Western, reports), with optional branded PDF reports. PDF rendering runs on your server and needs Puppeteer (a headless Chrome), installed separately — the PDF reports guide covers setup, disk and memory, fonts, Docker and serverless.

JavaScript / TypeScript

Availablenpm install lifeastroapi
  • Fully-typed — every REST endpoint, with autocomplete
  • Zero runtime dependencies — Node 18+, serverless & edge
  • Ships ESM + CommonJS with bundled .d.ts types
  • Typed errors, automatic retries & timeouts built in
  • Branded, white-label PDF reports (optional)
# install
npm install lifeastroapi
# use
import { LifeAstro } from "lifeastroapi";

const client = new LifeAstro({ apiKey: "dv_live_…" });

// A Vedic birth chart
const planets = await client.chart.planets({
  date: "1990-01-15", time: "10:30",
  tz: "Asia/Kolkata", lat: 19.07, lon: 72.87,
});

Flutter & React Native SDKs.

The same 300+ typed endpoints, with PDF report rendering done the native way on each platform — dart-pdf widgets on Flutter, expo-print / html-to-pdf on React Native.

More language SDKs.

Each library wraps the REST API with idiomatic types, auth handling and retries — just like the Node SDK. The install commands below are indicative; final package names land at release.

Coming soon

Python

Pythonic client with sync and async support, complete with type hints.

pip install lifeastroapi
Coming soon

PHP

Composer package for PHP 8+, PSR-4 autoloaded and framework-agnostic.

composer require lifeastro/sdk
Coming soon

Go

Idiomatic Go module with first-class context and error handling.

go get github.com/ayanshulife/lifeastro-go
Coming soon

Ruby

Ruby gem for Rails apps, background jobs and scripts.

gem install lifeastroapi
Coming soon

Java / Kotlin

JVM client for Java and Kotlin — Android-friendly, Maven & Gradle ready.

implementation("com.lifeastro:sdk")

Start building in minutes.

Grab a free dv_live_… key and call the API over plain REST from any language — or generate a client from the OpenAPI spec. SDK releases are announced to every account by email.