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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@tangled3/react

v1.12.0

Published

## 1. @tangled3/react 🪢 ⚛️

Downloads

1,413

Readme

Router Protocol's Tangled SDK 🪢

1. @tangled3/react 🪢 ⚛️

React wrappers, hooks, components, and utilities for Router Protocol's Tangled SDK. Enable crosschain interactions with your DApp with the Tangled SDK. Compatbile with Next.js 13 and React 18.

Built with @shadcn/ui and tailwind so you can paint it your way :D

Installation

yarn add @tangled3/react

OR

pnpm i @tangled3/react

Usage

import { QueryClient, QueryClientProvider } from 'react-query';
import { TangledProvider } from '@tangled3/react';

export default function App({ Component, pageProps }) {
  return (
    <QueryClientProvider client={new QueryClient()}>
      <TangledProvider
        config={{
          projectName: 'multi chain project',
          chainConfigs: {},
          // chains
        }}
      >
        <Component {...pageProps} />
      </TangledProvider>
    </QueryClientProvider>
  );
}

Feat List

Supported Chain Types

  1. EVM
  2. Solana
  3. Tron
  4. Cosmos
  5. Near
  6. Sui
  7. Bitcoin

Support Table

:small_orange_diamond: - In Progress :white_check_mark: - Supported :x: - Not Supported

| Chain | Wallet Connection | Token Fetch | Transaction Handlers | Tx Watch | Tx Receipt | | -------- | ------------------ | ------------------ | -------------------- | ------------------ | ------------------ | | EVM | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | | Solana | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | | Tron | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | | Sui | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | | Cosmos | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | | Near | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | | Bitcoin | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | | Casper | :x: | :x: | :x: | :x: | :x: | | Ton | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | | Algorand | :x: | :x: | :x: | :x: | :x: |

Hooks

  • [-] useAccounts - get all accounts for a chain type or all chain types
  • [-] useChain - get chain data for a specific chain
  • [-] useChains - get all chain data
  • [-] useConnect - connect to a wallet
  • [-] useConnectedWallets - get all connected wallets
  • [-] useConnections - get all connections
  • [-] useCurrentAccount - get the current account
  • [-] useCurrentWallet - get the current wallet
  • [-] useDisconnect - disconnect from a wallet
  • [-] useIsMobile - check if the user is on a mobile device
  • [-] useNetwork - get the current network
  • [-] useSendTransaction - send a transaction
  • [-] useTangledConfig - get the Tangled config
  • [-] useToken - get token data
  • [-] useTokenForAccount - get token data for an account
  • [-] useTransactionReceipt - get a transaction receipt
  • [-] useWaitForTransaction - wait for a transaction
  • [-] useWallet - get the current wallet
  • [-] useWallets - get all wallets
  • [ ] useSignMessage - sign a message with the current connected account
  • [ ] useReadContract - read from a contract