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

ternoa-connect

v0.1.1

Published

This package aims to simplify the connection and account management of Wallet Extensions for dApps running on the Ternoa chain

Readme

Ternoa Connect

This package is currently in development and is not yet stable. Feel free to check it out and give us some feedback!

Installation

ternoa-connect uses ternoa-js under the hood for signing and submitting transactions. To install this package, run the following command:

yarn add ternoa-connect 
yarn add ternoa-js

Usage

To use this package, import it in your project as follows:

// In your app entry point, import TernoaConnectProvider and wrap your app with it

import { TernoaConnectProvider } from 'ternoa-connect'

  <TernoaConnectProvider>
    <div>...</div>
  </TernoaConnectProvider>

Then within the TernoaConnectProvider, you will be able to import the Connect Button

// ConnectButton must be imported within the TernoaConnectProvider

import { ConnectButton } from 'ternoa-connect'

...
  <ConnectButton />
...

Last step is to sign a transaction hash

import { useTernoaConnect } from "ternoa-connect";

  const { sign } = useTernoaConnect()
  const signedTx = await sign(txHex);

Troubleshouting

"ReferenceError: window is not defined": If using Next.js, the window object used under the hood cannot be called on a SSR environnement, a solution is to use the dynamic imports

import dynamic from 'next/dynamic'

const DynamicTernoaConnectProvider = dynamic(
  () => import("ternoa-connect").then((mod) => mod.TernoaConnectProvider),
  {
    loading: () => <>Loading</>,
    ssr: false
  }
);

Contributing

We welcome contributions to this package. To contribute, follow these steps:

  1. Fork the repository
  2. Create a new branch for your changes
  3. Make your changes
  4. Run the tests to ensure they pass
  5. Commit your changes and push to your fork
  6. Submit a pull request

License

Apache-2.0