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

@telaro/ars-solana

v0.1.2

Published

The Agentic Risk Standard (ARS) implemented for Solana. Event-sourced agent-job lifecycle and settlement bindings on top of the Telaro program.

Readme

@telaro/ars-solana

The Agentic Risk Standard (ARS), implemented for the Telaro Solana program.

ARS splits a job into a fee track and a principal track. Telaro implements the principal track — the underwriting → collateral → principal-release lifecycle for AI agents that handle user capital.

What's here

| Module | Role | | ------ | ---- | | events.ts | the principal-track event types — the job log is append-only | | state.ts | the event-sourced state machine — replay() derives the job | | store.ts | EventStore — append-only, validate-on-append event log | | ingest.ts | toArsEvent — telaro on-chain events → ARS events | | settlement.ts | the SettlementLayer contract + telaro instruction map | | binding.ts | ARS settlement actions → telaro instructions (pure builders) | | client.ts | TelaroSettlement — the async client that sends them |

Lifecycle

A job's state is derived by replaying its event log — there is no mutable state to corrupt, matching the ARS reference design.

AWAIT_UNDERWRITING → UNDERWRITING → RELEASABLE → EXECUTING
                          │              → EVIDENCE_SUBMITTED
                          │                    → (DISPUTED →) CLOSED
                          └─ REJECTED
import { replay } from "@telaro/ars-solana";

const job = replay([
  { type: "JobOpened", jobId, at, agent, requestor, exposureAtomic },
  { type: "UnderwritingStarted", jobId, at },
  { type: "UnderwritingDecided", jobId, at, passed: true },
  { type: "PrincipalReleased", jobId, at, amountAtomic },
  { type: "EvidenceSubmitted", jobId, at, actionHash, outcome: "success" },
  { type: "Closed", jobId, at, resolution: "no_dispute" },
]);
// job.state === "CLOSED"

An illegal transition throws ARSTransitionError — the log can never fold into an invalid job.

SettlementLayer

settlement.ts pins the ARS SettlementLayer contract for Solana. Of the 8 ARS methods, 6 map onto telaro program instructions that already exist on-chain (TELARO_SETTLEMENT_MAP); the two *Fee methods are out of scope for v1 — Telaro is a capital-risk layer, not a generic service-fee escrow.

binding.ts is the on-chain bindinglockCollateralIx, slashCollateralIx, unlockCollateralIx, payPremiumIx and releasePrincipalIx each turn an ARS settlement action into a telaro TransactionInstruction (built via @telaro/sdk):

import { releasePrincipalIx } from "@telaro/ars-solana";

const ix = releasePrincipalIx({ jobId, agent, controller, amountAtomic });
// → a request_credit instruction; add it to a Transaction, sign, send.

client.ts is the async settlement clientTelaroSettlement implements the SettlementLayer interface, building each binding instruction and sending it:

import { TelaroSettlement, connectionSender } from "@telaro/ars-solana";

const settlement = new TelaroSettlement({ sender: connectionSender(connection) });
const { signature } = await settlement.releasePrincipal(
  { jobId, agent, controller, amountAtomic },
  [controllerKeypair], // signers, fee payer first
);

Sending is abstracted behind a TxSender, so the same client runs against a live RPC (connectionSender) or an in-process bankrun runtime. The binding instructions are verified end to end against the real telaro.so — see programs/telaro/tests/tests/ars-binding.test.ts.

License

MIT