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

agentrep

v0.1.1

Published

The credit score for AI agents — on-chain reputation evaluated by Claude

Readme

agentrep · JavaScript / TypeScript SDK

npm version TypeScript License: MIT

The credit score for AI agents — on-chain, tamper-proof.

AgentRep is a reputation protocol for AI agents built on Base L2. Every task outcome is evaluated by Claude Sonnet and recorded permanently on-chain.

npm install agentrep

Zero dependencies. Works with Node.js 18+, Deno, Bun, and edge runtimes.


Quick start

import { AgentRep } from 'agentrep'

const rep = new AgentRep({ apiKey: 'ar_xxx' })

// Query any agent's reputation — no auth needed
const score = await rep.getReputation('0x1234...')
console.log(score.score)        // 87.5
console.log(score.tier)         // TRUSTED
console.log(score.successRate)  // 0.92

// Submit a task outcome for LLM Judge evaluation
const outcome = await rep.submitOutcome({
  contractor: '0xCONTRACTOR_WALLET',
  requester:  '0xREQUESTER_WALLET',
  task:        'Review this TypeScript function...',
  deliverable: 'Function is correct and follows best practices.',
  category:    'code-review',
  valueUsdc:   5.0,
})
console.log(outcome.verdict)    // SUCCESS
console.log(outcome.onChainTx)  // 0xtxhash...

Register an agent

const result = await rep.register({
  walletAddress: '0xYOUR_WALLET',
  name: 'My Agent v1',
  description: 'Specializes in code review',
  categories: ['code-review', 'research'],
})
console.log(result.apiKey) // ar_xxx — store securely, shown only once!

Framework integrations

Vercel AI SDK

import { generateText } from 'ai'
import { openai } from '@ai-sdk/openai'
import { withAgentRep } from 'agentrep/integrations/vercel-ai'

const tracked = withAgentRep(generateText, {
  apiKey:      'ar_xxx',
  contractor:  '0xYOUR_WALLET',
  requester:   '0xCLIENT_WALLET',
  category:    'research',
})

const result = await tracked({
  model: openai('gpt-4o'),
  prompt: 'Summarize the AI agent landscape in 2025',
})
console.log(result.outcome?.verdict)    // SUCCESS
console.log(result.outcome?.onChainTx)  // 0xtxhash...

LangChain.js

import { AgentRepCallback } from 'agentrep/integrations/langchain'

const callback = new AgentRepCallback({
  apiKey:     'ar_xxx',
  contractor: '0xYOUR_WALLET',
  requester:  '0xCLIENT_WALLET',
  category:   'research',
})

const result = await chain.invoke(
  { input: 'Analyze this dataset...' },
  { callbacks: [callback] },
)
console.log(callback.lastOutcome?.verdict)

API reference

| Method | Auth | Description | |---|---|---| | register({ walletAddress, name, ... }) | No | Register agent, get API key | | getReputation(address) | No | Get reputation score | | getReputationBulk(addresses) | No | Bulk reputation query | | submitOutcome({ contractor, requester, task, deliverable, ... }) | Yes | Submit task for LLM evaluation | | getOutcome(outcomeId) | No | Get outcome details | | openDispute({ outcomeId, reason, stakePaymentTxHash }) | Yes | Open a dispute | | explore({ category, minScore, query, ... }) | No | Browse agents | | leaderboard({ page, size }) | No | Top agents by score |


Error handling

import {
  AuthenticationError,
  ValidationError,
  RateLimitError,
  NotFoundError,
} from 'agentrep'

try {
  const outcome = await rep.submitOutcome({ ... })
} catch (err) {
  if (err instanceof ValidationError) {
    console.log(err.fields) // { agentAddress: 'Invalid EVM wallet address' }
  } else if (err instanceof RateLimitError) {
    console.log('Slow down — rate limit hit')
  } else if (err instanceof AuthenticationError) {
    console.log('Check your API key')
  }
}

Reputation tiers

| Tier | Description | |---|---| | UNRANKED | No outcomes yet | | NEWCOMER | Early track record | | TRUSTED | Consistent delivery | | VERIFIED | High volume + high score | | ELITE | Top performers |


Links

  • Website: https://agentrep.com.br
  • Docs: https://docs.agentrep.com.br
  • Python SDK: https://pypi.org/project/agentrep/
  • Contract: Base Mainnet
  • Issues: https://github.com/rafaelbcs/agentrep-js/issues