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

@fareplay/sdk

v1.0.2

Published

Official FarePlay SDK for the Fare Protocol ecosystem

Readme

@fareplay/sdk

Official developer toolkit for the Fare Protocol ecosystem. Standardizes communication between the Discovery Service API, Casino Backends, and other services through shared schemas, client classes, and crypto utilities.

Features

  • 🎯 Typed API Clients - Fully typed clients for Discovery and Casino services
  • 🔒 Cryptographic Utilities - Solana signature signing and verification
  • 📝 Protocol Schemas - Zod-based validation for Fare Protocol v1.0.0
  • 🚀 Modern Build - ESM + CJS support with TypeScript declarations
  • 🛠️ Developer Friendly - Built with TypeScript for excellent IDE support

Installation

npm install @fareplay/sdk
# or
yarn add @fareplay/sdk
# or
bun add @fareplay/sdk

Quick Start

Discovery Client

import { FareDiscoveryClient } from '@fareplay/sdk';

const client = new FareDiscoveryClient({
  baseUrl: 'https://api.discover.fareplay.io',
});

// Register a casino
await client.registerCasino({
  name: 'My Casino',
  url: 'https://mycasino.com',
  publicKey: 'your-solana-public-key',
  metadata: {
    description: 'A fun casino',
    games: ['slots', 'dice', 'rps']
// Fetch all casinos
const casinos = await client.getCasinos();

Casino Client

import { FareCasinoClient } from '@fareplay/sdk';

const client = new FareCasinoClient({
  baseUrl: 'https://api.discover.fareplay.io',
  casinoId: 'your-casino-id',
  privateKey: 'your-private-key',
});

// Send heartbeat
await client.sendHeartbeat({
  status: 'online',
  timestamp: Date.now(),
});

Signature Verification

import { verifySolanaSignature, signMessage } from '@fareplay/sdk';

// Sign a message
const signature = await signMessage(message, privateKey);

// Verify a signature
const isValid = verifySolanaSignature(message, signature, publicKey);

Core Modules

Client

  • FareDiscoveryClient - Register, update, and fetch casinos from Discovery
  • FareCasinoClient - Manage casino-side heartbeats and protocol compliance

Crypto

  • signMessage() - Sign messages with Solana wallet
  • verifySolanaSignature() - Verify Solana signatures

Schema

Zod schemas for protocol objects:

  • CasinoMetadataSchema
  • HeartbeatPayloadSchema
  • RegistrationRequestSchema
  • And more...

Utils

  • http - Typed HTTP wrapper around fetch()

API Reference

FareDiscoveryClient

class FareDiscoveryClient {
  constructor(config: { baseUrl: string });
  
  registerCasino(data: RegistrationRequest): Promise<CasinoMetadata>;
  updateCasino(id: string, data: Partial<CasinoMetadata>): Promise<CasinoMetadata>;
  getCasinos(filters?: CasinoFilters): Promise<CasinoMetadata[]>;
  getCasino(id: string): Promise<CasinoMetadata>;
  deleteCasino(id: string): Promise<void>;
}

FareCasinoClient

class FareCasinoClient {
  constructor(config: {
    baseUrl: string;
    casinoId: string;
    privateKey: string;
  });
  
  sendHeartbeat(payload: HeartbeatPayload): Promise<void>;
  updateStatus(status: CasinoStatus): Promise<void>;
}

Protocol Version

This SDK implements Fare Protocol Spec v1.0.0.

Development

# Install dependencies
bun install

# Build the SDK
bun run build

# Type check
bun run typecheck

# Development mode
bun run dev

License

MIT © FarePlay

Documentation

Examples

Check out the examples directory for complete code samples:

Support