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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@tuwaio/nova-transactions

v0.2.3

Published

A React component library that provides the UI for @tuwaio/pulsar-core. Includes components, providers, and i18n support for transaction tracking.

Downloads

2,467

Readme

TUWA Nova Transactions

NPM Version License Build Status

The official React UI component library for the Pulsar transaction engine. It provides a suite of pre-built, accessible, and highly customizable modals, toasts, and history widgets to visualize the entire transaction lifecycle.


🏛️ Architecture

This package provides the View Layer for TUWA's transaction tracking ecosystem. It works by consuming the state from your headless Pulsar store and rendering the appropriate UI. You must connect your Pulsar store's state and actions to the <NovaTransactionsProvider /> component, which acts as a self-contained UI manager that renders modals and toasts.


✨ Core Features

  • 🧩 Pre-built UI Suite: A set of accessible components including TrackingTxModal, TransactionsInfoModal, and ToastTransaction, all managed internally by the NovaTransactionsProvider.
  • 🔌 Plug-and-Play Integration: Once connected to your Pulsar store, the UI automatically reacts to all transaction state changes.
  • 🌐 Internationalization (custom version of i18n): Built-in support for multiple languages with easy overrides for all text content via the labels prop.
  • 🎨 Highly Customizable: Styled with @tuwaio/nova-core to be easily themed using CSS variables. Almost every sub-component can be replaced with your own implementation via the customization prop.

💾 Installation

Basic Installation

Install the main package:

pnpm add @tuwaio/nova-transactions

Peer Dependencies

This package requires several peer dependencies for UI rendering:

# Core dependencies
pnpm add @tuwaio/nova-core @tuwaio/pulsar-core @tuwaio/orbit-core

# React ecosystem
pnpm add react react-dom zustand immer

# UI libraries
pnpm add framer-motion @radix-ui/react-dialog @heroicons/react
pnpm add react-toastify @bgd-labs/react-web3-icons

# Utilities
pnpm add dayjs clsx tailwind-merge

Complete Installation (All Packages)

For a complete setup with all TUWA packages:

# Using pnpm (recommended)
pnpm add @tuwaio/nova-transactions @tuwaio/nova-core @tuwaio/pulsar-core @tuwaio/orbit-core react-toastify framer-motion @radix-ui/react-dialog @heroicons/react @bgd-labs/react-web3-icons dayjs react immer zustand clsx tailwind-merge

# Using npm
npm install @tuwaio/nova-transactions @tuwaio/nova-core @tuwaio/pulsar-core @tuwaio/orbit-core react-toastify framer-motion @radix-ui/react-dialog @heroicons/react @bgd-labs/react-web3-icons dayjs react immer zustand clsx tailwind-merge

# Using yarn
yarn add @tuwaio/nova-transactions @tuwaio/nova-core @tuwaio/pulsar-core @tuwaio/orbit-core react-toastify framer-motion @radix-ui/react-dialog @heroicons/react @bgd-labs/react-web3-icons dayjs react immer zustand clsx tailwind-merge

🚀 Getting Started

To use this library, you must render the <NovaTransactionsProvider /> component at a high level in your application and pass the state and actions from your Pulsar store to it as props.

Here is a complete example of a src/providers/index.tsx file that configures the entire system.

1. Create Transaction Store

// src/hooks/txTrackingHooks.tsx
import { createBoundedUseStore, createPulsarStore } from '@tuwaio/pulsar-core';
import { evmAdapter } from '@tuwaio/pulsar-evm';

import { appChains, config } from '@/configs/wagmiConfig';

const storageName = 'transactions-tracking-storage';

export enum TxType {
  example = 'example',
}

type ExampleTx = Transaction & {
        type: TxType.example;
        payload: {
        value: number;
    };
};

export type TransactionUnion = ExampleTx;

export const usePulsarStore = createBoundedUseStore(
    createPulsarStore<TransactionUnion>({
        name: storageName,
        adapter: evmAdapter(config, appChains),
    }),
);

2. Setup Provider Component

// src/providers/NovaTransactionsProvider.tsx
import { NovaTransactionsProvider as NP } from '@tuwaio/nova-transactions/providers';
import { TransactionAdapter } from '@tuwaio/pulsar-core';
import { useInitializeTransactionsPool } from '@tuwaio/pulsar-react';
import { useAccount } from 'wagmi';

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

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

useInitializeTransactionsPool({ initializeTransactionsPool });

const { address } = useAccount();

return (
    <NP
        transactionsPool={transactionsPool}
        initialTx={initialTx}
        closeTxTrackedModal={closeTxTrackedModal}
        handleTransaction={handleTransaction}
        connectedWalletAddress={address}
        connectedAdapterType={TransactionAdapter.EVM}
        adapter={getAdapter()}
    />
  );
}

3. Integrate into App

// src/providers/index.tsx
import { RainbowKitProvider } from '@rainbow-me/rainbowkit';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { ReactNode } from 'react';
import { WagmiProvider } from 'wagmi';

import { config } from '@/configs/wagmiConfig';

import { NovaTransactionsProvider } from './NovaTransactionsProvider';

const queryClient = new QueryClient();

export function Providers({ children }: { children: ReactNode }) {
    return (
        <WagmiProvider config={config}>
            <QueryClientProvider client={queryClient}>
                <RainbowKitProvider>
                    <NovaTransactionsProvider />
                    {children}
                </RainbowKitProvider>
            </QueryClientProvider>
        </WagmiProvider>
    );
}

🎨 Customization

You can easily override the default English text by passing a labels prop, or replace entire components using the customization prop.

<NovaTransactionsProvider
    // 1. Override text labels
    labels={{
        statuses: {
        pending: 'В обработке...',
        success: 'Успешно!',
        failed: 'Ошибка!',
      },
    // ... other keys
    }}
    customization={{
        components: {
        statusBadge: ({ tx }) => <MyCustomBadge status={tx.status} />,
    }}
}
  // ... other required props
/>

🤝 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.