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

hak-uniswap-plugin

v0.1.0

Published

The first Uniswap plugin for the Hedera Agent Kit — let a Hedera agent swap tokens through Uniswap permissionless liquidity on EVM chains. Cross-asset settlement, treasury rebalancing, optionally Ledger-gated.

Readme

hak-uniswap-plugin

The first Uniswap plugin for the Hedera Agent Kit.

Gives a Hedera agent the ability to swap tokens through Uniswap's permissionless liquidity on an EVM chain (Ethereum, Unichain, Base, …) via the Uniswap Trading API. A Hedera-native agent can now accept any token and rebalance or settle across assets autonomously — financial freedom for agents.

Part of the Aivy ecosystem; ships as a drag-and-drop node in Aivy Studio and runs live in Kickoff.bot's cross-asset settlement.

Why

Hedera's native DEX plugins (SaucerSwap) keep value on Hedera. This plugin extends a HAK agent across chains to Uniswap's liquidity — the missing piece for agents that receive arbitrary crypto and must transact freely. It's the only Uniswap plugin in the HAK ecosystem.

Install

npm i hak-uniswap-plugin

Use

import { HederaLangchainToolkit } from 'hedera-agent-kit';
import { uniswapPlugin } from 'hak-uniswap-plugin';

const toolkit = new HederaLangchainToolkit({
  client,
  configuration: { plugins: [uniswapPlugin] },
});

Tool: uniswap_swap

| param | type | notes | |---|---|---| | tokenIn | string | input token address or "native" | | tokenOut | string | output token address or "native" | | amountIn | string | amount in smallest units (wei) | | chainId | number | default Unichain Sepolia (1301) | | slippageBps | number | default 50 |

The tool quotes through the Uniswap Trading API, performs the dynamic ERC-20 allowance check + approval when the input is a token, optionally applies a Ledger threshold gate, then executes and returns the on-chain tx hash.

Config

UNISWAP_API_KEY=...            # Uniswap Developer Platform
EVM_AGENT_PRIVATE_KEY=0x...    # the agent's EVM signer (secp256k1)
EVM_CHAIN_ID=1301              # default chain (Unichain Sepolia)
KICKOFF_LEDGER_THRESHOLD=...   # optional — above this (wei), returns unsigned
                               # tx for a Ledger Clear-Sign instead of executing

Ledger gate

When KICKOFF_LEDGER_THRESHOLD is set and a swap exceeds it, the tool returns { status: 'requires_ledger_approval', unsignedTx } instead of executing — hand that to a hardware-wallet Clear-Sign flow so high-value swaps need explicit human approval. Autonomous below the line, device-gated above it.

Proof — real on-chain swaps

Executed by a HAK agent through this plugin (native ETH → USDC, Ethereum Sepolia, chain 11155111):

  • tx: 0x69babe82…2ea5fc — status SUCCESS, block 11049036 (0.001 ETH → ~24.37 USDC)
  • tx: 0xb1dc8201…ccbd9e — status SUCCESS, block 11053763 — fired automatically as the cross-asset settlement leg of a live Kickoff.bot deal (recorded back on Hedera HCS-10)

Both routed by the Uniswap Trading API.

License

MIT © Juan Gomez (jmgomezl)