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

moneyline-sports-api

v0.1.2

Published

Official JavaScript/TypeScript SDK for MoneyLine Sports API: live odds, player props, hit rates, +EV, arbitrage and scores.

Readme

MoneyLine Sports API for JavaScript and TypeScript

The official SDK for MoneyLine Sports API. Use it to get live odds, player props, hit rates, +EV and arbitrage signals, and scores for NFL, NBA, MLB, NHL, college football, college basketball, EPL, MLS and the World Cup, all through one API.

See what's covered right now, including leagues, sportsbooks, DFS apps and exchanges, at moneylineapp.com/coverage.

Install

npm install moneyline-sports-api

The SDK needs Node 18 or later and has no dependencies. It also runs in Deno, Bun and edge runtimes.

Get an API key

Sign up for a free key. The SDK reads it from the MONEYLINE_API_KEY environment variable, or you can pass it in yourself:

import { MoneyLine } from 'moneyline-sports-api'

const ml = new MoneyLine({ apiKey: process.env.MONEYLINE_API_KEY })

Examples

// Today's NFL odds across every book
const odds = await ml.odds({ league: 'nfl' })

// Player props for one player
const props = await ml.playerProps({ league: 'nba', player: 'Jayson Tatum' })

// Positive expected-value bets and arbitrage
const ev = await ml.evBets({ league: 'nfl', limit: 10 })
const arbs = await ml.arbitrage({ league: 'mlb' })

// Hit rates over the last 5, 10 and 25 games and the season
// for one prop. Take the player ID and line from a player-prop record.
const rates = await ml.hitRates('nba-p-3934672', { market: 'player_points', line: 24.5 })

// Ask MoneyLine AI a question grounded in live data
const answer = await ml.ask('Best NBA player props tonight?')

// Live coverage counts (no key needed)
const coverage = await ml.coverage()

Every other endpoint is reachable through ml.get(path, query), which returns the response data. To get data and meta together, use ml.request('GET', path, { query }).

Errors

A failed call throws MoneyLineError with the HTTP status, a stable code such as ERR_API_KEY_INVALID or ERR_CREDIT_LIMIT, and a requestId to include when you contact support.

import { MoneyLineError } from 'moneyline-sports-api'

try {
  await ml.odds({ league: 'nfl' })
} catch (err) {
  if (err instanceof MoneyLineError && err.status === 429) {
    // You hit the rate limit. Wait, then try again.
  }
}

Each request times out after 15 seconds. To change that, pass timeoutMs.

Links

MIT licensed.