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

@haruspex-guru-sdk/sdk

v0.1.3

Published

Official Haruspex SDK. Stock intelligence scores (0-100) across 16 dimensions.

Readme

@haruspex-guru-sdk/sdk

Official TypeScript / JavaScript SDK for the Haruspex API. Stock intelligence scores (0–100) across 16 dimensions, with outlook, trading signal, history, search, and news.

npm install @haruspex-guru-sdk/sdk

Node 18+ (uses the global fetch). Zero runtime dependencies. Ships ESM, CJS, and .d.ts.

Quickstart

import { Haruspex } from "@haruspex-guru-sdk/sdk";

const client = new Haruspex({
  apiKey: process.env.HARUSPEX_API_KEY,
});

const aapl = await client.scores.get("AAPL");
console.log(`${aapl.symbol}: ${aapl.score}/100 (${aapl.outlook})`);
console.log(`Rate-limit remaining: ${aapl._meta.rateLimit?.remaining}`);

Every response carries a _meta field with requestId, creditsRemaining, and rateLimit, so you can observe credit/rate headroom without a separate request.

API

new Haruspex(options)

| Option | Type | Default | | ------------ | --------------------- | ------------------------------------ | | apiKey | string | process.env.HARUSPEX_API_KEY | | baseUrl | string | https://haruspex.guru/api/v1 | | timeoutMs | number | 10000 | | maxRetries | number | 2 | | fetch | typeof fetch | globalThis.fetch | | userAgent | string | "haruspex-sdk-js/0.1.0" |

client.scores.get(symbol)

Latest score for one ticker. Returns a Score & { _meta }.

client.scores.batch(symbols)

Latest scores for up to 50 tickers in a single request. Returns { count, scores, _meta }.

client.scores.history(symbol, { from?, to?, limit? })

Historical daily scores. limit is 1–90 (default 30). Returns { symbol, from, to, count, scores, _meta }.

client.search(query, { limit? })

Search by ticker or company name. limit is 1–20 (default 10).

client.news(symbol, { limit? })

Recent news articles for a ticker. limit is 1–20 (default 10).

Errors

All thrown errors extend HaruspexError:

| Class | Trigger | | --------------------------- | ---------------------------------------- | | HaruspexAuthError | 401 / 403 | | HaruspexNotFoundError | 404 — ticker not in the scoring universe | | HaruspexRateLimitError | 429 — carries retryAfterMs | | HaruspexValidationError | 400 / client-side bad input | | HaruspexServerError | 5xx | | HaruspexNetworkError | timeout, DNS, connection reset |

Every error carries status, code, requestId, and body when available.

Retries

Retries automatically on 429, 502, 503, 504, and network errors with exponential backoff (250ms × 2^attempt, capped at 4s, with jitter). Respects the Retry-After header on 429. Default maxRetries: 2.

4xx errors other than 429 are never retried.

Authentication

Get a free API key at haruspex.guru/developers. For evaluation without signup, use the public demo key (hrspx_live_a7c52f9315a65c377fec9c30b53f266b) documented in the root README.

License

MIT. The SDK source code in this repository is MIT-licensed; the Haruspex scoring algorithm and data are proprietary and access is governed by the Haruspex API Terms of Service.