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

@orkid-labs/plugin-orkid

v2.1.1

Published

Orkid gasless swap engine integration — quote, execute, dry-run, confirm, and track swaps via @orkid-labs/sdk

Readme

@orkid-labs/plugin-orkid

ElizaOS plugin for the Orkid gasless swap engine. Quote, execute, dry-run, confirm, and track swaps on Base, Ethereum, Arbitrum, and Polygon via @orkid-labs/sdk.

Installation

bun add @orkid-labs/plugin-orkid
# or: npm install @orkid-labs/plugin-orkid

Then register the plugin in your agent's character file:

{
  "plugins": ["@orkid-labs/plugin-orkid"]
}

Once the plugin is listed in the ElizaOS registry, elizaos plugins add @orkid-labs/plugin-orkid works as well.

Configuration

Add the following environment variables to your .env:

| Variable | Required | Description | |----------|----------|-------------| | ORKID_API_KEY | Yes | 40-character hex Orkid API key. Required for partner volume tracking and rebates. See Getting an API key. | | ORKID_API_URL | No | Orkid API base URL. Default: https://orkidlabs.xyz. Use sandbox for sandbox mode (quotes only, no execution). | | ORKID_USER_ADDRESS | No | Default user wallet address for swaps. |

Getting an API key

Get an instant free key at https://orkidlabs.xyz/partner — or programmatically:

curl -X POST https://orkidlabs.xyz/api/v1/signup \
  -H 'Content-Type: application/json' \
  -d '{"email": "[email protected]", "project": "your-agent"}'

The plaintext key is shown once — store it immediately. Volume rebates accrue on rolling 30-day windows from activation. For higher tiers, rate limits, sandbox keys, or custom terms, contact [email protected] or https://orkidlabs.xyz/contact.

Anonymous calls (no key) may be rate-limited or blocked by anti-scraping.

Actions

| Action | Description | Billable? | |--------|-------------|-----------| | ORKID_GET_QUOTE | Get an executable swap quote via /api/v1/route | No | | ORKID_EXECUTE_SWAP | Execute a live gasless swap via /api/v1/solve. Requires explicit confirmation and a signed Permit2 permit. | Yes | | ORKID_DRY_RUN_SWAP | Simulate a swap without executing. Returns calldata and expected output. | No | | ORKID_LIST_TOKENS | List or search tokens available on a chain. | No | | ORKID_GET_USAGE | Fetch partner account usage, volume, and rebate status. | No | | ORKID_CONFIRM_TX | Confirm a user-submitted transaction so it counts as a real solve (rebate-eligible). | Yes |

Provider

ORKID_MARKET_DATA — Provides context about supported chains, API status, and minimum notional requirements.

Service

OrkidService — Manages the OrkidClient lifecycle. Reads configuration from runtime settings and exposes a shared client instance.

Route vs Solve Semantics

  • Route (/api/v1/route) = quote only. Non-billable. Does not count as volume.
  • Solve (/api/v1/solve) = execution. Billable. Counts as rebate-eligible volume.
  • Dry-run = solve with dryRun: true. Non-billable. Returns calldata without submitting.

Usage Examples

Get a Quote

User: quote 25 USDC to WETH on base
Agent: Quote: 25 USDC → 0.0102 WETH on Aerodrome. Rate: 0.000408 WETH/USDC.
       Price impact: 0.02 bps. Gasless eligible: yes.
       This is a quote only — no trade executed.

Execute a Swap

User: execute 25 USDC to WETH on base — confirmed
Agent: Swap executed: 25 USDC → 0.0102 WETH. Tx: 0xabc123...
       This counts as billable volume.

Dry Run

User: dry run 100 USDC to WETH on arbitrum
Agent: Dry run complete: 100 USDC → 0.0408 WETH. Gasless eligible: yes.
       No transaction submitted.

Check Usage

User: what's my orkid volume this month?
Agent: Your Orkid volume this month: $45,200.00. Rebate: $13.56 (accrued).

Supported Chains

  • Base (chain id 8453)
  • Ethereum (chain id 1)
  • Arbitrum (chain id 42161)
  • Polygon (chain id 137)

Permit2 Signing

Live execution requires a signed Permit2 permit. Use the Orkid SDK's signing helpers:

  • OrkidViemPermitSigner — for viem wallets
  • OrkidEthersPermitSigner — for ethers.js wallets

The permit must be signed by the user's wallet and passed to the ORKID_EXECUTE_SWAP action via the options parameter.

Contact

Instant free key: https://orkidlabs.xyz/partner (or POST /api/v1/signup).

For sandbox access, higher rate limits, or custom fee arrangements:

License

MIT