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

@dpos-info/core-voter-count

v1.2.1

Published

Keeps track of the delegate voter count and adds it to the API response

Downloads

1

Readme

Voter Count

This repository contains the Voter Count plugin.

Introduction

At the time of writing, the Core API offers no way to easily retrieve the voter count of each delegate, other than querying the delegates/{id}/voters endpoint and read the total count from the returned meta data. This plugin stores the voter count as a wallet attribute and includes it directly in the delegate data returned by the delegates and delegates/{id} endpoints.

{
    "data": {
        "username": "ddated",
        "address": "DT9QA8WDTpkiUDCYjDfo4GkPCmyyQ8NWVA",
        "publicKey": "02c0382d6a5531b47d7545b3347d6e3b5e7833a13dbf9665e35afc70202e123178",
        "votes": "147505035",
        "rank": 109,
        "isResigned": false,
        "blocks": {
            "produced": 0
        },
        "production": {
            "approval": 0
        },
        "forged": {
            "fees": "0",
            "rewards": "0",
            "total": "0"
        },
        "voters": 1 // <-- yay
    }
}

Installation

The plugin can be installed by executing the following command:

ark plugin:install @dpos-info/core-voter-count

Enable the plugin by adding the following entry after the Core API plugin in the core or relay section of your app.json file:

{
    "package": "@dpos-info/core-voter-count"
}

Please note: if you are using the @alessiodf/rocket-boot plugin please stop your Core processes and delete the saved state files by executing ark rocket:purge in order for the state to be generated correctly when you start the node with the @dpos-info/core-voter-count plugin for the first time.

Credits

License

MIT © Edgar Goetzendorff