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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mojito-inc/loyalty-cli

v1.0.1

Published

CLI tool for managing Mojito's Loyalty operations

Readme

🧪 Mojito Loyalty CLI

@mojito-inc/loyalty-cli is a command-line tool to interact with the Mojito Loyalty Platform.
It supports authentication, mission & reward handling, claims, redemptions, and leaderboard queries – all from your terminal.

  • 🔗 https://getmojito.com/loyalty
  • 📚 Docs: https://loyaltydocs.getmojito.com/
  • 📧 Support: [email protected]

📦 Installation

  1. Before installing, make sure Node.js is available in your system.

    Install Node.js:
    https://nodejs.org/en/download/

    Verify installation:

    node -v
    npm -v 
  2. Install CLI:

    npm install @mojito-inc/loyalty-cli
  3. Install CLI (If globally required):

    npm install -g @mojito-inc/loyalty-cli
  4. Run the CLI:

    Once installed successfully, you can access the CLI tool via mojito loyalty in your terminal.

    mojito-loyalty --help

⚙️ Global Options

You can specify the environment using:

--env <env>  Specify environment: dev, staging, sandbox, or prod (default: prod)

🔑 Authentication Commands

fetchSignMessage

Fetch the sign message for a user:

mojito-loyalty fetchSignMessage <walletAddress> -k <apiKey>

generateJWT

Generate a JWT token:

mojito-loyalty generateJWT <walletAddress> <signature> <message> -k <apiKey>

🎯 Mission Commands

getMissions

Fetch missions for a user:

mojito-loyalty getMissions <tenantId> <user_reference> -k <apiKey> [options]

Options:

  • --status <status>: Mission status (default: AVAILABLE)
  • --missionId <id>
  • --sortBy <field>: Sort field (default: created_at)
  • --order <asc|desc>: Sort order (default: desc)
  • --limit <n>: Number of results (default: 10)
  • --offset <n>: Pagination offset (default: 0)

fetchMission

Fetch mission details by ID:

mojito-loyalty fetchMission <missionId> -k <apiKey>

🧾 Claim Commands

initiateClaim

Initiate a claim process:

mojito-loyalty initiateClaim <missionId> <userReference> -k <apiKey>

getClaimStatus

Get claim status:

mojito-loyalty getClaimStatus <tenantId> <missionId> <userId> <claimId> -k <apiKey>

🎁 Reward Commands

getRewards

Fetch rewards for a user:

mojito-loyalty getRewards <tenantId> <user_reference> -k <apiKey> [options]

Options:

  • --status <status> (default: AVAILABLE)
  • --sortBy <field> (default: created_at)
  • --order <asc|desc> (default: desc)
  • --limit <n> (default: 10)
  • --offset <n> (default: 0)

fetchReward

Fetch reward details by ID:

mojito-loyalty fetchReward <rewardId> -k <apiKey>

initiateReward

Initiate reward redemption:

mojito-loyalty initiateReward <rewardId> <userReference> <walletAddress> -k <apiKey>

getRedeemStatus

Fetch reward redemption status:

mojito-loyalty getRedeemStatus <tenantId> <rewardId> <userId> <redeemId> -k <apiKey>

🧮 User Credits

getUserCredits

Get user’s available credit points:

mojito-loyalty getUserCredits <tenantId> <user_reference> -k <apiKey>

🏆 Leaderboard

getLeaderboard

Fetch leaderboard data:

mojito-loyalty getLeaderboard <tenantId> -k <apiKey> [options]

Options:

  • --sort <field> (default: Points)
  • --date-range <range> (default: ALLTIME)
  • --limit <n> (default: 10)
  • --offset <n> (default: 0)

💳 Transactions

getTransactions

Fetch user transaction history:

mojito-loyalty getTransactions <tenantId> <userReference> -k <apiKey> [options]

Options:

  • --date-range <range> (default: ALLTIME)
  • --limit <n> (default: 10)
  • --offset <n> (default: 0)

📞 Support