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/nova-connect

v0.5.11

Published

Layer 7 (L7) of the TUWA Ecosystem. React components, hooks, and providers for wallet connection, blockchain interactions, and SIWX auto-authentication. Built on @tuwaio/satellite-react.

Downloads

6,003

Readme

@tuwaio/nova-connect

NPM Version License

@tuwaio/nova-connect is the UI Components (L7) package of the TUWA Ecosystem wallet connectivity layer. It translates the headless connection status of @tuwaio/satellite-react into beautiful, accessible, and highly customizable React user interface elements.

Nova Connect natively supports both EVM and Solana wallet standard connectors, providing ready-made buttons, dialog selectors, network switchers, and balance widgets while keeping styling decisions decoupled from the underlying connection state store.


🏛️ Core Capabilities

  • 🔌 Plug-and-Play Widgets: Ready-to-use wallet components (ConnectButton, ConnectCard, DisconnectButton, AccountImpersonationIndicator).
  • 🛡️ CAIP-122 Multi-Chain Auto-Auth (NovaSiwxWatcher): Automatically triggers off-chain authentication upon wallet connection via @tuwaio/siwx-react.
  • ⛓️ Cohesive Multi-Chain Interface: Consistently handles EVM wallets (via @tuwaio/satellite-evm and wagmi) and Solana standard wallets (via @tuwaio/satellite-solana and gill).
  • 🎨 Deep Customization: Change typography, borders, and margins using the customization prop or override colors via the @tuwaio/nova-core token variables.
  • ♿ Built-in Accessibility: Dialog primitives powered by Radix UI, featuring complete keyboard navigation, viewport trapping, and screen reader announcements.
  • 🌍 Internationalization (i18n): Overridable labels configuration for localizing connection prompts and wallet state tags.

[!WARNING] SIWX Migration Notice: Legacy siwe options inside EVMConnectorsWatcher and NovaConnectProvider are deprecated. Migrate to the siwx prop or <NovaSiwxWatcher /> component powered by @tuwaio/siwx-react and @tuwaio/siwx-server for multi-chain CAIP-122 authentication.


💾 Installation

pnpm add @tuwaio/nova-connect @tuwaio/nova-core @tuwaio/satellite-core @tuwaio/satellite-react

Peer Dependencies Check

Ensure your React application contains required core packages:

# State & Utilities
pnpm add zustand immer dayjs clsx tailwind-merge framer-motion @emotion/is-prop-valid

# Dialog & Icons Primitives
pnpm add @radix-ui/react-dialog @radix-ui/react-select @heroicons/react @web3icons/react @web3icons/common

🚀 Quick Start Setup

1. Global Providers Integration

Wrap your React tree with the Wagmi configuration, Satellite logic connection provider, and Nova Connect layout provider:

import { ReactNode } from 'react';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { WagmiProvider } from 'wagmi';
import { satelliteEVMAdapter } from '@tuwaio/satellite-evm';
import { satelliteSolanaAdapter } from '@tuwaio/satellite-solana';
import { SatelliteConnectProvider } from '@tuwaio/nova-connect/satellite';
import { EVMConnectorsWatcher } from '@tuwaio/nova-connect/evm';
import { SolanaConnectorsWatcher } from '@tuwaio/nova-connect/solana';
import { NovaConnectProvider } from '@tuwaio/nova-connect';

import { wagmiConfig, appEVMChains, solanaRPCUrls } from './config/appConfig';

const queryClient = new QueryClient();

export function Web3Providers({ children }: { children: ReactNode }) {
  return (
    <WagmiProvider config={wagmiConfig}>
      <QueryClientProvider client={queryClient}>
        {/* Layer 1: Headless Connection logic */}
        <SatelliteConnectProvider
          adapter={[satelliteEVMAdapter(wagmiConfig, appEVMChains), satelliteSolanaAdapter({ rpcUrls: solanaRPCUrls })]}
          autoConnect={true}
        >
          {/* Watchers sync native connector states to the store (pass optional siwx for session state monitoring) */}
          <EVMConnectorsWatcher wagmiConfig={wagmiConfig} siwx={siwxSession} />
          <SolanaConnectorsWatcher siwx={siwxSession} />

          {/* Layer 2: Visual Connection component provider */}
          <NovaConnectProvider
            appChains={appEVMChains}
            solanaRPCUrls={solanaRPCUrls}
            withBalance
            withChain
            withImpersonated
          >
            {children}
          </NovaConnectProvider>
        </SatelliteConnectProvider>
      </QueryClientProvider>
    </WagmiProvider>
  );
}

2. Rendering the Connection Button

Place the component in your header or navigation bar:

import { ConnectButton } from '@tuwaio/nova-connect/components';

export function NavigationHeader() {
  return (
    <header className="flex justify-between items-center p-4 border-b border-[var(--tuwa-border-primary)]">
      <span className="font-bold">My dApp</span>
      <ConnectButton />
    </header>
  );
}

🎨 Component Customization

Pass class names and layout overrides using the customization property to match components with your custom UI:

import { ConnectButton } from '@tuwaio/nova-connect/components';
import { cn } from '@tuwaio/nova-core';

export function CustomHeader() {
  return (
    <ConnectButton
      customization={{
        classNames: {
          connectButton: () =>
            cn(
              'px-6 py-2 rounded-full font-mono text-sm uppercase transition-all duration-300',
              'bg-emerald-500 text-slate-950 hover:bg-emerald-600 focus:ring-2 focus:ring-emerald-500',
            ),
          walletName: () => 'text-xs text-slate-300 font-semibold',
        },
      }}
    />
  );
}

🔐 SIWX Auto-Authentication (NovaSiwxWatcher & useNovaSiwx)

Nova Connect includes native integration with @tuwaio/siwx-react for CAIP-122 multi-chain authentication:

1. Auto-Authentication via NovaSiwxWatcher

Pass siwx configuration into NovaConnectProvider or render <NovaSiwxWatcher /> directly inside your provider tree:

import { NovaConnectProvider } from '@tuwaio/nova-connect';
import { NovaSiwxWatcher } from '@tuwaio/nova-connect/watchers';

export function Web3Providers({ children }: { children: ReactNode }) {
  return (
    <NovaConnectProvider
      appChains={appEVMChains}
      siwx={{
        enabled: true,
        statement: 'Sign in to TUWA Ecosystem.',
        verifier: async (payload) => {
          const res = await fetch('/api/siwx/verify', {
            method: 'POST',
            headers: { 'Content-Type': 'application/json' },
            body: JSON.stringify(payload),
          });
          return res.ok ? res.json() : null;
        },
        destroyer: async () => {
          await fetch('/api/siwx/logout', { method: 'POST' });
        },
      }}
    >
      {children}
    </NovaConnectProvider>
  );
}

2. Manual Sign-In Controls via useNovaSiwx

For custom login buttons or gated actions:

import { useNovaSiwx } from '@tuwaio/nova-connect/hooks';

export function CustomLoginButton() {
  const { signIn, signOut } = useNovaSiwx({
    verifier: async (payload) => {
      const res = await fetch('/api/siwx/verify', {
        method: 'POST',
        headers: { 'Content-Type': 'application/json' },
        body: JSON.stringify(payload),
      });
      return res.ok ? res.json() : null;
    },
  });

  return <button onClick={() => signIn()}>Sign In with Wallet</button>;
}

Licensed under the Apache-2.0 License. See the LICENSE file for details.