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

@0xwh1sker/mantle-aa-sdk

v0.1.5

Published

EIP-7702 smart accounts for AI agents on Mantle: scoped, revocable session keys enforced on-chain, with sponsored execution through a relayer or an ERC-4337 bundler.

Readme

@0xwh1sker/mantle-aa-sdk

EIP-7702 smart accounts for AI agents on Mantle, from TypeScript. A human's EOA is upgraded in place to Uniswap Calibur; the human grants each agent its own session key, whose policy (a call allowlist, spend caps on quote assets and MNT, a per-key inventory of what the agent bought) is enforced on chain by AgentPolicyHook. A sponsor pays the gas, through a relayer (RelayerExecutor) or an ERC-4337 bundler with a VerifyingPaymaster (BundlerExecutor).

Proof of concept. The contracts are not audited. Mantle Sepolia (chain 5003) only. Do not use it with real funds.

Install

npm i @0xwh1sker/mantle-aa-sdk viem

viem is a peer dependency: the SDK works on your own viem clients, so your project and the SDK share one copy. Node 24 or later. The package ships the Mantle Sepolia address book: loadDeployments() needs no arguments.

Example

import { getChain, loadDeployments, MantleAccount, PrivateKeySigner, RelayerExecutor } from "@0xwh1sker/mantle-aa-sdk";
import { createPublicClient, type Hex, http } from "viem";

const addresses = loadDeployments(); // the deployed Mantle Sepolia contracts
const client = createPublicClient({ chain: getChain(addresses.chainId), transport: http(process.env.MANTLE_AA_RPC_URL) });
const executor = new RelayerExecutor({ client, url: process.env.MANTLE_AA_SPONSOR_URL as string });

const account = new MantleAccount({
  client,
  root: new PrivateKeySigner(process.env.ROOT_KEY as Hex), // the human's key
  executor,
  keystore: { home: process.env.MANTLE_AA_HOME as string }, // where session keys are saved
});
console.log(await account.status());

account.init({ grant: { policy, agentName } }) upgrades the EOA and grants the first session; an AgentSession then runs the agent's calls, which the SDK checks against the policy before anything is sent. Each refusal is a typed error (PolicyViolationError, LimitExceededError, …). The full walk-through, with a policy and an agent's buy: the SDK from TypeScript.

Related packages

Documentation

The repository: the quick start, the usage guide, the policy format and the design.

License

MIT