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-transactions

v0.5.3

Published

Layer 7 (L7) of the TUWA Ecosystem. React component library providing the visual UI for @tuwaio/pulsar-core transaction lifecycle tracking.

Readme

@tuwaio/nova-transactions

NPM Version License

@tuwaio/nova-transactions is the UI Components (L7) package of the TUWA Ecosystem transaction lifecycle tracking system. It provides the visual layer to monitor, display, and manage active on-chain transactions, consuming state directly from the headless Pulsar Engine state machine.

By coupling the UI manager to Pulsar stores, it automatically handles pending loaders, speed-up options, failure overlays, and success notifications, keeping the user in the loop even during congested block space periods.


🏛️ Core Capabilities

  • 🧩 Interactive Visual Nodes: Built-in dialogs and widget cards (TrackingTxModal for individual status, TransactionsInfoModal for full transaction lists, and ToastTransaction feeds).
  • 🔌 Isolated Provider Hooks: The <NovaTransactionsProvider /> bridges your React tree with Pulsar's transaction history pools and signature polling events.
  • 🎨 Custom Styling overrides: Style sub-components via CSS variables from @tuwaio/nova-core or replace components using the customization property.
  • 🌍 Dynamic Internationalization: Supports overriding labels configuration to localize status messages (pending, success, failed, replaced) and actions.

💾 Installation

pnpm add @tuwaio/nova-transactions @tuwaio/nova-core @tuwaio/pulsar-core @tuwaio/pulsar-react

Peer Dependencies Check

Make sure your project contains the required layout and utility engines:

# State & Utilities
pnpm add zustand immer dayjs clsx tailwind-merge framer-motion

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

🚀 Quick Start Setup

1. Create the Transaction Store (Pulsar)

Initialize the local-first persistent transaction store with chain-specific state adapters:

// src/hooks/usePulsarStore.ts
'use client';

import { createBoundedUseStore, createPulsarStore, Transaction } from '@tuwaio/pulsar-core';
import { pulsarEvmAdapter } from '@tuwaio/pulsar-evm';
import { pulsarSolanaAdapter } from '@tuwaio/pulsar-solana';
import { wagmiConfig, appEVMChains, solanaRPCUrls } from '@/config/appConfig';

const storageName = 'transactions-tracking-storage';

export enum TxType {
  swap = 'swap',
}

type SwapTx = Transaction & {
  type: TxType.swap;
  payload: { from: string; to: string; amount: string };
};

export type TransactionUnion = SwapTx;

export const usePulsarStore = createBoundedUseStore(
  createPulsarStore<TransactionUnion>({
    name: storageName,
    adapter: [pulsarEvmAdapter(wagmiConfig, appEVMChains), pulsarSolanaAdapter({ rpcUrls: solanaRPCUrls })],
    maxTransactions: 50, // prevent localStorage bloat
  }),
);

2. Setup the Transactions UI Provider

Create a bridge component connecting your Pulsar store parameters and Satellite wallet state with the Nova Transactions UI:

// src/providers/NovaTransactionsWrapper.tsx
'use client';

import { useSatelliteConnectStore } from '@tuwaio/nova-connect/satellite';
import { NovaTransactionsProvider as NTP } from '@tuwaio/nova-transactions/providers';
import { getAdapterFromConnectorType } from '@tuwaio/orbit-core';
import { useInitializeTransactionsPool } from '@tuwaio/pulsar-react';

import { usePulsarStore } from '@/hooks/usePulsarStore';

export function NovaTransactionsWrapper() {
  const getAdapter = usePulsarStore((state) => state.getAdapter);
  const initialTx = usePulsarStore((state) => state.initialTx);
  const closeTxTrackedModal = usePulsarStore((state) => state.closeTxTrackedModal);
  const transactionsPool = usePulsarStore((state) => state.transactionsPool);
  const executeTxAction = usePulsarStore((state) => state.executeTxAction);
  const initializeTransactionsPool = usePulsarStore((state) => state.initializeTransactionsPool);

  const activeConnection = useSatelliteConnectStore((state) => state.activeConnection);

  // Resume tracking for active pending signatures on mount
  useInitializeTransactionsPool({ initializeTransactionsPool });

  return (
    <NTP
      transactionsPool={transactionsPool}
      initialTx={initialTx}
      closeTxTrackedModal={closeTxTrackedModal}
      executeTxAction={executeTxAction}
      connectedWalletAddress={activeConnection?.isConnected ? activeConnection.address : undefined}
      connectedAdapterType={getAdapterFromConnectorType(activeConnection?.connectorType ?? 'evm:')}
      adapter={getAdapter()}
    />
  );
}

3. Usage in Action Buttons

Call the action wrapper to trigger on-chain operations and auto-render status modals:

import { usePulsarStore, TxType } from '@/hooks/usePulsarStore';
import { OrbitAdapter } from '@tuwaio/orbit-core';
import { mainnet } from 'viem/chains';

export function SwapButton() {
  const executeTxAction = usePulsarStore((state) => state.executeTxAction);

  const triggerSwap = async () => {
    const swapFunction = async () => {
      // Execute smart contract write method and return the hash
      return '0x...';
    };

    await executeTxAction({
      actionFunction: swapFunction,
      onSuccess: (tx) => console.log('Transaction succeeded!', tx.hash),
      params: {
        type: TxType.swap,
        adapter: OrbitAdapter.EVM,
        desiredChainID: mainnet.id,
        title: 'Swap ETH',
        description: 'Swapping 1 ETH for USDC',
        payload: { from: 'ETH', to: 'USDC', amount: '1' },
        withTrackedModal: true, // opens tracking overlay automatically
      },
    });
  };

  return (
    <button onClick={triggerSwap} className="btn-primary">
      Execute Swap
    </button>
  );
}

📄 License

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