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

iw-iw

v0.1.4

Published

The INTMAX Wallet Widget Library provides a simple and efficient way to integrate the INTMAX Wallet into your web application. This library allows users to interact with their INTMAX Wallet directly from your site, offering a seamless and secure user expe

Downloads

8

Readme

INTMAX Wallet Widget

The INTMAX Wallet Widget Library provides a simple and efficient way to integrate the INTMAX Wallet into your web application. This library allows users to interact with their INTMAX Wallet directly from your site, offering a seamless and secure user experience.

Installation

To use the INTMAX Wallet Widget in your project, you need to include it in your project dependencies.

npm install intmax-widget
# or
yarn add intmax-widget

Usage

Here's a quick guide on how to use the INTMAX Wallet Widget in your application.

1. Import the Widget

First, import the INTMAXWalletWidget class from the intmax-widget package.

import { INTMAXWalletWidget } from "intmax-widget";

2. Initialize and Mount the Widget

Create an instance of the widget, passing the container element's ID and options for customization. Then, call the mount() method to render the widget.

const walletWidget = new INTMAXWalletWidget("wallet-container", {
  clientId: "your-client-id",
  contentOptions: {
    title: "Custom Wallet",
    lang: "en",
    theme: "light",
    horizontalLogo: {
      url: "https://example.com/logo.png",
        width: "110px",
        height: "110px",
      },
    styles: {
      primary: "rgb(52, 211, 153)",
      gradientBtnForeground: "rgb(29, 78, 216)",
      gradientSidebar: "rgb(245, 158, 11)",
      gradientBtn: "#fffff",
      foreground: "rgb(245, 158, 11)",
    },
  },
});
walletWidget.mount();

Options

When initializing the INTMAXWalletWidget, you can provide several options to customize its behavior and appearance:

  • clientId (required): Your unique client identifier.
  • url (optional): The URL to the INTMAX Wallet, if you want to use a custom or development environment.
  • style (optional): Custom styles for the iframe container, such as width and height.
  • contentOptions (optional): Customization options for the content displayed within the widget, including language, theme, logos, and styles.
  • onLoad (optional): A callback function that is called when the widget is fully loaded.

contentOptions

  • lang (optional): The language of the widget. Specify a language code (e.g., "en" for English) to localize the widget interface.
  • theme (optional): The theme of the widget, either "light", "dark" or "system".
  • title (optional): Set a custom title for the widget, which can be useful for branding or providing a specific call-to-action to users.
  • description (optional): Provide a brief description of the widget or its functionality. This can help users understand the purpose of the widget and how it can assist them.
  • horizontalLogo and verticalLogo (optional): These settings allow you to specify custom logos for different orientations, enhancing branding and ensuring consistent visual presentation across various screen sizes and layouts.
  • styles (optional): Customize the look and feel of the widget's content with specific style properties. You can define colors, fonts, and other CSS properties to align the widget's appearance with your website's design.

clientId

The client id is your unique client identifier. This is a critical component for identifying your application's requests to the INTMAX Wallet. To obtain a clientId, please contact our support team at [email protected] with your application details. Once your application is reviewed and approved, we will issue a unique clientId for your integration.

Note: clientId issuance is currently available to companies.

Additional Resources

For more detailed information about the INTMAX Wallet Widget, including advanced configuration options, troubleshooting, and best practices, please refer to the following resources:

  • INTMAX Wallet Widget Integration Guide: Visit our comprehensive documentation for in-depth details on using and customizing the INTMAX Wallet Widget.

  • Support: If you encounter any issues or have further questions, please reach out to our support team at [email protected].