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-sdk

v1.1.6

Published

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

Downloads

8

Readme

Absinthe Points SDK

absinthe-points-sdk 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-sdk, 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-sdk

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

npx @waliba/absinthe-points-sdk

Usage

Usage: absinthe-points-sdk [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 name to use for the absinthe client
  • -m, --amount The amount of points 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 a campaign
  • -h, --help display help for command

Commands:

  • register -- Registers a campaign with a given name and returns an API key and identifier for that campaign
  • distribute -- Distribute points for an address for a specific event in a campaign
  • getPointsByEvent -- View points for an address for a specific event in a campaign
  • getPoints -- View all points for an address for all the events in a campaign
  • help -- display help for command

Commands

1. Register

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

This command registers a project/campaign with the given name and returns the API key and an Identifier for the campaign.

Screenshot

Register

2. Distribute

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

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

Screenshot

Distribute

3. Get Points

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

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

Screenshot

GetPoints

4. Get Points By Event

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

This command gets the points for the given address for a specific event in a campaign

Screenshot

GetPointsByEvent

Extra

Any key that is not passed will be requested by the cli. You can just paste the command. Also --help command shows all info about the CLI

Contributing

We welcome contributions to improve absinthe-points-sdk. 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.