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

@babadev/plugin-fuse

v0.1.12

Published

This plugin provides actions and providers for interacting with the **Fuse** blockchain.

Readme

@elizaos/plugin-fuse

This plugin provides actions and providers for interacting with the Fuse blockchain.

Configuration

Default Setup

By default, Fuse is enabled. To use it, simply add your private key to the .env file:

FUSE_PRIVATE_KEY=your-private-key-here

Custom RPC URLs

By default, the RPC URL is inferred from the viem/chains configuration. To use a custom RPC URL for a specific chain, add the following to your .env file:

ETHEREUM_PROVIDER_<CHAIN_NAME>=https://your-custom-rpc-url

Example:

ETHEREUM_PROVIDER_FUSE=https://rpc.fuse.io

Providers

The Wallet Provider initializes with Fuse and:

  • Provides the context of the currently connected address and its balance
  • Creates Public and Wallet clients to interact with the supported chain

Actions

The createToken and transfer actions are independent and serve different purposes. createToken is used for deploying ERC20 tokens, while transfer facilitates token transfers between addresses on the Fuse blockchain.

CreateToken (Token Deployment)

The createToken action allows users to deploy an ERC20 token using the ERC20Factory contract. This action is separate from transfer and does not interact with existing tokens.

Example Usage

A user request to create a token:

Create a token named MyToken with the symbol MTK with Token owner 0x1234567890abcdef1234567890abcdef12345678 on Fuse.

This translates to the following JSON payload:

{
  "name": "MyToken",
  "symbol": "MTK",
  "tokenOwner": "0x1234567890abcdef1234567890abcdef12345678",
  "fromChain": "fuse"
}

Features

  • Uses the ERC20Factory contract
  • Deploys a new ERC20 token
  • Returns in the event the token contract address after deployment

Transfer

The transfer action enables the transfer of tokens from one address to another on the Fuse blockchain.

Parameters

  • Amount
  • Chain
  • Recipient Address

Example Usage

Transfer 1 FUSE to 0xRecipient on Fuse.

Contract Details

CreateToken Contract Details

The createToken action interacts with the ERC20Factory contract to deploy ERC20 tokens.

ERC20Factory.sol

  • Deploys new ERC20 tokens
  • Emits a TokenCreated event
  • Allows querying the number of created tokens

CustomToken.sol

  • ERC20 token with an initial supply minted to the token owner
  • Implements OpenZeppelin's ERC20 and Ownable modules

Running Tests

This plugin includes a test suite using vitest to ensure reliability and functionality. The tests cover core features with unit tests, including token creation via createToken and token transfers via transfer.

Navigate to the plugin-fuse directory and run:

pnpm test

Contribution

  • All new features should be covered with tests
  • Follow best practices and ensure the code passes linting with:
pnpm lint

License

This project is licensed under MIT.