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

eacc-ts

v1.0.1

Published

TypeScript SDK for Effective Acceleration decentralized marketplace

Readme

EACC SDK

TypeScript SDK for interacting with Effective Acceleration, a decentralized peer-to-peer marketplace for jobs and services.

Features

  • Multi-wallet support - Compatible with ethers providers, JSON RPC, and private key connections
  • Complete job lifecycle - Create, update, take, deliver, and complete jobs
  • User management - Register users and arbitrators with profiles
  • Messaging system - Encrypted communication between parties
  • Dispute resolution - Built-in arbitration system
  • Type-safe - Full TypeScript support with proper types
  • IPFS integration - Decentralized content storage

Installation

npm install eacc-ts ethers

Quick Start

import { EACCClient } from 'eacc-ts';
import { ethers } from 'ethers';

// Initialize the client
const client = new EACCClient({
  marketplaceV2Address: '0x...',
  marketplaceDataV1Address: '0x...',
  chainId: 42161, // Arbitrum One
});

// Register as a user
await client.registerUser({
  pubkey: '0x...',
  name: 'John Doe',
  bio: 'Full-stack developer',
  avatar: 'https://example.com/avatar.jpg'
});

// Publish a job
const jobId = await client.publishJob({
  title: 'Build a React App',
  contentHash: 'Qm...', // IPFS hash with job details
  multipleApplicants: true,
  tags: ['DA', 'react', 'javascript'],
  token: '0x...', // ERC20 token address
  amount: ethers.utils.parseEther('1'),
  maxTime: 86400 * 7, // 7 days in seconds
  deliveryMethod: 'IPFS'
});

console.log('Job published with ID:', jobId.toString());

Core Concepts

Job States

  • Open (0): Job is available for workers to apply
  • Taken (1): Worker has been assigned and escrow is active
  • Closed (2): Job completed or cancelled

MECE Tags

Every job must include exactly one MECE (Mutually Exclusive, Collectively Exhaustive) tag:

  • DA: Digital Audio
  • DV: Digital Video
  • DT: Digital Text
  • DS: Digital Software
  • DO: Digital Others
  • NDG: Non-Digital Goods
  • NDS: Non-Digital Services
  • NDO: Non-Digital Others

API Reference

Client Initialization

const client = new EACCClient({
  marketplaceV2Address: string,
  marketplaceDataV1Address: string,
  chainId?: number,
  ipfsConfig?: {
    gateway?: string,
    apiEndpoint?: string
  }
});

Wallet Connection

// Private key
await client.connectWithPrivateKey(privateKey, rpcUrl);

// Custom provider
await client.connectProvider(provider);

User Management

// Register user
await client.registerUser({
  pubkey: string,
  name: string,
  bio: string,
  avatar: string
});

// Update profile
await client.updateUser({
  name: string,
  bio: string,
  avatar: string
});

// Get user info
const user = await client.getUser(address);
const rating = await client.getUserRating(address);
const reviews = await client.getUserReviews(address, 0, 10);

Job Management

// Publish job
const jobId = await client.publishJob({
  title: string,
  contentHash: string,
  multipleApplicants: boolean,
  tags: string[],
  token: string,
  amount: BigNumber,
  maxTime: number,
  deliveryMethod: string,
  arbitrator?: string,
  allowedWorkers?: string[]
});

// Take job
await client.takeJob(jobId, signature);

// Deliver result
await client.deliverResult(jobId, resultHash);

// Approve and complete
await client.approveResult(jobId, rating, review);

IPFS Integration

// Upload content to IPFS
const hash = await client.uploadToIPFS(content, apiKey);

// Fetch content from IPFS
const content = await client.fetchFromIPFS(hash);

Examples

Check out the /examples directory for complete usage examples:

  • basic-usage.ts - Basic SDK setup and connection
  • publish-job.ts - Creating and publishing a job
  • take-job.ts - Worker taking and completing a job
  • register-user.ts - User and arbitrator registration

Development

# Install dependencies
npm install

# Build the project
npm run build

# Run examples
npm run example:basic
npm run example:publish
npm run example:take
npm run example:register

# Run tests
npm test

Network Addresses

Arbitrum One Mainnet

  • MarketplaceV2: 0x405AcFbD1400A168fDd4aDA2D214e8Ae5FF7a624
  • MarketplaceDataV1: 0x0191ae69d05F11C7978cCCa2DE15653BaB509d9a

Arbitrum Sepolia Testnet

  • MarketplaceV2: TBD
  • MarketplaceDataV1: TBD

Error Handling

The SDK includes comprehensive error handling:

try {
  await client.takeJob(jobId, signature);
} catch (error) {
  if (error.message.includes('not registered')) {
    console.log('User not registered, please register first');
  } else if (error.message.includes('not whitelisted')) {
    console.log('Worker not whitelisted for this job');
  }
}

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feat/your-feature)
  3. Commit your changes (git commit -m 'Add some feature')
  4. Push to the branch (git push origin feat/your-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License.

Links