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

@node-jhora/api

v2.1.0

Published

Production-ready REST API server for the Node-Jhora Vedic astrology engine. Built on **Fastify** with **Zod** schema validation, exposing all core calculations through a clean JSON API.

Readme

@node-jhora/api

Production-ready REST API server for the Node-Jhora Vedic astrology engine. Built on Fastify with Zod schema validation, exposing all core calculations through a clean JSON API.

Part of the node-jhora monorepo. 📖 Full Documentation

Installation

npm install @node-jhora/api

Quick Start

# Build and start
npm run build
npm run start
# → Listening on http://0.0.0.0:3000
# Example request
curl -X POST http://localhost:3000/v1/chart \
  -H "Content-Type: application/json" \
  -d '{"datetime": "2000-01-01T12:00:00Z", "latitude": 13.08, "longitude": 80.27}'

API Endpoints

| Method | Path | Description | | :---: | :--- | :--- | | GET | /health | Server health check | | POST | /v1/chart | Full birth chart (planets, houses, panchanga) | | POST | /v1/chart/vargas | All 16 divisional charts | | POST | /v1/panchanga | Panchanga (5 limbs) | | POST | /v1/dasha | Vimshottari Dasha periods | | POST | /v1/shadbala | 6-fold planetary strengths | | POST | /v1/kp | KP sub-lords and ruling planets | | POST | /v1/match | Marriage compatibility matching |

Features

| Feature | Description | | :--- | :--- | | Fastify | High-performance web server | | Zod Validation | Compile-time safe schemas + runtime validation | | City Resolution | Pass city name instead of lat/lon — auto-resolves coordinates | | Pino Logging | Structured JSON logs (pretty-print in development) | | CORS | Configurable via CORS_ORIGIN environment variable | | WASM Singleton | Engine initialized once at startup for fast responses |

Environment Variables

| Variable | Default | Description | | :--- | :--- | :--- | | HOST | 0.0.0.0 | Server bind address | | PORT | 3000 | Server port | | LOG_LEVEL | info | Log level | | NODE_ENV | — | development for pretty logs | | CORS_ORIGIN | true | CORS allowed origins |

Dependencies

Fastify, Zod, Pino, @fastify/cors, city-timezones, Luxon, Decimal.js, plus all @node-jhora/* packages.

License

© Copyright HariEshwar-J-A (Harieshwar Jagan Abirami). All rights reserved.

This software is proprietary. For commercial use, enterprise integration, or any other use cases, explicit permission is required. Usage is subject to agreed-upon payment and licensing terms. Please contact the author for licensing inquiries.