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

@simaoptrocha/try-now-widget

v1.0.4

Published

# Unblock SDK

Downloads

3

Readme

Unblock Embedded Experience ·

Unblock SDK

@simaoptrocha/try-now-widget allows you to seamlessly integrate the Unblock widget into your web application.

📌 Overview

The Unblock SDK provides a straightforward way to embed and interact with the Unblock widget, ensuring secure communication between your app and the widget.

🚀 Installation

You can find the package here - https://www.npmjs.com/package/@simaoptrocha/try-now-widget.

Install via npm:

npm install @simaoptrocha/try-now-widget

Install via Yarn:

yarn add @simaoptrocha/try-now-widget

🔧 Initialization

Importing the loader

import { loadCustomWidget } from '@simaoptrocha/try-now-widget';

Creating an instance with your setup

const customWidgetLoader = await loadCustomWidget();

const widgetInstance = customWidgetLoader({
  variant: 'embedded',
  containerNodeSelector: '#widget-container',
});

Triggering the display of the widget

widgetInstance.show();

📡 Parameters

Required

  • containerNodeSelector: Parent div where the widget should be attached. Assign an id to the div where the widget should be rendered, matching the value passed during initialization.

Example usage:

return (
  <section>
    <Element name="features">
      <div
        className="flex justify-center items-center w-full sm:w-4/5"
        style={{ height: '700px', borderRadius: '10px', overflow: 'hidden', margin: '0 auto' }}
      >
        <div
          id="widget-container"
          style={{ width: '100%', height: '100%', position: 'relative', overflow: 'hidden' }}
        ></div>
      </div>
    </Element>
  </section>
);

Optional

  • walletAddress: Merchants can pass a wallet address for authentication. If omitted, the widget prompts users to manually enter a wallet.
  • chain: Passes the blockchain chain ID (e.g., Ethereum - 1, Polygon - 137, Amoy - 80002).
  • token: Specifies the token used. It must be one of the supported tokens for the selected chain. See supported tokens for details.
  • options: Configuration object for customizing the widget's behavior and appearance.
    • text: Customizable text within the widget.
    • styles: Basic styling options (proof of concept for styling support).

📝 Text Customization

You can customize text within the widget using the text option.

Currently, the only available text options (proof of concept) are:

options: {
  text: {
    introTitle: "Intro main title example",
    introDescription: "Description text example goes here",
    introButtonTitle: "Intro button Title",
    introAdditionalText: "Additional text goes here!"
  }
}

🎨 Styling

You can customize styles within the widget using the text option.

Currently, the only available styles options (proof of concept) are:

options: {
  styles: { backgroundColor: 'black', color: 'white' }
}

📬 Contact Us

If you need support, please contact the team.