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

@xeggo/sdk

v1.0.2

Published

SDK for the Xeggo fund streaming application

Downloads

17

Readme

Xeggo-SDK Documentation

1. Introduction

1.1 About Xeggo Streaming Service

Xeggo is a Token/ Money streaming platform, built on the Celo blockchain. The user can create, start or schedule money streams which will enable funds to be transferred to the target reciever over a period of time with a defined rate of transfer. This manual provides technical details and instructions of the Xeggo SDK and how to make use of it in your projects.

2. Initial Setup

The following procedure describes how you initialise the setup to use Xeggo functionalities in your project.

To initialise Xeggo SDK without private key

import{framework} from './framework.js'
//Use setContractInstance() and setTokenInstance() if you don't want to use default contract and token.
const xeggo = new framework
xeggo.initialiseWithNetworkName('Alfajores')//Enter name of the network here, *Only for call functions not for sending transactions to the smart contract*

await xeggo.getStreamBalance(streamId,recepient)//Example of call function
await xeggo.getStreamObject(streamId)//Example of call function

To initialise Xeggo SDK with private key( To send transactions to functions )

import { framework } from './framework.js'
const xeggo = new framework
xeggo.initialiseWithKeyNetworkName('privateKey', 'NetworkName');//Enter private key and Network Name.
//You can send functions to the Xeggo contract with this initialisation.
await xeggo.createStream('recepient', deposit, 'tokenAddress', streamTime)//Example of a send function.

3. Available functions

xeggo.getBalance(): Returns the balance of the stream in number of tokens

xeggo.getStream():Returns details of a stream

xeggo.cancelStream():Cancels ongoing/ started streams

xeggo.createStream():Creates/ Starts a new stream

xeggo.withdrawFromStream():Withdraws funds from completed stream (For recipient)

3.1 Some other functions available

To print the ABI of available contracts in the Xeggo SDK

import {getAbi, getAddress} from './kit.js'
console.log(getAbi(contract))//Enter name of contract to get the ABI of contract. 
//[Available Contracts:"xeggo","token"] 
import {getAbi, getAddress} from './kit.js'
console.log(getAddress(networkName, contract))//Enter name of the network and name of contract to get the address of contract in respective network. 
//[Available Neworks:"alfajores","Mainnet","Baklava"]
//[Available Contracts]: "xeggo", "token_address", "xeggo_address"