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

n8n-nodes-genius-referrals

v0.1.3

Published

n8n community node for the Genius Referrals API.

Readme

n8n-nodes-genius-referrals

n8n-nodes-genius-referrals is an n8n community node for the Genius Referrals API. It currently exposes 8 resource families and 52 operations for account, advocate, bonus, campaign, referral, redemption, report, and utility workflows.

Supported coverage

| Resource | Example operations | | --- | --- | | Accounts | Get all accounts, get an account | | Advocates | Get advocates, create advocate, patch advocate, get share links | | Bonuses | Get bonuses, create bonus, patch bonus, bonus checkup, bonus traces | | Campaigns | Get campaigns, get a campaign | | Redemption Requests | Get requests, create request, patch request, redeem request | | Referrals | Get referrals, create referral, replace referral, delete referral | | Reports | Revenue, top advocates, daily participation, origin summaries, 1099 tax | | Utilities | Test authentication, currencies, payment methods, referral origins, redemption statuses |

Installation

Self-hosted n8n

  1. Install the package in the same environment where n8n runs:

    npm install n8n-nodes-genius-referrals
  2. Restart n8n so it loads the new community node package.

  3. Open the editor and search for Genius Referrals.

Community Nodes UI

When the package is published to npm, install it from Settings -> Community Nodes -> Install with:

n8n-nodes-genius-referrals

Pre-publish validation

Before npm publication, validate the package with:

npm install
npm run build
npm run lint
npm test
npm pack

Use the generated tarball in a test n8n instance to confirm the node loads and the credential form appears as expected.

Credentials

Create a Genius Referrals API credential in n8n with:

  • API Token: your Genius Referrals API token. This is sent as the X-Auth-Token header.
  • Base URL: defaults to https://api.geniusreferrals.com

The node also includes Utilities -> Test authentication so you can verify the credential before running other operations.

Operation behavior

  • Account slugs load dynamically from the API token where the API supports it.
  • Utility-backed selectors such as currencies, referral origins, and redemption statuses load dynamically.
  • POST and PUT operations automatically wrap payloads when the Genius Referrals API expects nested roots such as advocate, bonus, referral, or redemption_request.
  • PATCH operations preserve the flat payload shape expected by the API.
  • Report operations merge Client Slug into the outgoing query string as client_slug.
  • Some entity-specific identifiers remain manual inputs in this safe slice, including advocate token, campaign slug, bonus ID, trace ID, redemption request ID, and referral ID.

Example usage

1. Verify the credential

  • Resource: Utilities
  • Operation: Test authentication

This is the fastest sanity check after adding the API token.

2. List advocates for an account

  • Resource: Advocates
  • Operation: Get advocates
  • Account Slug: choose one of the accounts loaded from the credential
  • Query JSON example:
{
  "page": 1,
  "per_page": 25
}

3. Create an advocate

  • Resource: Advocates
  • Operation: Create an advocate
  • Account Slug: select the target account
  • Payload JSON example:
{
  "firstname": "Ada",
  "lastname": "Lovelace",
  "email": "[email protected]"
}

The node wraps this automatically as:

{
  "advocate": {
    "firstname": "Ada",
    "lastname": "Lovelace",
    "email": "[email protected]"
  }
}

4. Pull a revenue report

  • Resource: Reports
  • Operation: Get revenue report
  • Client Slug: select the client/account slug
  • Query JSON example:
{
  "from": "2026-01-01",
  "to": "2026-01-31"
}

The node adds client_slug automatically.

Local development

npm install
npm run build
npm run lint
npm test

Release readiness

The detailed release checklist lives in docs/release-readiness.md.

Current release notes:

  • 0.1.3 is a package candidate prepared for Creator Portal revalidation after the 0.1.2 source, QA, Stage, Ledger, and merge-readiness gates completed.
  • Package naming and n8n metadata are in place for a community node package.
  • TypeScript build output is generated into dist/, and the dist/ metadata paths advertised in package.json are committed so n8n Creator Portal repository validation can resolve the credential and node files.
  • Repo tests cover request wrapping, query requirements, and API client error mapping.
  • lint runs n8n-node lint with the package's n8n community-node rules.
  • Final npm publish and n8n Creator Portal submission require Alain approval and must happen outside this implementation ticket.