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 🙏

© 2025 – Pkg Stats / Ryan Hefner

quorum-sdk-electron-renderer

v1.0.7

Published

Quorum-sdk includes two npm packages:

Downloads

21

Readme

Quorum-sdk-electron-renderer

Quorum-sdk includes two npm packages:

  1. Quorum-sdk-electron-renderer
  2. Quorum-sdk-electron-main

Quorum-sdk-electron-renderer is the package for your Electron renderer process to interact with Quorum.

Install

$ yarn add quorum-sdk-electron-renderer

QuorumClient

** Note: Make sure you have installed and setup Quorum-sdk-electron-main in Electron main process. **

import QuorumSDK from 'quorum-sdk-electron-renderer';

(async () => {
  const QuorumClient = new QuorumSDK();

  await QuorumClient.up();

  console.log('Quorum client started !');
})();

Node

fetch node status

const status = await QuorumClient.Node.status();
console.log(status);

fetch node info

const info = await QuorumClient.Node.info();
console.log(info);

fetch node network

const network = await QuorumClient.Node.network();
console.log(network);

Group

create group

const group = await QuorumClient.Group.create({
  group_name: 'test',
  consensus_type: 'poa',
  encryption_type: 'public',
  app_key: 'group_note',
});
console.log(group);

list groups

const groups = await QuorumClient.Group.list() || [];
console.log(groups);

leave group

await QuorumClient.Group.leave(group.group_id);

Object

create object

const objectId = '1';
const object = await QuorumClient.Object.put(group.user_pubkey, {
  type: 'Add',
  object: {
    id: objectId,
    type: 'Note',
    content: 'test',
  },
  target: {
    id: group.group_id,
    type: 'Group',
  },
});
console.log(object);

get object

await QuorumClient.Object.get(object.Content.id);

get object by TrxId

await QuorumClient.Object.getByTrxId(object.TrxId);

update object

const updatedObject = await QuorumClient.Object.put(group.user_pubkey, {
  type: 'Add',
  object: {
    id: object.Content.id, // pass the object id that you want to update
    type: 'Note',
    content: 'test',
  },
  target: {
    id: group.group_id,
    type: 'Group',
  },
});
console.log(updatedObject);

delete object

await QuorumClient.Object.delete(group.group_id, object.Content.id);

list objects

const objects = await QuorumClient.Object.list();
console.log(objects);

Auth

For more detail, you can check Quorum auth protocol explained

get following rule

const followingRule = await QuorumClient.Auth.getFollowingRule(groupId, 'POST');
console.log(followingRule);

update following rule

await QuorumClient.Auth.updateFollowingRule({
  group_id: groupId,
  type: 'set_trx_auth_mode',
  config: {
    trx_type: 'POST',
    trx_auth_mode: 'FOLLOW_DNY_LIST',
    memo: '',
  },
});

add a publisher to allow list

await QuorumClient.Auth.updateAuthList({
  group_id: groupId,
  type: 'upd_alw_list',
  config: {
    action: 'add',
    pubkey: publisher,
    trx_type: ['POST'],
    memo: '',
  },
});

remove a publisher from allow list

await QuorumClient.Auth.updateAuthList({
  group_id: groupId,
  type: 'upd_alw_list',
  config: {
    action: 'remove',
    pubkey: publisher,
    trx_type: ['POST'],
    memo: '',
  },
});

add a publisher to deny list

await QuorumClient.Auth.updateAuthList({
  group_id: groupId,
  type: 'upd_dny_list',
  config: {
    action: 'add',
    pubkey: publisher,
    trx_type: ['POST'],
    memo: '',
  },
})

remove a publisher from deny list

await QuorumClient.Auth.updateAuthList({
  group_id: groupId,
  type: 'upd_dny_list',
  config: {
    action: 'remove',
    pubkey: publisher,
    trx_type: ['POST'],
    memo: '',
  },
});

get allow list

const allowList = await QuorumClient.Auth.getAllowList(groupId);
console.log(allowList);

get deny list

const denyList = await QuorumClient.Auth.getDenyList(groupId);
console.log(denyList);

Run testing script

import { QuorumClientTest } from 'quorum-sdk-electron-renderer';

QuorumClientTest.start();

// open devTool console and check out testing process and logs.

Full testing file: test.ts