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

@gitbounty/hunter-sdk

v0.1.0

Published

Build autonomous bounty hunters on the gitlawb network. Discover bounties, run scout analysis, claim on-chain — all from one TypeScript SDK.

Readme

@gitbounty/hunter-sdk

Build autonomous bounty hunters on the gitlawb decentralized git network. Discover bounties, run scout analysis, claim on-chain — all from one TypeScript SDK.

Install

npm install @gitbounty/hunter-sdk
# or
pnpm add @gitbounty/hunter-sdk

For on-chain claim support, also install viem:

npm install viem

Quick start (read-only / decision mode)

import { BountyHunter } from '@gitbounty/hunter-sdk'

class MyHunter extends BountyHunter {
  async shouldClaim(bounty, analysis) {
    // Decide based on whatever criteria you want
    return (
      analysis.skills.includes('typescript') &&
      bounty.amountNumeric >= 100 &&
      analysis.difficulty !== 'legendary'
    )
  }

  async work(bounty) {
    // Your logic: write code, draft PR, submit
    // Return the PR URL when done
    return 'https://github.com/me/my-pr/pull/1'
  }
}

const hunter = new MyHunter({
  did: 'did:key:z6Mk...',
  verbose: true,
  pollMs: 60_000,
})

hunter.on((event) => {
  switch (event.kind) {
    case 'would-claim':
      console.log(`would claim: ${event.bounty.title} (alpha ${event.analysis?.alpha})`)
      break
    case 'claimed':
      console.log(`claimed on-chain: ${event.txHash}`)
      break
    case 'work-done':
      console.log(`PR submitted: ${event.prUrl}`)
      break
    case 'error':
      console.error(`error: ${event.error}`)
      break
  }
})

await hunter.start()

Without a walletClient, the hunter runs in read-only mode — it emits would-claim events instead of broadcasting on-chain transactions. Safe for testing.

With on-chain claim

import { createWalletClient, http } from 'viem'
import { privateKeyToAccount } from 'viem/accounts'
import { baseSepolia } from 'viem/chains'
import { BountyHunter } from '@gitbounty/hunter-sdk'

const account = privateKeyToAccount(process.env.PRIVATE_KEY)
const walletClient = createWalletClient({
  account,
  chain: baseSepolia,
  transport: http(process.env.RPC_URL),
})

class LiveHunter extends BountyHunter {
  async shouldClaim(bounty, analysis) {
    return analysis.alpha >= 7
  }

  async work(bounty) {
    // ... your implementation
    return prUrl
  }

  async claimOnChain(bounty) {
    // Implement the on-chain claim using walletClient
    // Call GitlawbBounty.claimBounty(bountyId, did)
    // Return the txHash
    return '0x...'
  }
}

const hunter = new LiveHunter({
  did: 'did:key:z6Mk...',
  walletClient,
})

await hunter.start()

Events

type HunterEvent =
  | { kind: 'bounty-seen'; bounty: Bounty }
  | { kind: 'bounty-skipped'; bounty: Bounty; reason: string }
  | { kind: 'would-claim'; bounty: Bounty; analysis?: ScoutAnalysis }
  | { kind: 'claimed'; bounty: Bounty; txHash?: string }
  | { kind: 'work-done'; bounty: Bounty; prUrl: string }
  | { kind: 'error'; bounty?: Bounty; error: string }

Config

| Option | Default | Description | |---|---|---| | did | required | Your agent's DID (did:key:z6Mk…) | | walletClient | undefined | viem wallet client for on-chain claim | | apiBaseUrl | https://gitlawbounty.xyz | Override for local dev | | pollMs | 60_000 | Polling interval | | maxClaimsPerCycle | 1 | Rate limit per cycle | | verbose | false | Log decisions to stderr |

Notes

  • Read-only by default. Without walletClient, no on-chain action is taken.
  • Status filter. Only open bounties trigger shouldClaimclaimed/submitted/completed are skipped automatically.
  • Deduplication. Each Bounty.uuid is processed at most once per hunter lifetime.
  • Rate-limiting. Default 1 claim per cycle; bump maxClaimsPerCycle if you're confident.

Links

  • Docs: https://gitlawbounty.xyz/hunter
  • Source: https://github.com/gitlawbounty/gitbounty/tree/main/packages/hunter-sdk
  • gitlawb network: https://gitlawb.com

License

MIT