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

prova-agent-kit

v0.1.3

Published

Prova adapter for Solana Agent Kit — emit verifiable on-chain receipts for every action a SAK agent executes

Readme

prova-agent-kit

Prova adapter for Solana Agent Kit (v2). Add verifiable on-chain receipts to any SAK agent — in one line. Every action your agent executes gets sealed as an immutable Prova attestation.

Status: proof of concept (Devnet). Designed against solana-agent-kit@^2.0.0.

Install

npm install prova-agent-kit prova-agent-sdk solana-agent-kit

Quick start

import { SolanaAgentKit } from 'solana-agent-kit';
import { ProvaClient } from 'prova-agent-sdk';
import { attachProva, attesterFromProvaClient } from 'prova-agent-kit';
import { Keypair } from '@solana/web3.js';

// 1) Tu agente normal de Solana Agent Kit
const agent = new SolanaAgentKit(wallet, RPC_URL, {})
  .use(TokenPlugin)
  .use(DefiPlugin);

// 2) Cliente Prova + operador (keypair propio de Devnet, NO el wallet de trading)
const prova = new ProvaClient({ rpcUrl: 'https://api.devnet.solana.com', agentKeypair });
const operatorKeypair = Keypair.fromSecretKey(/* ... */);
const attester = attesterFromProvaClient(prova, ProvaClient.hashAction, operatorKeypair);

// 3) Una línea: atesta cada acción del agente. Llamar DESPUÉS de todos los .use()
const prova_handle = attachProva(agent, { attester });

// ... el agente opera normal; las acciones se atestan en segundo plano ...

await prova_handle.stop(); // flush final al cerrar

Cómo funciona

Solana Agent Kit v2 no expone hooks/middleware, así que el adapter ofrece dos puntos de captura (úsalos juntos para cobertura total):

  • attachProva(agent, opts) — envuelve agent.actions[].handler. Captura nombre + input + output de cada acción (incluidas las de solo lectura). Mecanismo principal.
  • new ProvaWallet(wallet, opts) — decorador de BaseWallet. Captura la firma on-chain real de cada transacción, sin importar el plugin. Cinturón de seguridad.
import { ProvaWallet } from 'prova-agent-kit';
const agent = new SolanaAgentKit(new ProvaWallet(realWallet, { attester }), RPC_URL, {});

No bloquea al agente

Las atestaciones son fire-and-forget con batching por debounce: un fallo de Prova nunca rompe ni frena una acción del agente. Una ráfaga de tool calls (multi-tool-calling) se agrupa y se envía en UNA sola tx (batchAttest, hasta 100) apenas la ráfaga se detiene (flushDelayMs), o al llegar a maxSize.

attachProva(agent, {
  attester,
  rules: (name) => name !== 'fetchPrice',      // qué acciones atestar (default: todas)
  batch: { maxSize: 25, flushDelayMs: 1000 },   // agrupa la ráfaga y envía ~1s tras la última acción
  onError: (err, ctx) => logger.warn(ctx.action, err),
});

Importante: llama a handle.stop() cuando el agente termine su turno para garantizar el flush final de lo pendiente.

Modelo de claves

Prova atesta con su propio par operador/agente de Devnet, independiente del wallet de trading del agente. Ventajas: no necesita la private key de trading, funciona con wallets Privy/Turnkey, y el operador Prova es la identidad que avala al agente. Registra el agente una vez con prova.registerAgent({ operatorKeypair }).

API

  • attachProva(agent, options) → ProvaHandle · { flush(), stop() }
  • ProvaWallet(inner, options) implements SAK BaseWallet
  • attesterFromProvaClient(client, hashAction, operatorKeypair) → ProvaAttester
  • createBatcher(attester, options, onError) → Batcher (interno, exportado para tests)
  • buildPayload, mapActionType, extractSignature (puros)

Caveats

  • Orden: llama attachProva después de todos los .use(plugin); las acciones añadidas después no quedan envueltas. El ProvaWallet no depende del orden.
  • Tipos: el adapter usa tipos estructurales de SAK v2 (no importa solana-agent-kit). Verifica compatibilidad al fijar versión.

License

Apache-2.0 · Prova Labs