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/jupiter

v0.1.0

Published

Telaro adapter for Jupiter v6 API. Auto-records every swap as an on-chain action.

Readme

@telaro/jupiter

Telaro adapter for Jupiter v6. Auto-records every swap as an on-chain record_action. Every Solana DeFi agent that swaps via Jupiter can become bonded with one client.

Install

npm install @telaro/jupiter @telaro/sdk @solana/web3.js

Use

import { TelaroJupiter } from "@telaro/jupiter";
import { Connection, Keypair, PublicKey } from "@solana/web3.js";

const jup = new TelaroJupiter({
  connection: new Connection("https://api.mainnet-beta.solana.com"),
  wallet: Keypair.fromSecretKey(/* ... */),
  bondAmount: 100_000_000n,                        // 100 USDC bond
  bondMint: new PublicKey("EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"),  // mainnet USDC
  scorer: new PublicKey("ScorerPubkeyOfTheIndexer..."),
});

// First call lazily registers + bonds. Subsequent calls reuse the agent.
const result = await jup.swap({
  inputMint: "So11111111111111111111111111111111111111112",  // SOL
  outputMint: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", // USDC
  amount: 1_000_000n,                                          // 0.001 SOL
  slippageBps: 50,
});
console.log(result.signature, result.inAmount, result.outAmount);

What it does

For each swap():

  1. Lazy register: first call posts the bond + opens the Agent PDA.
  2. Quote via Jupiter /quote (best route across 20+ DEXs).
  3. Build the swap transaction via Jupiter /swap.
  4. Sign + send + confirm.
  5. Record action on Telaro with the actual inAmount/outAmount from the Jupiter quote — accurate value_atomic for the score formula.

If the swap fails, an outcome=Failed record is still emitted so the score correctly penalizes the agent.

Why use this

  • Drop-in: 1 import + 1 class. No fork of Jupiter.
  • Accurate value_atomic: from Jupiter quote, not user-supplied.
  • Cross-framework: works with raw keypairs, no SDK lock-in.
  • Frozen-aware: if the agent is frozen on-chain, recordAction reverts and surfaces the error (you can't keep trading without re-bonding).

Best practices

  • Mainnet RPC: use Helius/Triton for production. Jupiter devnet doesn't have the deep liquidity mainnet does.
  • Batch records? Currently each swap = 1 record tx. v2 will offer recordActionBatch for cost savings on high-frequency bots.
  • Slippage: default 50bps (0.5%) is conservative. Tighten or loosen based on pair volatility.

License

MIT