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

webmax

v0.2.0

Published

webmax js library

Downloads

44

Readme

webmax.js

webmax is intmaxwallet signer library.

Installation

With yarn

yarn add webmax

With npm

npm install webmax

Usage

Add intmaxWalletSigner to your app first.

Get account from intmaxWallet

Signer can get account from intmaxWallet.

import { IntmaxWalletSigner } from "webmax";

const signer = new IntmaxWalletSigner();
const account = await signer.connectToAccount();

You can also pass account options in constructor.

If you pass overwrite as options in constructor, the account will be overwritten.

import { IntmaxWalletSigner } from "webmax";

const signer = new IntmaxWalletSigner({ address: '0x...', chainId: 1 });
const account = await signer.connectToAccount({ extraKeys: ["publicKey"], overwrite: false });

Request switch network

Signer can switch network on intmaxWallet.

import { IntmaxWalletSigner } from "webmax";

const chainId = 1;

const signer = new IntmaxWalletSigner();
const account = await signer.switchChain(chainId);

Sign transaction

Signer can sign transactions. You will receive a serialized signature.

import { IntmaxWalletSigner, NoRedirect } from "webmax";

const tx = {
  to,
  value,
  gasLimit,
};

const signer = new IntmaxWalletSigner();
const serializedSignature = await signer.signTransaction<NoRedirect>(tx);

Sign and send transaction to network

Signer can sign and send transactions. You will receive a receipt.

If passing txWait as the second argument allows the intmaxwallet to control whether to wait for the transaction to be mined.

import { IntmaxWalletSigner, NoRedirect } from "webmax";

const tx = {
  to,
  value,
  gasLimit,
};

const signer = new IntmaxWalletSigner();
const receipt = await signer.sendTransaction<NoRedirect>(tx);

Sign message with intmaxWallet signer

Signer can sign messages. You will receive a signature.

import { IntmaxWalletSigner, NoRedirect } from "webmax";

const signer = new IntmaxWalletSigner();
const signature = await signer.signMessage<NoRedirect>("hello world");

Redirect Url

You can also use the redirectUrl to send transactions instead of opening child window.

import { IntmaxWalletSigner, Redirect } from "webmax";

const tx = {
  to,
  value,
  gasLimit,
};

const signer = new IntmaxWalletSigner();
await signer.sendTransaction<Redirect>(tx, true, `${window.location.origin}/redirect`);

The user is redirected to the URL set and can receive a signature or receipt using the query parameter.

You use this redirectUrl when you want to use webmax.js from within a mobile application, for example.

https://webmax.example.com/redirect?data=0x24xxxxxxxxxxxx

If an error occurs, you can receive the cause of the error as follows.

https://oauth2.example.com/auth?error=access_denied

Demo

Visit our website:

https://webmaxdemo.netlify.app/