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

@reneturcios/spinspots

v0.1.0

Published

Outdoor table-tennis spots near a coordinate, one spot's details with nearby spots, and current outdoor playing conditions, forwarded from the hosted League of Spin service. One bin serves a small CLI and the MCP server.

Readme

spinspots

Outdoor table tennis lives or dies by the weather and by knowing where the tables are. spinspots is a small local bridge to the League of Spin directory: it answers three questions — which outdoor spots sit near a coordinate, what does one particular spot look like (with its neighbours), and is it actually playable outside right now, given the wind, temperature and rain?

The package holds no spot data itself. It is a forwarding client for the hosted League of Spin MCP server. The tool list is served locally from a verbatim capture of the upstream surface; every tool call is then forwarded upstream over a streamable-HTTP JSON-RPC session and the upstream result is handed back exactly as received.

Install and run

npx -y @reneturcios/spinspots mcp        # stdio MCP server
npx -y @reneturcios/spinspots --version  # 0.1.0

One bin serves both the MCP server and a small CLI:

spinspots find-spots '{"lat": 37.7749, "lng": -122.4194, "radiusKm": 10}'
spinspots get-spot '{"slugOrId": "some-spot-slug"}'
spinspots playing-conditions '{"lat": 37.7749, "lng": -122.4194}'
spinspots mcp          # run the stdio MCP server
spinspots --version

Exit codes for tool subcommands: 0 on success, 1 when the forwarded result is an error result, 2 on a usage error.

MCP client configuration

{
  "mcpServers": {
    "spinspots": {
      "command": "npx",
      "args": ["-y", "@reneturcios/spinspots", "mcp"]
    }
  }
}

Docker

docker run -i ghcr.io/cloudcorprecords/spinspots          # stdio MCP server (default command: mcp)
docker run --rm ghcr.io/cloudcorprecords/spinspots --version

Tools

| Tool | Arguments | What it returns | |------|-----------|-----------------| | find-spots | lat, lng (required); optional radiusKm, limit | The nearest outdoor spots to the coordinate, each with its distance and a citable url. | | get-spot | slugOrId (required) | One spot's details plus nearby spots, addressed by the slug from a leagueofspin.com/spots/{slug} url (preferred) or by raw id. | | playing-conditions | lat, lng (required) | Current wind, temperature and precipitation for the location. Wind is the decisive signal for outdoor table tennis. |

The upstream tool names carry hyphens and are served verbatim.

How forwarding works

  • Upstream endpoint: https://leagueofspin.com/api/mcp. It can be replaced with the LEAGUEOFSPIN_MCP_URL environment variable (a labelled reconstruction of this rebuild).
  • Each call opens (once, lazily) a streamable-HTTP JSON-RPC session: initialize, then notifications/initialized, then tools/call. When the upstream issues an Mcp-Session-Id, later requests carry it. Plain-JSON and SSE-framed replies are both understood.
  • The upstream registry record declares no headers, so no Authorization header (or any API-key header) is ever sent, under any environment.
  • Upstream results pass through untouched, isError flag included. When the upstream itself fails — a JSON-RPC error, a non-2xx status, an unparseable body, a thrown or timed-out fetch — the result is an error result whose text begins with spinspots error:.

Development

npm install
npm run build   # tsc -> dist/
npm test        # tsx --test test/*.test.ts (stubbed upstream, no network)
npm run dev     # run the CLI from source

License

MIT — see LICENSE. Copyright (c) 2026 Rene Turcios.