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

@tuwaio/satellite-evm

v0.5.0

Published

Layer 4 (L4) of the TUWA Ecosystem. Low-level EVM wallet connectivity adapters built strictly on top of viem and wagmi primitives.

Readme

Satellite Connect EVM

NPM Version License Build Status

Low-level EVM wallet connectivity adapters built strictly on top of viem and wagmi primitives for the TUWA Ecosystem.


🏛️ What is @tuwaio/satellite-evm?

@tuwaio/satellite-evm is the low-level EVM network connection adapter (Layer 4) of the Satellite framework. It implements native connection watchers, cryptographic signature handlers, and smart contract verification layers directly on top of viem and @wagmi/core.

By bypassing proprietary wallet connection wrappers, this package ensures direct execution on raw client protocols and enforces strict RPC endpoint isolation.


✨ Engineering Features

  • Direct Wagmi Alignment: Deep integration with @wagmi/core configurations, avoiding wrapper bloat.
  • Custom Connection Watchers: Low-level event listener hooks tracking provider chain changes, account switches, and connection states.
  • Contract Wallet Checks: Native, caching verification utilities (checkIsWalletAddressContract) for verifying EIP-1271 signatures or contract accounts.
  • RPC Transport Isolation: Isolated transport rules with explicit path mapping using the createDefaultTransports controller.

💾 Installation

Requirements

  • Node.js 20-24
  • TypeScript 5.9+
pnpm add @tuwaio/satellite-evm @tuwaio/satellite-core @tuwaio/orbit-core @tuwaio/orbit-evm @wagmi/core viem zustand immer

🚀 Quick Start

Basic Configuration

import { createDefaultTransports } from '@tuwaio/satellite-evm';
import { createConfig } from '@wagmi/core';
import { injected } from '@wagmi/connectors';
import { mainnet, sepolia } from 'viem/chains';
import type { Chain } from 'viem/chains';

export const appEVMChains = [mainnet, sepolia] as readonly [Chain, ...Chain[]];

export const wagmiConfig = createConfig({
  connectors: [injected()],
  transports: createDefaultTransports(appEVMChains), // Automatically creates http transports
  chains: appEVMChains,
  ssr: true, // Enable SSR support if needed (e.g., in Next.js)
});

🔌 Using the EVM Adapter

The core of this package is the satelliteEVMAdapter. It bridges the Satellite Connect system with the underlying wagmi configuration and functionalities.

Creating the Adapter

You create the adapter by passing your wagmiConfig to the satelliteEVMAdapter function.

import { satelliteEVMAdapter } from '@tuwaio/satellite-evm';
import { wagmiConfig } from './your-wagmi-config'; // Import your configured wagmiConfig

export const evmAdapter = satelliteEVMAdapter(wagmiConfig, appEVMChains);

Integrating with Satellite Connect Provider

Use the created adapter within the SatelliteConnectProvider from @tuwaio/satellite-react.

import { SatelliteConnectProvider, EVMConnectorsWatcher } from '@tuwaio/satellite-react';
import { WagmiProvider } from 'wagmi';
import { satelliteEVMAdapter } from '@tuwaio/satellite-evm';
import { wagmiConfig } from './your-wagmi-config';
import { evmAdapter } from './your-evm-adapter';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; // Wagmi requires react-query

const queryClient = new QueryClient();

function AppProviders({ children }: { children: React.ReactNode }) {
  return (
    <WagmiProvider config={wagmiConfig}>
      <QueryClientProvider client={queryClient}>
        <SatelliteConnectProvider
          adapter={evmAdapter} // Pass the EVM adapter
          autoConnect={true} // Optional: enable auto-connect
        >
          <EVMConnectorsWatcher wagmiConfig={wagmiConfig} /> {/* Manages EVM wallet state */}
          {children}
        </SatelliteConnectProvider>
      </QueryClientProvider>
    </WagmiProvider>
  );
}

🔐 Sign-In With X (SIWX) Session Integration

The EVMConnectorsWatcher component accepts a siwx prop directly compatible with @tuwaio/siwx-react. It monitors session status and automatically handles wallet disconnections if the user switches accounts or chains without an active SIWX session.

import { useSiwxSession } from '@tuwaio/siwx-react';
import { SatelliteConnectProvider } from '@tuwaio/satellite-react';
import { EVMConnectorsWatcher } from '@tuwaio/satellite-react/evm';
import { satelliteEVMAdapter } from '@tuwaio/satellite-evm';

function AppProviders({ children }: { children: ReactNode }) {
  const siwxSession = useSiwxSession();

  return (
    <SatelliteConnectProvider adapter={satelliteEVMAdapter(wagmiConfig, appEVMChains)} autoConnect={true}>
      <EVMConnectorsWatcher wagmiConfig={wagmiConfig} siwx={siwxSession} />
      {children}
    </SatelliteConnectProvider>
  );
}

🛠️ Core Utilities

  • createDefaultTransports: Helper to create default http transports for each chain in your wagmiConfig.
  • checkIsWalletAddressContract: Utility to check if a connected address is a smart contract address. The result is cached in memory.
  • createEVMConnectionsWatcher: Framework-agnostic utility to monitor wagmi connection changes and synchronize them with the global state store. Handles account switches, network changes, disconnections, and optional SIWX session rejection scenarios. Returns a cleanup function.

🤝 Contributing & Support

Contributions are welcome! Please read our main Contribution Guidelines.

If you find this library useful, please consider supporting its development. Every contribution helps!

➡️ View Support Options

📄 License

This project is licensed under the Apache-2.0 License - see the LICENSE file for details.