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

@steerprotocol/agentconnect-wagmi

v0.4.0

Published

Wagmi connector for the AgentConnect EIP-1193 provider.

Readme

AgentConnect Wagmi Connector

agentConnectConnector returns a Wagmi createConnector factory backed by @steerprotocol/agentconnect-provider.

import { createConfig, http } from "wagmi";
import { agentConnectConnector } from "@steerprotocol/agentconnect-wagmi";

const local = { id: 31337, name: "Local" };

export const config = createConfig({
  chains: [local],
  connectors: [
    agentConnectConnector({
      appName: "Local Dev App",
      chains: [local],
      url: "http://127.0.0.1:48745",
    }),
  ],
  transports: {
    [local.id]: http(),
  },
});

The connector delegates account access, chain reads, chain switching, and transaction submission to the AgentConnect provider. It never exposes browser-side approval, rejection, signing, broadcast, key import, or MCP/admin operations. Pairing remains the approval step for account access: unpaired apps receive the provider's 4100 authorization error until the app is paired externally.

switchChain preflights against the connector's configured chains list, then calls wallet_switchEthereumChain with a hex chain id. The current daemon/provider MVP supports switching only to the daemon's active configured chain; unavailable configured chains surface the provider's 4901 error unchanged. personal_sign, eth_signTypedData_v4, and wallet_addEthereumChain remain deferred and should pass through provider unsupported-method errors if attempted through the provider.

Provider account, chain, connect, and disconnect events are re-emitted through Wagmi's connector emitter. Empty account events and provider disconnects clear connector-local authorization state without revoking the daemon pairing token, so a later connect can reuse the paired provider session.

Test Fixtures

The package tests use injected EIP-1193-compatible providers to cover connect, reconnect, disconnect, authorization, account reads, chain reads, chain switching, event bridging, local disconnect behavior, and provider error pass-through without a browser DOM harness. A Wagmi action fixture exercises connect, reconnect, disconnect, getAccount, and getChainId through a real createConfig instance. A Viem custom(provider) fixture verifies representative wallet-client reads against the same provider shape. Package-boundary tests inspect the manifest and generated dist artifacts after pnpm --filter @steerprotocol/agentconnect-wagmi build to ensure Wagmi remains a peer dependency, Viem remains test-only, React/TanStack stay out of the package, and the public declarations expose only connector types.

The package keeps wagmi as a peer dependency with the broad >=2 range while the connector surface is still stabilizing around createConnector.

License

BUSL-1.1. See LICENSE.