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

@waliba/absinthe-points-client

v1.0.0

Published

A command-line tool for managing API keys, distributing points, and viewing reward data on the Absinthe platform

Downloads

4

Readme

Absinthe Client

absinthe-points-client is a command-line tool that helps you manage your campaigns and distribute points to your user addresses.

Table of Contents

Installation

Before using absinthe-points-client, make sure you have Node.js and npm installed on your system. You can install it globally using npm:

npm install -g @waliba/absinthe-points-client

Alternatively, you can use npx to run it without installing it globally:

npx @waliba/absinthe-points-client

Usage

Usage: absinthe-points-client [options] [command]

Options:

  • -k, --apiKey The api key to use for the absinthe client
  • -a, --address The address to use for the absinthe client
  • -e, --event The event to use for the absinthe client
  • -m, --amount The amount to use for the absinthe client
  • -q, --quiet Do not display any helpful text just request and response
  • -n, --name Name to use while registering
  • -h, --help display help for command

Commands:

  • getPointsByCampaign View points for an address in a campaign
  • getPoints View all points for an address in all campaigns
  • distribute Distribute points for an address in a campaign
  • register Distribute points for an address in a campaign
  • help [command] display help for command

Commands

1. Register

npx @waliba/absinthe-points-client register -n "Project Name" or --name "Project Name"

This command registers a project with the given name and returns the address.

Screenshots

![Register](

)

2. Distribute

npx @waliba/absinthe-points-client -a "0x1234567890" -e "Event Name" -m 100

This command distributes points to the given address for the given event.

Screenshots

![Distribute](

)

3. Get Points

npx @waliba/absinthe-points-client getPoints -a "0x1234567890" -k "d8c263fc-c820-49b7-af31-cafe95720322"

This command gets all the points for the given address.

4. Get Points By Campaign

npx @waliba/absinthe-points-client getPointsByCampaign -a "0x1234567890" -k "d8c263fc-c820-49b7-af31-cafe95720322"

This command gets all the points for the given address in the given campaign.

Extra

Any key that is not passed will be asked again by the cli. So feel free to just paste the command. Also --help command shows all info about the CLI

Contributing

We welcome contributions to improve absinthe-points-client. If you find a bug or have a feature request, please open an issue on the GitHub repository.

License

This project is licensed under the MIT License. See the LICENSE file for details.