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

@roxyapi/sdk

v1.2.4

Published

TypeScript SDK for Roxy — the multi-domain spiritual intelligence API

Downloads

967

Readme

@roxyapi/sdk

npm Docs API Reference Pricing

TypeScript SDK for RoxyAPI. Multiple domains, fully typed endpoints, one API key.

Build astrology apps, tarot platforms, birth chart generators, and compatibility tools without writing a single calculation.

Install

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

Quick start

import { createRoxy } from '@roxyapi/sdk';

const roxy = createRoxy(process.env.ROXY_API_KEY!);

// Daily horoscope
const { data } = await roxy.astrology.getDailyHoroscope({
  path: { sign: 'aries' },
});

// Vedic birth chart
const { data: chart } = await roxy.vedicAstrology.generateBirthChart({
  body: {
    date: '1990-01-15',
    time: '14:30:00',
    latitude: 28.6139,
    longitude: 77.209,
  },
});

// Tarot Celtic Cross spread
const { data: reading } = await roxy.tarot.castCelticCross({
  body: { question: 'What should I focus on?' },
});

createRoxy sets the base URL and injects SDK identification headers automatically. auth is required.

Domains

| Namespace | What it covers | |-----------|----------------| | roxy.angelNumbers | Angel number lookup, pattern analysis, daily guidance | | roxy.astrology | Western astrology:natal charts, horoscopes, synastry, moon phases | | roxy.vedicAstrology | Vedic/Jyotish:birth charts, dashas, nakshatras, panchang, KP system | | roxy.tarot | 78-card readings:spreads, daily pulls, yes/no, Celtic Cross | | roxy.numerology | Life path, expression, soul urge, personal year, karmic lessons | | roxy.iching | I Ching hexagrams, trigrams, daily readings | | roxy.crystals | Crystal meanings, healing properties, zodiac and chakra pairings | | roxy.dreams | Dream symbol interpretations:3,000+ symbols | | roxy.location | City and country search for birth chart coordinates | | roxy.usage | API usage stats, rate limits, subscription info |

Authentication

Get your API key at roxyapi.com/pricing. Instant delivery after checkout.

Pass the key to createRoxy. Never expose your API key client-side. Call Roxy from your server or API routes.

import { createRoxy } from '@roxyapi/sdk';

const roxy = createRoxy(process.env.ROXY_API_KEY!);

For advanced use cases (custom fetch, interceptors, per-request auth), you can build the client manually:

import { Roxy } from '@roxyapi/sdk';
import { createClient, createConfig } from '@roxyapi/sdk/client';

const client = createClient(
  createConfig({
    baseUrl: 'https://roxyapi.com/api/v2',
    auth: process.env.ROXY_API_KEY,
  }),
);
const roxy = new Roxy({ client });

Error handling

Every method returns { data, error, response }. Errors have { error: string, code: string } — switch on code for programmatic handling.

const { data, error } = await roxy.astrology.getZodiacSign({
  path: { identifier: 'aries' },
});

if (error) {
  console.error(error.code, error.error); // e.g. "not_found", "Zodiac sign 'xyz' not found"
} else {
  console.log(data);
}

TypeScript

Every request and response is fully typed. IDE autocomplete shows available methods per domain and exact parameter shapes — no docs tab needed.

AI agents (Cursor, Claude Code, Copilot, Codex)

This package ships with bundled documentation that AI coding agents can read directly from node_modules/:

  • AGENTS.md — Quick start, patterns, gotchas, and a common tasks reference table
  • docs/llms-full.txt — Complete method reference with code examples for every domain

AI agents that support AGENTS.md (Claude Code, Cursor, GitHub Copilot, OpenAI Codex, Gemini CLI) will read it automatically. For other tools, point your agent to node_modules/@roxyapi/sdk/AGENTS.md.

Also available: MCP server for AI agents that support the Model Context Protocol.

Links

License

MIT