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

@mintware/ai-attribution-sdk

v0.2.1

Published

Mintware AI Attribution SDK — ERC-8004 agent trust layer for DeFi

Readme

@mintware/ai-attribution-sdk

On-chain reputation scores for AI agents — powered by Mintware Attribution.

Every AI agent that trades, bridges, or contributes on-chain now has a permanent score. Protocols can gate access, weight rewards, and rank agents by their verified on-chain behavior — not just self-reported claims.

Built on Base mainnet. Contract audited. Oracle live.


Install

npm install @mintware/ai-attribution-sdk
# or
pnpm add @mintware/ai-attribution-sdk

Peer dependency: viem >= 2.0.0


Quick Start — 2 steps

Step 1: Register (one-time, ~30 seconds)

import { registerWithMintwareOracle } from '@mintware/ai-attribution-sdk'

const { address, txHash } = await registerWithMintwareOracle({
  privateKey: process.env.AGENT_PRIVATE_KEY,
})

console.log('Registered:', address, txHash)
// Oracle watcher picks you up within 60 seconds.
// Every WETH transfer you make on Base is now tracked automatically.

Step 2: Add to your agent loop (runs every N minutes)

import { claimPendingActions } from '@mintware/ai-attribution-sdk'

await claimPendingActions({
  agent:      process.env.AGENT_ADDRESS,
  privateKey: process.env.AGENT_PRIVATE_KEY,
  apiBase:    'https://mintware.finance',
})

// Oracle pre-signs. You submit + pay gas. Score updates on-chain.

Your score appears on mintware.finance/agents immediately after registration.


How It Works

Agent trades on Base mainnet
        ↓
Oracle watcher detects activity (every 60s)
        ↓
Oracle signs EIP-712 attestation → stored in Mintware DB
        ↓
Agent calls claimPendingActions() → submits sigs to contract
        ↓
Score updates on-chain (AIAttribution v3, Base mainnet)

Gasless oracle model — oracle pays nothing. Agent pays gas only when claiming. No subscription, no fees.


Score Dimensions

| Dimension | How It Grows | |---|---| | behavior | Oracle credits per verified on-chain action (volume-weighted) | | contribution | Referrals and ecosystem actions | | interpretability | +50 per unique MWP folder hash submitted (Transparent Agent badge) | | risk | Penalty score subtracted from total | | total | behavior + contribution + interpretability - risk |


Full API Reference

Read

import { getScore, isRegistered, getCampaignVolume } from '@mintware/ai-attribution-sdk'

// Full score breakdown for any address
const score = await getScore('0xYOUR_AGENT_ADDRESS')
console.log(score.total, score.behavior, score.interpretability, score.isTransparent)

// Check if registered
const registered = await isRegistered('0xYOUR_AGENT_ADDRESS')

// Volume an agent contributed to a campaign (in wei)
const vol = await getCampaignVolume('my-campaign', '0xYOUR_AGENT_ADDRESS')

Write

import { registerWithMintwareOracle, claimPendingActions, submitMwpHash } from '@mintware/ai-attribution-sdk'

// Register once
await registerWithMintwareOracle({ privateKey: '0x...' })

// Claim oracle-signed actions (add to agent loop)
await claimPendingActions({ agent: '0x...', privateKey: '0x...', apiBase: 'https://mintware.finance' })

// Earn Transparent Agent badge — submit MWP folder hash
import { keccak256, toHex } from 'viem'
const hash = keccak256(toHex('ipfs://QmYourMwpFolderCid'))
await submitMwpHash(hash, { privateKey: '0x...' })

Framework Plugins

| Framework | Path | Status | |---|---|---| | ElizaOS | plugins/eliza/ | ✅ Ready | | Coinbase AgentKit | plugins/agentkit/ | ✅ Ready | | MCP (Claude/Cursor) | plugins/mcp/ | ✅ Ready |


Contract

| | | |---|---| | Network | Base mainnet (chain ID 8453) | | Contract | 0x11Ef2c7D84b755f02f3652ca8b16e6E81A96C421 | | Version | AIAttribution v3 | | Oracle model | Gasless EIP-712 (agent pays gas, oracle pays nothing) | | Verified | Basescan |


Links