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

@axim-one/connect

v0.1.0-alpha.0

Published

Branded WalletConnect v2 connector + EIP-1193 provider for Axim Wallet.

Readme

@axim-one/connect

Branded WalletConnect v2 connector + EIP‑1193 provider for Axim Wallet. Venue‑agnostic core.

npm install @axim-one/connect

@axim-one/connect wraps standard WalletConnect v2 (@walletconnect/universal-provider) and returns a standard EIP‑1193 provider. It adds a branded connection lifecycle, a RainbowKit custom‑wallet helper, appId attribution, and a typed error model. It takes no hard dependency on RainbowKit or wagmi.

Peer dependencies

| Peer | Required when | |---|---| | @walletconnect/universal-provider | always (the transport) | | @rainbow-me/rainbowkit | only if you use aximWallet | | wagmi, viem | provided by your app as usual |

API

createAximConnector(options): AximConnector

Create a branded connector over WalletConnect v2.

import { createAximConnector, kaia } from "@axim-one/connect";

const connector = createAximConnector({
  projectId: WC_PROJECT_ID,  // the consuming dApp's Reown (WalletConnect Cloud) project id
  appId: "alphasec",          // attribution, carried in the WC session (sessionProperties)
  chains: [kaia],             // ChainConfig[] — optional, defaults to [kaia]
  // relayUrl: "wss://…"      // optional relay override
});

AximConnectorOptions

| Field | Type | Notes | |---|---|---| | projectId | string | The consuming dApp's Reown (formerly WalletConnect Cloud) project id (required). The Axim wallet app uses its own separate WalletKit project id. | | appId | string | Attribution id carried in WC sessionProperties | | chains? | ChainConfig[] | Scopes the session. Defaults to [kaia] | | relayUrl? | string | Override the WC relay URL |

AximConnector

| Member | Signature | Description | |---|---|---| | connect | () => Promise<ConnectResult> | Opens or reuses a persistent WC v2 session. Does not force a new pairing if one exists. | | resume | () => Promise<ConnectResult \| null> | Restores a persisted session without pairing; null if none. "Connect once, stay connected." | | disconnect | () => Promise<void> | Tears the session down. | | getProvider | () => Eip1193Provider | Standard EIP‑1193 provider. Throws NOT_CONNECTED before connect(). | | getStatus | () => ConnectorStatus | "disconnected" \| "connecting" \| "connected". | | on / off | (event, handler) => void | Subscribe/unsubscribe to connector events. |

Events (AximConnectorEvents): connect: ConnectResult, disconnect: void, accountsChanged: Address[], chainChanged: number.

connector.on("chainChanged", (id) => console.log("chain →", id));
const { address, chainId } = await connector.connect();
const provider = connector.getProvider();

aximWallet(options): AximWalletConfig

RainbowKit custom wallet (Path B — no public registry entry). You inject RainbowKit's getWalletConnectConnector so this package never imports RainbowKit/wagmi.

import { aximWallet } from "@axim-one/connect";
import { connectorsForWallets, getWalletConnectConnector } from "@rainbow-me/rainbowkit";

const connectors = connectorsForWallets(
  [{ groupName: "Recommended", wallets: [
      () => aximWallet({ projectId: WC_PROJECT_ID, appId: "alphasec", getWalletConnectConnector }),
  ] }],
  { appName: "AlphaSec", projectId: WC_PROJECT_ID },
);

AximWalletOptions = AximConnectorOptions plus:

| Field | Type | Notes | |---|---|---| | getWalletConnectConnector | (p: { projectId }) => unknown | Required. RainbowKit's getWalletConnectConnector. | | downloadUrls? | { android?, ios?, chrome?, qrCode?, … } | Store links surfaced in the RainbowKit UI. |

The returned wallet sets mobile.getUri to wrap the WC URI into the Axim deep link (https://www.axim.one/wc?uri=…) and qrCode.getUri to the raw URI for desktop QR pairing.

On the RainbowKit path the WC session is created by RainbowKit/wagmi's own WalletConnect connector, which owns sessionProperties; appId attribution there is handled by that connector. createAximConnector carries appId itself for the non‑RainbowKit path.

Chains

import { kaia, kaiaKairos, KAIA_MAINNET_ID, KAIA_TESTNET_ID } from "@axim-one/connect";

kaia (id 8217) and kaiaKairos (id 1001, testnet) are provided as ChainConfig (a minimal viem‑compatible chain shape). Pass your own ChainConfig[] to scope the session differently.

Errors

All SDK errors are AximError with a stable code:

import { AximError } from "@axim-one/connect";

try {
  await connector.connect();
} catch (e) {
  if (e instanceof AximError && e.code === "USER_REJECTED") { /* … */ }
}

Codes: USER_REJECTED · TIMEOUT · DISCONNECTED · NOT_CONNECTED · CHAIN_NOT_SUPPORTED · REQUEST_FAILED · NOT_IMPLEMENTED. Provider errors are mapped via fromProviderError (e.g. JSON‑RPC 4001USER_REJECTED).

Status

Alpha. Implemented and typecheck‑clean; runtime‑untested against a live relay/E2E flow. See the repo README and docs.axim.one.

License

MIT © Axim