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

@greyw0rks/celotip

v0.1.0

Published

Community tipping dApp on Celo, compatible with MiniPay. Send USDm tips to community members with on-chain leaderboard.

Readme

CeloTip 💸

A community tipping dApp on Celo, fully compatible with MiniPay.

Send cUSD tips to community members, see a live leaderboard of top givers and receivers, and leave shoutout messages — all on-chain.


Features

  • MiniPay auto-connect — detects MiniPay environment and connects instantly
  • 💚 cUSD tipping — send Celo's native stablecoin to any address
  • 🏆 Live leaderboard — top tippers and most-tipped members
  • 📜 On-chain feed — every tip stored and queryable from the contract
  • 📱 Mobile-first UI — designed for MiniPay's screen size

Quick Start

1. Install dependencies

npm install

2. Deploy the contract

# Install hardhat deps
npm install --save-dev hardhat @nomicfoundation/hardhat-toolbox dotenv

# Set your private key
echo "PRIVATE_KEY=0x..." > .env

# Deploy to Celo mainnet
npx hardhat run scripts/deploy.ts --network celo

Copy the deployed address into lib/constants.ts:

export const CELOTIP_ADDRESS = "0xYourDeployedAddress" as const;

3. Run the app

npm run dev

Open http://localhost:3000 with a browser that has a Celo wallet (or open in MiniPay).


MiniPay Compatibility

The useMiniPay hook (hooks/useMiniPay.ts) handles everything:

  • Detects window.ethereum.isMiniPay
  • Auto-connects without a wallet modal
  • Reads cUSD balance from Celo mainnet
  • Enforces chain ID 42220

Proof of Ship Checklist

  • [x] MiniPay hook (useMiniPay.ts) added
  • [x] App compatible with MiniPay (auto-connect, cUSD, mobile UI)
  • [ ] Deploy CeloTip.sol on Celo mainnet → paste address in constants.ts
  • [ ] Verify humanity (Self / Worldcoin / Coinbase)
  • [ ] Submit project to campaign

Contract

CeloTip.sol — peer-to-peer cUSD tipping with on-chain event log.

| Function | Description | |---|---| | tip(recipient, amount, message) | Send cUSD tip + emit event | | getRecentTips(offset, limit) | Paginated tip history | | totalSent[address] | Total cUSD sent by address | | totalReceived[address] | Total cUSD received by address |


Project Structure

celotip/
├── app/
│   ├── layout.tsx          # Root layout
│   ├── page.tsx            # Main page
│   ├── providers.tsx       # wagmi + react-query
│   └── globals.css
├── components/
│   ├── SendTipModal.tsx    # Tip form bottom sheet
│   └── Leaderboard.tsx    # Feed + rankings
├── contracts/
│   └── CeloTip.sol        # Solidity contract
├── hooks/
│   ├── useMiniPay.ts      # ⚡ MiniPay integration hook
│   └── useTipping.ts      # Tip flow (approve + send)
├── lib/
│   └── constants.ts       # Addresses + ABIs
└── scripts/
    └── deploy.ts          # Hardhat deploy script