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

@kingstoneapp/cli

v1.0.0

Published

KINGSTONE Partner Integration Test CLI

Readme

@kingstoneapp/cli

Partner Integration Test CLI for the KINGSTONE B2B API. Validates that your KINGSTONE integration is correctly configured and operational.

Installation

npm install -g @kingstoneapp/cli

Or run directly with npx:

npx @kingstoneapp/cli check --api-key ks_test_your_key_here

Configuration

API key and base URL can be set via CLI flags or environment variables. Flags take priority.

| Setting | CLI Flag | Environment Variable | Default | |----------|----------------|-------------------------|----------------------------------| | API Key | --api-key | KINGSTONE_API_KEY | (required) | | Base URL | --base-url | KINGSTONE_BASE_URL | https://api.kingstone.dev/api |

Environment variable example

export KINGSTONE_API_KEY=ks_test_abc123
export KINGSTONE_BASE_URL=http://localhost:3001/api
kingstone check

Commands

kingstone check

Runs all integration checks in sequence and prints a summary.

kingstone check --api-key ks_test_abc123

kingstone check health

Verifies the KINGSTONE API is reachable by hitting the public /health endpoint.

kingstone check health --api-key ks_test_abc123

kingstone check auth

Validates your API key by calling an authenticated endpoint.

kingstone check auth --api-key ks_test_abc123

kingstone check spin

Executes a test spin against your first registered game using the minimum wager. Requires at least one game registered via POST /partner/v1/games.

kingstone check spin --api-key ks_test_abc123

kingstone check webhook

Tests webhook registration by creating and immediately deleting a test webhook endpoint.

kingstone check webhook --api-key ks_test_abc123

Example Output

KINGSTONE Integration Checks
  INFO Target: http://localhost:3001/api

  PASS API Health                healthy (42ms)
  PASS API Key Authentication    200 OK (18ms)
  PASS Test Spin                 spinId=spin-123 combo=7|7|BAR payout=$0.00 (65ms)
  PASS Webhook Registration      Registered webhook id=1 events=[spin.large_win] (23ms)
  INFO Full webhook delivery testing requires a matching spin event. Registration verified.

Results: 4/4 checks passed — ALL PASSED (148ms)

Development

# Run tests
npm run test -w @kingstoneapp/cli

# Type check
npm run typecheck -w @kingstoneapp/cli

# Build
npm run build -w @kingstoneapp/cli

# Run locally
node packages/cli/bin/kingstone.js check --api-key ks_test_abc123 --base-url http://localhost:3001/api

License

UNLICENSED -- Proprietary to Predigy Inc.