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

@ophis/plugin-elizaos

v0.3.1

Published

elizaOS plugin: MEV-protected same-chain swaps via Ophis (CoW Protocol). The agent signs CoW orders with its own EVM key; the Ophis partner fee + your referral code accrue the 8-12% rebate.

Readme

@ophis/plugin-elizaos

MEV-protected same-chain token swaps for elizaOS agents, routed through Ophis (a CoW Protocol intent-settlement layer).

Instead of an AMM swap that can be sandwiched, the agent's order settles in a batch auction: uniform clearing price, surplus (price improvement) returned to the trader, and gasless settlement (solvers pay the gas). The agent signs the CoW order with its own EVM key (EIP-712) — no managed-wallet dependency. Each order carries the Ophis partner fee in appData; set a referral code to earn the 8-12% rebate.

Complements bridging plugins — this is same-chain best execution, not cross-chain.

Install

npm install @ophis/plugin-elizaos

Add it to your character:

{
  "plugins": ["@ophis/plugin-elizaos"],
  "settings": {
    "EVM_PRIVATE_KEY": "0x...",           // the agent's EOA key (funds the swap + one-time approval)
    "OPHIS_REFERRAL_CODE": "yourcode",    // optional — earns the rebate (mint at swap.ophis.fi/#/rewards)
    "OPHIS_FEE_CHAIN": "base"             // optional default chain
    // optional RPC overrides: "ETHEREUM_PROVIDER_BASE": "https://...", etc.
  }
}

Use

"Swap 100 USDC for WETH on Base via Ophis" "Sell 0.5 WETH for USDC on Unichain"

The OPHIS_SWAP action extracts the intent, resolves the chain + token addresses, and executes the swap through the audited @ophis/agent-swap core (quote → Ophis fee appData → approve the CoW VaultRelayer → EIP-712-sign the order → submit). It returns the order UID and an explorer.ophis.fi tracking link.

Supported chains

Ethereum, Optimism, BNB, Gnosis, Unichain, Polygon, Base, Ink, Arbitrum, Avalanche, Linea. Optimism and Unichain are Ophis-sovereign (100% of price improvement returned). Same-chain only.

Tokens

Common tokens (USDC, WETH, …) resolve by symbol on the major chains; for anything else, ask by contract address (0x…). Native ETH is not supported — swap WETH and unwrap. The plugin never guesses a token address.

Trust model (autonomous NL agent). The swap intent (chain, tokens, amount) is extracted by the model from the user's request, so it inherits the usual bounds — and hardening — of an autonomous agent:

  • Receiver is pinned to the agent's own wallet — proceeds can never be diverted to a third party.
  • Raw 0x token addresses are accepted only if they appear verbatim in the user's request — a model-hallucinated-but-valid address can't route funds to the wrong token.
  • Symbols resolve only through a verified canonical map; chains are restricted to the Ophis-supported set; extraction is anchored on the current request (embedded/older-message instructions are ignored); slippage is floored (no accept-any-price).
  • Residual, by design: within those bounds the model still chooses the chain / canonical token / amount, so a misinterpretation could pick a supported-but-unintended one. Constrain the agent's inputs accordingly for high-value or shared-room deployments.

Notes

  • The agent's key needs the sell token plus a little native gas for the one-time ERC-20 approval; the swap settlement itself is gasless.
  • Slippage defaults to 0.5% (capped at 50% by the SDK).
  • Built on @ophis/agent-swap — the same audited path used by the Ophis Coinbase-AgentKit and GOAT integrations.