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

zylogen-sdk

v2.1.1

Published

JavaScript SDK + CLI for Zylogen Protocol — AI-validated escrow on Base L2

Readme

Zylogen SDK

JavaScript SDK for Zylogen Protocol — AI-validated escrow on Base L2.

Install

npm install zylogen-sdk ethers

Quick Start

const { ethers } = require("ethers");
const { ZylogenSDK } = require("zylogen-sdk");

// Connect to Base Mainnet
const provider = new ethers.JsonRpcProvider("https://mainnet.base.org");
const signer   = new ethers.Wallet("YOUR_PRIVATE_KEY", provider);
const zylogen  = new ZylogenSDK(signer);

// Create a $10 USDC task
const task = await zylogen.createTaskUSDC(
  "0xProviderAddress",
  10.00,
  "Write a market analysis report"
);
console.log("Task created:", task.taskHash);

// Create an ETH task
const ethTask = await zylogen.createTaskETH(
  "0xProviderAddress",
  "0.005",
  "Translate document to Spanish"
);

// Check task status
const info = await zylogen.getTask(task.taskHash);
console.log(info);
// { sender, provider, amount: 10, token: "USDC", deadline, isExpired }

// Listen for new tasks (for agents/bots)
zylogen.onTaskCreated((event) => {
  console.log("New task:", event.taskHash, event.amount, event.token);
});

API

| Method | Description | |---|---| | createTaskUSDC(provider, amount, description) | Lock USDC in escrow | | createTaskETH(provider, amountETH, description) | Lock ETH in escrow | | createTaskToken(provider, tokenAddr, amount, desc) | Lock any ERC-20 | | getTask(taskHash) | Get escrow details | | isActive(taskHash) | Check if task exists | | release(taskHash) | Release funds (oracle only) | | reclaim(taskHash) | Reclaim after timeout (sender only) | | onTaskCreated(callback) | Listen for new tasks | | onTaskReleased(callback) | Listen for releases | | getUSDCBalance(address) | Check USDC balance | | getProtocolInfo() | Get oracle, treasury, fees |

Contracts

| Contract | Address | Network | |---|---|---| | TaskEscrowV2 | 0xC10D9b263612733C1752eFDe9CD617887216832c | Base Mainnet | | TaskEscrowV1 | 0x55a8461ad87B5EAD0Fcc6f4474D8FaF32c1a451f | Base Mainnet | | USDC | 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 | Base Mainnet |

Links

License

MIT