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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@respont/app

v2.0.7-alpha.1

Published

Source code for respont sdk. Respont is fully decentralized app for secure communication for each people.

Downloads

12

Readme

Respont SDK

Website npm (tag) Twitter Follow

Another way to interact to Respont smart contract. Respont is fully decentralized app for secure communication for each people.

Installing

Using Node.js

npm install @respont/app

Usage

Import

import * as Respont from "@respont/app";

Connection

const respont = new Respont.Connect(walletKey, JSON_RPC);

Note: Connect() first parameter can be filled with private key or mnemonic phrases. We are now only supported mumbai polygon testnet (80001 / 13881)

Interactions

const interact = new Interactions(respont);

What can do:

GetKeyLocation

Function to get key location in Oasis Privacy Layer with confidential contract. Return Address

AMessage

Function to get one last message from/to an address. Parameter: Address Return Message

Opponents

Function to get interlocutors. Parameters: BeforeHeight and Limit Return array of Message

Message

Function to get messages from a interlocutor. Parameters: BeforeHeight and Limit Return array of Message

SendMessage

Function to send a message to a interlocutor. Parameters: To (Address), message (string), and Media Return: Please refer to ethers transaction return in their documentation

GetPicture

Function to get profile picture of a address. Parameters: Address Return: String with format https url format.

ChangePicture

Function to get change profile picture of connected address. Parameters: Media Return: Please refer to ethers transaction return in their documentation

GetBlocked

Function to get interlocutors address blocked by connected address. Return: Array Address

AddBlockList

Function to block a interlocutor address. Parameter: Address Return: Please refer to ethers transaction return in their documentation

RemoveBlockList

Function to unblock a interlocutor address. Parameter: Address Return: Please refer to ethers transaction return in their documentation

Parameters

Address

Parameter basically is a string but with 42-character hexadecimal. Please refer to ethers.js documentation.

BeforeHeight

Parameter with type data integer. The functional is for cursor due to resource efficiency. Example of use is last BlockHeight from Message return

Media

Parameter with type data array contain string which the urls of media (image, file, etc). Note the media urls accepted format is https url.

Return

Return Address

It is a string with 42-character hexadecimal. Please refer to ethers.js documentation.

Return Message

It is human-read message object. Object contents:

  • FromAddress: Address
  • ToAddress: Address
  • MessageText: string
  • MediaLink: Array Media
  • MessageTimestamp: Integer
  • BlockHeight: Integer

Return Media

It is a string with https urls format.

Events

const listen = new Respont.Listen(respont);
listen.on(eventName, functionEventHandler);

| Event Name | Argument | Description | | ---------------- | ----------------------------------------------------------------------------------- | ------------------------------------------------------------------------ | | PictureChanged | Owner(Address), MediaLink(Media) | Notify every address changed their profile picture. | | Sent | Sender(Address), Receiver(Address) | Notify a new message from/to connected address. | | BlockListAdded | Owner(Address), BlockedAddress(Array Address) | Notify every blocked interlocutor by connected address. | | BlockListRemoved | Owner(Address), BlockedAddress(Address) | Notify every ubblocked interlocutor by connected address. | | block | blockNumber(Integer) | Notify every new generated block. |

Detail: Github / SDK Documentation / Architecture Documentation