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

@hqlinhmmo/kahut-core

v1.0.0

Published

Super Smart Web3 SDK for blockchain gaming and pool management

Readme

Super Smart Backend SDK

A comprehensive TypeScript SDK for server-side blockchain gaming operations, providing core functionality for pool management, user verification, and smart contract interactions.

Package Information

  • Name: @hqlinhmmo/kahoot-core
  • Version: 0.0.0-development
  • Description: Super Smart Web3 SDK for blockchain gaming and pool management

Features

  • 🔧 Server Operations: Full-featured server-side SDK for backend operations
  • 🔐 Worldcoin Verification: Server-side verification of Worldcoin authentication
  • 🎮 Pool Management: Create, manage, and close gaming pools
  • 🎫 Ticket Operations: Mint and manage gaming tickets
  • 🏆 Reward Distribution: Automated reward calculation and distribution
  • 📊 Game Analytics: Track game statistics and user performance
  • 🔒 Security: Secure private key management and transaction signing

Installation

npm install @hqlinhmmo/kahoot-core

Quick Start

import SuperSmartSDK from "@hqlinhmmo/kahoot-core";

const serverSDK = new SuperSmartSDK({
  isProduction: false,
  superSmartContractAddress: "0x...",
  miniappId: "your-miniapp-id",
  privateKey: "your-private-key", // Required for server operations
});

// Create a new pool
await serverSDK.openPool({
  startTime: Math.floor(Date.now() / 1000) + 3600, // 1 hour from now
  endTime: Math.floor(Date.now() / 1000) + 7200, // 2 hours from now
  ticketPrice: BigInt(1000000000000000000), // 1 ETH in wei
  fee: 500, // 5% fee (500 basis points)
  rewardStructure: [5000, 3000, 2000], // Winner gets 50%, 2nd gets 30%, 3rd gets 20%
});

// Finish a game
await serverSDK.finishGame({
  poolId: BigInt(1),
  player: "0x...",
  startTime: Math.floor(Date.now() / 1000),
  endTime: Math.floor(Date.now() / 1000) + 3600,
  correctAnswer: "correct-answer",
  score: 95,
});

API Reference

SuperSmartSDK

Constructor

new SuperSmartSDK({
  isProduction: boolean;
  superSmartContractAddress: string;
  miniappId: string;
  privateKey?: string;
})

Methods

  • verifyLogin(payload, nonce): Verify Worldcoin login
  • openPool(params): Create a new gaming pool
  • closePool(poolId: bigint): Close an existing pool
  • verifyJoinPool(poolId: bigint, userAddress: string): Check if user joined pool
  • finishGame(params): Complete a game and distribute rewards
  • mintTickets(to: string, amount: bigint): Mint tickets for a user

Configuration

Environment Variables

# Required for server operations
PRIVATE_KEY=your-private-key

# Optional: Custom RPC URLs
RPC_URL_MAINNET=https://mainnet.infura.io/v3/your-key
RPC_URL_TESTNET=https://sepolia.infura.io/v3/your-key

Network Configuration

The SDK supports both mainnet and testnet configurations:

  • Mainnet: Ethereum mainnet with production settings
  • Testnet: Sepolia testnet for development and testing

Core Functionality

Pool Management

  • Create gaming pools with customizable parameters
  • Set ticket prices and fee structures
  • Configure reward distribution
  • Manage pool lifecycle (open/close)

Game Operations

  • Track game participation
  • Validate user eligibility
  • Process game completion
  • Distribute rewards automatically

Security Features

  • Private key management
  • Transaction signing
  • Worldcoin verification
  • Secure contract interactions

Requirements

  • Node.js >= 18.0.0
  • TypeScript >= 5.0.0
  • Private key for server operations

Dependencies

  • viem: Ethereum interaction library
  • ethers: Ethereum utilities
  • axios: HTTP client for API calls

Build

# Build ESM version
npm run build:esm

# Build CommonJS version
npm run build:cjs

# Build both versions
npm run build

# Clean build directory
npm run clean

License

MIT

Support

For support and questions, please open an issue on our GitHub repository.

Contributing

Contributions are welcome! Please read our contributing guidelines and submit pull requests to our GitHub repository.