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

celowork-sdk

v1.0.1

Published

A drop-in developer toolkit for building decentralized freelance and gig marketplaces on Celo

Readme

CeloWork SDK

A drop-in developer toolkit for building decentralized freelance and gig marketplaces on Celo.

🌟 Features

  • 🔒 Escrow Management: Secure milestone-based payments
  • 📝 Job Posting: Create and manage freelance jobs
  • Reputation Tracking: Build trust with on-chain reputation
  • 🆔 Self Protocol Integration: Proof-of-humanity verification
  • 🌐 Celo Native: Deployed on Celo Sepolia testnet
  • 🔐 Secure: ReentrancyGuard protection and access controls
  • 📦 TypeScript: Full type safety and IntelliSense support

🚀 Project Status

Completed Milestones:

  • ✅ Milestone 1 - Core SDK & Contract Setup
  • ✅ Milestone 2 - Self Protocol Integration
  • Deployed on Celo Sepolia Testnet

Contract Address: 0x881CE3f25E8383d276D78Cdc454BFa15D34a5AF6
Explorer: https://sepolia.celoscan.io/address/0x881CE3f25E8383d276D78Cdc454BFa15D34a5AF6

📦 Installation

Option 1: From npm (When Published)

npm install celowork-sdk

Option 2: From GitHub

npm install https://github.com/shashwatraajsingh/celowork-sdk.git

Option 3: Local Installation

# Clone the repository
git clone https://github.com/shashwatraajsingh/celowork-sdk.git
cd celowork-sdk

# Install dependencies
npm install

# Build the SDK
npm run build

# In your project
npm install /path/to/celowork-sdk

⚡ Quick Start

Basic Usage

import { CeloWorkSDK } from 'celowork-sdk';

// Initialize SDK
const sdk = new CeloWorkSDK({
  network: 'celoSepolia',  // Use Celo Sepolia testnet
  privateKey: process.env.PRIVATE_KEY,
});

// Get your address and balance
const address = await sdk.getAddress();
const balance = await sdk.getBalance();
console.log(`Address: ${address}, Balance: ${balance} CELO`);

// Create a job
const job = await sdk.jobs.createJob({
  title: 'Build a Website',
  description: 'Modern landing page with React',
  budget: '100',
  milestones: [
    { description: 'Design mockup', amount: '30' },
    { description: 'Development', amount: '50' },
    { description: 'Deployment', amount: '20' }
  ],
  tags: ['react', 'web-development'],
  category: 'Web Development'
});

// Create escrow for the job
const { escrowId } = await sdk.escrow.createEscrow(
  freelancerAddress,
  job.milestones.map(m => ({ ...m, status: 0 }))
);

console.log(`Job created: ${job.id}, Escrow: ${escrowId}`);

Complete Workflow Example

// 1. Client creates job with escrow
const result = await sdk.createJobWithEscrow({
  title: 'Mobile App Development',
  description: 'iOS and Android app',
  budget: '500',
  freelancer: '0xFreelancerAddress',
  milestones: [
    { description: 'UI Design', amount: '100' },
    { description: 'Development', amount: '300' },
    { description: 'Testing', amount: '100' }
  ]
});

// 2. Freelancer submits milestone
await sdk.escrow.submitMilestone(result.escrowId, 0);

// 3. Client approves and releases payment
await sdk.escrow.approveMilestone(result.escrowId, 0);

With Proof-of-Humanity Verification

import { CeloWorkSDK, VerificationLevel } from 'celowork-sdk';

const sdk = new CeloWorkSDK({
  network: 'celoSepolia',
  privateKey: process.env.PRIVATE_KEY,
});

// Request verification
await sdk.selfProtocol.requestVerification(VerificationLevel.Basic);

// Enable verification requirement for jobs
sdk.jobs.setVerificationConfig({
  requireVerification: true,
  minVerificationLevel: VerificationLevel.Basic
});

// Now only verified users can create jobs
const job = await sdk.jobs.createJob({...});

Project Structure

celowork-sdk/
├── contracts/       # Solidity smart contracts
├── sdk/            # TypeScript SDK source
├── demo/           # Demo application
├── docs/           # Documentation
└── dist/           # Compiled SDK output

Development

# Install dependencies
npm install

# Compile contracts
npm run compile

# Build SDK
npm run build

# Deploy to Alfajores
npm run deploy

# Run demo
npm run demo

📚 Documentation

Comprehensive guides and API references:

🎯 Use Cases

Build powerful decentralized applications:

  • Freelance Marketplaces - Like Upwork/Fiverr on blockchain
  • Gig Economy Platforms - Task-based work with escrow
  • Service Marketplaces - Professional services with payments
  • DAO Bounties - Community-driven task management
  • Remote Work Platforms - Global hiring with crypto payments

🔗 Links

  • Contract Explorer: https://sepolia.celoscan.io/address/0x881CE3f25E8383d276D78Cdc454BFa15D34a5AF6
  • Celo Sepolia Faucet: https://faucet.celo.org
  • Celo Documentation: https://docs.celo.org

🤝 Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Run tests: npm test
  5. Submit a pull request

📄 License

MIT License - see LICENSE file for details

🙏 Acknowledgments


Built with ❤️ for the Celo ecosystem