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

@cryptoflops/stacks-jackpot-wall

v1.1.0

Published

A decentralized jackpot wall on Stacks with real-time Chainhook integration.

Readme

Stacks Jackpot Wall 🏆

A high-performance, real-time decentralized messaging scoreboard built on the Stacks Blockchain. Features an immutable micro-lottery system powered by Clarity Smart Contracts and real-time observability via Hiro Chainhooks.

Live Demo: jackpot-wall.vercel.app (alternative: stacks-jackpot-wall.vercel.app)


🏗️ Stacks Building Mechanics

1. Smart Contract Strategy (Clarity 2.0)

The core engine is an autonomous Clarity contract (jackpot-wall.clar) that enforces:

  • Immutable State: Every post is etched permanently on-chain.
  • Deterministic Payouts: Every 10th poster is rewarded with 90% of the pot, calculated at settlement.
  • Protocol Fees: 10% is retained by the contract to sustain the ecosystem.
  • Zero Control: No admin keys, no pause buttons—pure, decentralized code.

2. Real-Time Observability (Chainhooks)

Instead of polling the Stacks node, this project utilizes Hiro Chainhooks to achieve sub-second UI updates:

  • Predicates: Custom hooks listen for the print events (new-post and jackpot-won) emitted by the contract.
  • Latency: Near-instant data ingestion, bypassing the block confirmation lag for non-critical UI feedback.

3. Testnet and Mainnet Deployment

The architecture is designed for seamless transitions between environments using standardized Clarinet deployment plans.


🛠️ Repository Structure

├── contracts/          # Clarity 2.0 smart contract source
├── chainhooks/         # JSON predicates for Hiro Chainhook
├── tests/              # Vitest suite for contract logic
├── deployments/        # Clarinet deployment plans (Mainnet/Testnet)
└── web/                # Stacks-enabled Dashboard (Next.js/Stacks SDK)

🏁 Quick Start

1. Contract Development & Testing

Ensure you have Clarinet installed.

# Run the test suite
npm test

# Check contract syntax
clarinet check

2. Ship to Testnet & Mainnet

# Deploy to Testnet
./deploy-testnet.sh

# Deploy to Mainnet (Requires SP... contract address)
./deploy-mainnet.sh

3. Run the Web App Dashboard

You can run the web app directly from the root directory.

# Install dependencies
npm install

# Start the dashboard in development mode
npm run dev:web

# Build the dashboard for production
npm run build:web

🚀 Deploy the Web App Page

You can deploy the web app dashboard instantly to Vercel with a single click:

Deploy with Vercel


🛡️ Security & Privacy

  • Paranoid Review: Full security audit available in security_audit.md.
  • Zero-Key Principle: This repository contains no private keys, seed phrases, or hardcoded secrets.
  • Audit Trails: All event logs are printed on-chain for public verification.

📜 License

MIT