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

@evvm/evvm-js

v0.1.17

Published

[![npm version](https://badge.fury.io/js/%40evvm%2Fevvm-js.svg)](https://www.npmjs.com/package/@evvm/evvm-js) [![npm downloads](https://img.shields.io/npm/dm/@evvm/evvm-js.svg)](https://www.npmjs.com/package/@evvm/evvm-js) [![TypeScript](https://img.shiel

Readme

EVVM JS

npm version npm downloads TypeScript License: EVVM-NONCOMMERCIAL-1.0 GitHub Stars

EVVM JS is a powerful JavaScript/TypeScript library for seamless interaction with the EVVM. It simplifies common tasks such as payments, identity management, staking, and peer-to-peer swaps. Built with first-class TypeScript support, it offers a streamlined developer experience with robust type safety.

Table of contents

Installation

You can install EVVM JS using your favorite package manager:

bun add @evvm/evvm-js
# or
npm install @evvm/evvm-js
# or
yarn add @evvm/evvm-js

Quick Start

Here's a quick example of how to use EVVM JS to sign a payment action:

With Ethers.js

import { EVVM, execute } from "@evvm/evvm-js";
import { createSignerWithEthers } from "@evvm/evvm-js/signers";
import { ethers } from "ethers";

// 1. Create a signer
const provider = new ethers.JsonRpcProvider("YOUR_RPC_URL");
const privateKey = "YOUR_PRIVATE_KEY";
const wallet = new ethers.Wallet(privateKey, provider);
const signer = await createSignerWithEthers(wallet);

// 2. Instantiate the EVVM service
const evvm = new EVVM({
  signer,
  address: "EVVM_CONTRACT_ADDRESS",
  chainId: 1,
  evvmId: 1, // optional
});

// 3. Call a method to create a signed action
const signedAction = await evvm.pay({
  to: "RECIPIENT_ADDRESS",
  tokenAddress: "TOKEN_ADDRESS",
  amount: 100n, // Use BigInt for amounts
  priorityFee: 0n,
  nonce: 1n,
  priorityFlag: false,
});

// 4. Execute the signed action
const result = await execute(signer, signedAction);
console.log(result);

With Viem

import { EVVM } from "@evvm/evvm-js";
import { createSignerWithViem } from "@evvm/evvm-js/signers";
import { createWalletClient, http } from "viem";
import { privateKeyToAccount } from "viem/accounts";
import { mainnet } from "viem/chains";

// 1. Create a signer
const account = privateKeyToAccount("YOUR_PRIVATE_KEY");
const client = createWalletClient({
  account,
  chain: mainnet,
  transport: http("YOUR_RPC_URL"),
});
const signer = await createSignerWithViem(client);

// 2. Instantiate the EVVM service
const evvm = new EVVM({
  signer,
  address: "EVVM_CONTRACT_ADDRESS",
  chainId: 1,
});

// Continue with steps 3 and 4 exactly as shown in the ethers.js example

API Reference

Services

  • EVVM: Core EVVM service for creating signed actions (payments, identity, staking, swaps).
  • NameService: Manage identities.
  • Staking: Handle staking operations.
  • P2PSwap: Perform peer-to-peer swaps.

Each service is instantiated with a signer and a contract address.

Signers

EVVM JS provides an abstracted ISigner interface that allows seamless integration with various client-side Ethereum libraries. Helper functions are provided to create ISigner instances from ethers.js and viem wallets:

  • createSignerWithEthers: Creates a signer from an ethers.js wallet.
  • createSignerWithViem: Creates a signer from a viem wallet client.

Development

This project uses bun for package management and scripting.

Setup

bun install

Testing

bun test

Building

bun run build

Contributing

Contributions are welcome! Please open an issue or submit a pull request on our GitHub repository.