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

tbtc-sdk-react

v2.11.0

Published

## 1. Install the TBTC SDK ##### npm install tbtc-sdk-react

Downloads

86

Readme

tbtc-sdk-react

1. Install the TBTC SDK

npm install tbtc-sdk-react

2. Dependencies

For integrating Welletconnect the package required react-scripts version 4.0.3 ("react-scripts": "4.0.3")

2. Set up TBTC Authenticator

// Add this import line at the top
import { TBTCUserAuthenticator } from "tbtc-sdk-react";

//Success callback
const onSigninSuccess = async (data) => {
  console.log(data);
};

<TBTCUserAuthenticator 
  groups="group1" 
  onSigninSuccess={onSigninSuccess}
  signup={true}
  styles={{tbtcSdkInput: { height: "55px" }}}
  userManagementApiBase="https://user-dev.beartiger.io" />

need to insert valid group name, for inserting multiple groups use comma as a seperator onSigninSuccess is the login success callback, authentication token will be passed to this callback

We can apply styling using styles props which is an object {"dom class name": {/React CSS object/}} Property name is camel case from of css class name and value is React CSS object. (https://reactjs.org/docs/dom-elements.html#style) Code example

{tbtcSdkInput: { height: "55px" }, "tbtcSdkBtn": {color: 'red'}}

UI structure

1. Signin form

<div class="tbtc-sdk-wrapper">
  <div>
    <form novalidate="">
      <div class="tbtc-sdk-input-wrapper">
        <input
          required=""
          type="email"
          name="email"
          class="tbtc-sdk-input"
          value=""/>
          <span>EMAIL</span>
      </div>
      <div class="tbtc-sdk-input-wrapper">
        <input
          required=""
          type="password"
          name="password"
          class="tbtc-sdk-input"
          value=""/>
          <span>PASSWORD</span>
      </div>
      <div class="tbtc-sdk-forgot-password-wrapper">
        <div>
          <a class="tbtc-sdk-forgot-password-link" href="/">
            Forgotten password?
          </a>
        </div>
      </div>
      <div class="tbtc-sdk-button-wrapper">
        <button class="tbtc-sdk-btn">Signin</button>
        <button class="tbtc-sdk-btn">Signin With Wallet</button>
        <button class="tbtc-sdk-btn">Signup</button>
      </div>
    </form>
  </div>
</div>

2. Signup form

<div class="tbtc-sdk-wrapper">
  <form novalidate="">
    <div class="tbtc-sdk-input-wrapper">
      <input
        required=""
        type="email"
        name="email"
        class="tbtc-sdk-input"
        value=""/>
        <span>EMAIL</span>
    </div>
    <div class="tbtc-sdk-input-wrapper">
      <input
        required=""
        type="text"
        name="name"
        class="tbtc-sdk-input"
        value=""/>
        <span>NAME</span>
    </div>
    <div class="tbtc-sdk-input-wrapper">
      <input
        required=""
        type="text"
        name="familyName"
        class="tbtc-sdk-input"
        value=""/>
        <span>SURNAME</span>
    </div>
    <div class="tbtc-sdk-input-wrapper">
      <input
        type="text"
        name="phoneNumber"
        class="tbtc-sdk-input"
        value=""/>
        <span>PHONE NUMBER</span>
    </div>
    <div class="tbtc-sdk-input-wrapper">
      <input
        required=""
        type="password"
        name="password"
        class="tbtc-sdk-input"
        value=""/>
        <span>PASSWORD</span>
    </div>
    <div class="tbtc-sdk-input-wrapper">
      <input
        required=""
        type="password"
        name="confirmPassword"
        class="tbtc-sdk-input"
        value=""/>
        <span>CONFIRM PASSWORD</span>
    </div>
    <div class="tbtc-sdk-button-wrapper">
      <button class="tbtc-sdk-btn">Signup</button>
      <button class="tbtc-sdk-btn">Signup With Wallet</button>
      <button class="tbtc-sdk-btn">Signin</button>
    </div>
  </form>
</div>

3. Forgot Password form

<div class="tbtc-sdk-input-wrapper">
  <input
    required=""
    type="email"
    name="email"
    class="tbtc-sdk-input"
    value=""/>
    <span>EMAIL</span>
</div>

4. Forgot Password Confirmation form

<div class="tbtc-sdk-wrapper">
  <p class="tbtc-sdk-email-confirmation-message">
    Please check you email and put the confirmation code.
  </p>
  <div class="tbtc-sdk-input-wrapper">
    <input
      required=""
      type="email"
      name="email"
      class="tbtc-sdk-input"/>
      <span>EMAIL</span>
  </div>
  <div class="tbtc-sdk-input-wrapper">
    <input
      required=""
      type="password"
      name="password"
      class="tbtc-sdk-input"
      value=""/>
      <span>NEW PASSWORD</span>
  </div>
  <div class="tbtc-sdk-input-wrapper">
    <input
      required=""
      type="text"
      name="code"
      class="tbtc-sdk-input"
      value="">
      <span>CODE</span>
  </div>
  <div class="tbtc-sdk-code-submit-wrapper">
    <button class="tbtc-sdk-btn">Submit</button>
    <button class="tbtc-sdk-btn">Signin</button>
  </div>
</div>

5. Account Confirmation form

<div class="tbtc-sdk-wrapper">
  <p class="tbtc-sdk-confirmation-message">
    Please check you email and put the confirmation code.
  </p>
  <div class="tbtc-sdk-input-wrapper">
    <input
      required=""
      type="email"
      name="email"
      class="tbtc-sdk-input"
      value=""
    />
    <span>EMAIL</span>
  </div>
  <div class="tbtc-sdk-input-wrapper">
    <input
      required=""
      type="text"
      name="code"
      class="tbtc-sdk-input"
      value=""
    />
    <span>CODE</span>
  </div>
  <div class="tbtc-sdk-code-submit-wrapper">
    <button class="tbtc-sdk-btn">Submit</button>
    <a class="tbtc-sdk-resend-confirmation-code-link" href="/">
      Resend Confirmation Code
    </a>
  </div>
</div>