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

@wkalidev/stacks-quest-sdk

v1.1.0

Published

Universal SDK for Stacks Quest multichain puzzle game

Readme

Stacks Quest

Daily blockchain puzzle game + non-custodial DeFi agent on Stacks (Bitcoin L2).

Live App


How to Play

Visit /game to play the daily puzzle.

  1. Connect your Leather or Xverse wallet
  2. Read today's puzzle (Stacks block height, STX price, or tx count)
  3. Enter your numeric guess
  4. Choose a token (STX, $B2S, USDCx, or sBTC) and bet amount (1–100)
  5. Submit — you get a hot / warm / cold hint immediately
  6. Winners split the daily reward pool for their token
  7. Hit the check-in button daily to build your streak and earn bonus rewards

Daily Puzzle Mechanics

Each day a new puzzle is posted about real Stacks blockchain data. Players submit a guess + bet. Winners split the reward pool for their token.

  • 1 guess per player per day
  • Bet 1–100 STX / $B2S / USDCx, or 0.00001–0.001 sBTC
  • Correct guesses (within tolerance %) win a share of the pool + bet back
  • Separate pools per token: STX · $B2S · USDCx · sBTC
  • Hot / warm / cold hint after each guess
  • Wordle-style social sharing after result (Twitter + Farcaster)

DeFi Agent

Natural language AI powered by Groq (llama-3.3-70b-versatile). 100% non-custodial — user always signs their own transactions.

Supported Languages

EN · FR · ES · ZH · AR · PT

DEX Routing

| Pair | DEX | |------|-----| | STX / $B2S | Velar DEX | | STX / USDCx | Velar DEX | | STX / WELSH | Velar DEX | | STX / sBTC | Alex DEX | | STX / ALEX | Alex DEX |

Supported Tokens

| Token | Contract | Decimals | |-------|----------|----------| | STX | native | 6 | | sBTC | SM3VDXK3WZZSA84XXFKAFAF15NNZX32CTSG82JFQ4.sbtc-token | 8 | | $B2S | SP1V72500C63KN9E348QDK9X879MASSTN0J3KBQ5N.b2s-token-v4 | 6 | | USDCx | SP120SBRBQJ00MCWS7TM5R8WJNTTKD5K0HFRC2CNE.usdcx | 6 | | ALEX | SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-alex | 8 | | WELSH | SP3NE50GEXFG9SZGTT51P40X2CKYSZ5CC4ZTZ7A2G.welshcorgicoin-token | 6 |


MCP Server

Endpoint: https://stacks-quest-ten.vercel.app/api/mcp

| Tool | Description | |------|-------------| | get_daily_puzzle | Today's puzzle number, token pools, bet range | | get_player_stats | Player streak, total guesses, wins, earnings | | get_agent_info | Agent capabilities, DEX routing table, languages | | get_staking_options | Best staking options on Stacks with APY and risk | | get_swap_routes | Recommended DEX for a given token pair | | get_checkin_info | Daily check-in cost, streak bonus schedule | | get_network_stats | Live Stacks block height, mempool, network info |


A2A Agent Card

Endpoint: https://stacks-quest-ten.vercel.app/api/agent-card Well-known: https://stacks-quest-ten.vercel.app/.well-known/agent-card.json

| Skill | Description | |-------|-------------| | daily_puzzle | Guess blockchain data, bet tokens, win pool | | swap | Route via Velar DEX or Alex DEX | | bridge | Base Network → Stacks via Base2Stacks | | checkin | 0.001 STX daily, streak bonuses at 7/30/100 days | | portfolio | Real-time balances for all supported tokens | | staking_info | APY options and risk info across protocols |


Social Sharing

After a puzzle result, share your score Wordle-style:

🔥 Stacks Quest Daily #20254
🔥 Streak: 12 days
👉 stacks-quest-ten.vercel.app
#StacksQuest #Bitcoin #Stacks

Share buttons appear automatically after hot / warm / cold results.


Smart Contracts

Owner: SP1V72500C63KN9E348QDK9X879MASSTN0J3KBQ5N

| Contract | Description | |----------|-------------| | stacks-quest-v2 | Daily puzzle — multi-token bets, reward pools | | stacks-quest-agent-v3 | Daily check-in (0.001 STX), streak, agent log | | b2s-token-v4 | $B2S SIP-010 token |


Tech Stack

| Layer | Technology | |-------|------------| | Frontend | Next.js 16, React 19, TypeScript | | Styling | Tailwind CSS | | AI Agent | Groq (llama-3.3-70b-versatile) | | Blockchain | Stacks, Clarity 3, Epoch 3.2 | | Wallets | Leather, Xverse | | DEX | Velar DEX, Alex DEX | | Bridge | Base2Stacks | | Tooling | Clarinet | | Deployment | Vercel |


Environment Variables

GROQ_API=your_groq_api_key
NEXT_PUBLIC_CONTRACT_ADDRESS=SP1V72500C63KN9E348QDK9X879MASSTN0J3KBQ5N
NEXT_PUBLIC_CONTRACT_NAME=stacks-quest-v2
NEXT_PUBLIC_BASE_URL=https://stacks-quest-ten.vercel.app
# For deploy scripts only — NEVER expose in Next.js
STACKS_PRIVATE_KEY=your_private_key

Quick Start

git clone https://github.com/wkalidev/stacks-quest.git
cd stacks-quest
npm install
cp .env .env.local  # fill in your keys
npm run dev

Multichain Support

| Chain | Game Contract | Check-in Contract | Status | |-------|--------------|-------------------|--------| | Stacks | stacks-quest-v2 | stacks-quest-agent-v3 | ✅ Live | | Base | QuestGame.sol | QuestCheckIn.sol | 🔜 Deploying | | Celo | QuestGame.sol | QuestCheckIn.sol | 🔜 Deploying |

Tokens per Chain

| Chain | Native | Stablecoins | Other | |-------|--------|-------------|-------| | Stacks | STX | USDCx, aeUSDC | $B2S, sBTC | | Base | ETH | USDC, USDT | — | | Celo | CELO | cUSD | — |


SDK

npm install @wkalidev/stacks-quest-sdk
import StacksQuestSDK from '@wkalidev/stacks-quest-sdk'

const sdk = new StacksQuestSDK()

// Get today's puzzle on any chain
const puzzle = await sdk.getPuzzle('stacks')
const puzzle = await sdk.getPuzzle('base')
const puzzle = await sdk.getPuzzle('celo')

// Get player stats
const stats = await sdk.getPlayerStats('SP1ABC...', 'stacks')
const stats = await sdk.getPlayerStats('0xABC...', 'base')

// Get supported tokens
sdk.getSupportedTokens('stacks') // ['STX', 'B2S', 'USDCX', 'AEUSDC', 'SBTC']
sdk.getSupportedTokens('base')   // ['ETH', 'USDC', 'USDT']
sdk.getSupportedTokens('celo')   // ['CELO', 'CUSD']

Stacks Builder Rewards

Stacks Quest is an active participant in Stacks Builder Rewards.

Every game guess, check-in, and agent swap is a real on-chain transaction on Stacks — driving genuine L2 activity on Bitcoin.


Related Projects


Built by wkalidev (zcodebase) for Stacks Builder Rewards 2026