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

@asksoma/astro-client

v1.1.2

Published

Official TypeScript client for the AskSoma Partner (Astrology Brain) API. Private/admin-issued keys.

Readme

@asksoma/astro-client

Official TypeScript client + CLI for the AskSoma Partner (Astrology Brain) API. Zero dependencies (uses global fetch). Node 18+, Deno, Bun, browsers.

Private / admin-issued. Partner (brain) keys are issued by AskSoma — they are not self-serve. Core endpoints work with any valid sk_live_ key.

Install & build (internal)

cd packages/astro-client
npm install
npm run build     # emits dist/

SDK usage

import { AskSomaClient } from '@asksoma/astro-client';

const soma = new AskSomaClient({ apiKey: process.env.ASKSOMA_API_KEY! });
// Default base: https://api.asksoma.ai

// Brain — muhurat (electional windows; needs scope 'brain')
const muhurat = await soma.muhurat({
  chart: { date: '1994-08-19', time: '06:15', lat: 19.07, lon: 72.87, tz: 5.5 },
  activity: 'wedding',
  from: '2026-08-01',
  to: '2026-09-30',
  event: { lat: 19.076, lon: 72.877, tz: 5.5 },
});

// Brain — daily frames (Rahu Kaal / Choghadiya / Amrit — not ranked windows)
const daily = await soma.muhuratDaily({
  date: '2026-07-24', lat: 28.6139, lon: 77.209, tz: 5.5,
  signature: 'daily_rahu_kaal',
});

// Brain — occasion catalog for Finder UIs
const catalog = await soma.muhuratCatalog();

// Brain — other
const dasha = await soma.dasha({ date: '1990-05-15', time: '14:30', lat: 28.6139, lon: 77.209, tz: 5.5 });
const timing = await soma.timing({
  chart: { date: '1994-08-19', time: '06:15', lat: 19.07, lon: 72.87, tz: 5.5 },
  domain: 'marriage',
});

// Core (any valid key)
await soma.natalChart({ date: '1990-05-15', time: '14:30', lat: 28.6139, lon: 77.209, tz: 5.5 });
await soma.chatCompletions({
  messages: [{ role: 'user', content: 'Explain the top muhurat window in plain English.' }],
});

tz is a numeric UTC offset in hours (e.g. 5.5 for IST) on brain routes. Errors throw AskSomaApiError with .status, .code, and .scope (e.g. scope_required).

Agent / LLM auto-connect

Hand coding agents this URL first: https://asksoma.ai/partner-llm.txt
(machine map: https://asksoma.ai/partner-connect.json). Repo source: docs/PARTNER_API_LLM.md.

Muhurat vs timing

| Method | Meaning | |--------|---------| | muhurat() | When to do X — ranked electional windows (Good Timings) | | timing() | When will X happen — Phalita life-event bands |

Do not merge these.

CLI usage

export ASKSOMA_API_KEY=sk_live_...
npx asksoma muhurat --date 1994-08-19 --time 06:15 --lat 19.07 --lon 72.87 --tz 5.5 \
  --activity wedding --from 2026-08-01 --to 2026-09-30
npx asksoma catalog
npx asksoma daily --date 2026-07-24 --lat 28.6139 --lon 77.209 --tz 5.5
npx asksoma dasha --date 1990-05-15 --time 14:30 --lat 28.6139 --lon 77.209 --tz 5.5
npx asksoma help

Determinism

Every brain response carries meta.engine_version and is computed with pinned Lahiri ayanamsa + Placidus houses — same inputs → same output.

MCP (alternative)

AskSoma also exposes find_muhurat, get_dasha, get_transits, get_composite_chart at https://api.asksoma.ai/mcp — see docs/PARTNER_API_CONNECT.md.

Security

Never put sk_live_ keys in a browser. For embeds, proxy through your backend (see packages/muhurat-embed and docs/PARTNER_API_EMBED.md).