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

@kamiyo-org/tars-adapter

v0.1.0

Published

TARS (Trustless Agent & Reputation Standard) adapter for KAMIYO protocol

Readme

@kamiyo-org/tars-adapter

TARS (Trustless Agent & Reputation Standard) adapter for KAMIYO protocol. Provides bidirectional integration between KAMIYO's dispute resolution system and Amiko's TARS reputation protocol.

Features

  • Reputation Bridge: Sync reputation between KAMIYO (0-100 scale) and TARS (1-5 stars)
  • Job-Escrow Linking: Link TARS jobs to KAMIYO escrows for unified tracking
  • Auto-Feedback: Automatically submit TARS feedback when KAMIYO disputes resolve
  • Unified Middleware: Combined x402 payment middleware supporting both protocols
  • Combined Facilitator: Single facilitator service for TARS + KAMIYO payments

Installation

pnpm add @kamiyo-org/tars-adapter

Usage

Reputation Conversion

import {
  tarsToKamiyoReputation,
  kamiyoToTarsRating,
  aggregateCombinedReputation,
} from '@kamiyo-org/tars-adapter';

// TARS 4.5 stars -> KAMIYO 88 reputation
const kamiyoRep = tarsToKamiyoReputation(4.5);

// KAMIYO quality 85 -> TARS 5 stars
const tarsRating = kamiyoToTarsRating(85);

// Combined reputation (70% KAMIYO, 30% TARS)
const combined = aggregateCombinedReputation(80, 60);

TarsBridge

import { Connection, Keypair } from '@solana/web3.js';
import { createTarsBridge } from '@kamiyo-org/tars-adapter';

const connection = new Connection('https://api.devnet.solana.com');
const bridge = createTarsBridge({
  connection,
  config: {
    mode: 'unified',
    autoSubmitFeedback: true,
  },
});

// Get combined reputation
const reputation = await bridge.getCombinedReputation(agentWallet);

// Submit feedback from dispute outcome
await bridge.submitFeedbackFromDispute(
  escrowPda,
  qualityScore, // 0-100
  clientKeypair,
);

Unified Middleware

import express from 'express';
import { kamiyoTarsMiddleware } from '@kamiyo-org/tars-adapter';

const app = express();

app.use(
  '/api/paid',
  kamiyoTarsMiddleware({
    payTo: 'AgentWalletAddress',
    tarsEnabled: true,
    kamiyoEscrowEnabled: true,
    minReputation: 50,
    price: '$0.01',
    network: 'solana-devnet',
  }),
);

UnifiedFacilitator

import { createUnifiedFacilitator } from '@kamiyo-org/tars-adapter';

const facilitator = createUnifiedFacilitator({
  connection,
  payer: payerKeypair,
});

// Prepare transaction with TARS job registration
const { transaction, tarsJobPda } = await facilitator.prepare({
  paymentRequirements,
  walletAddress: clientWallet,
  enableTrustless: true,
});

// Settle payment
const result = await facilitator.settle(request);
console.log('TARS Job ID:', result.tarsJobId);

Configuration

interface TarsAdapterConfig {
  tarsProgramId?: PublicKey;
  mode: 'tars-only' | 'kamiyo-only' | 'unified';
  syncReputation: boolean;
  reputationWeight: {
    kamiyo: number; // default: 0.7
    tars: number; // default: 0.3
  };
  autoSubmitFeedback: boolean;
  feedbackDelay: number;
  linkJobsToEscrows: boolean;
}

Reputation Mapping

TARS -> KAMIYO

| TARS Rating | KAMIYO Score | | ----------- | ------------ | | 1 star | 0 | | 2 stars | 25 | | 3 stars | 50 | | 4 stars | 75 | | 5 stars | 100 |

KAMIYO -> TARS

| Quality Score | TARS Rating | | ------------- | ----------- | | 80-100 | 5 stars | | 65-79 | 4 stars | | 50-64 | 3 stars | | 25-49 | 2 stars | | 0-24 | 1 star |

Program IDs

  • TARS: GPd4z3N25UfjrkgfgSxsjoyG7gwYF8Fo7Emvp9TKsDeW
  • KAMIYO: 3ZYPtFBF8rfRYvLi5QUnU4teHPzFEpHuz6dUZry9FRKr

License

MIT