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

@mayarid/n8n-nodes-mayar

v0.4.0

Published

n8n community nodes for Mayar Headless API (actions & triggers)

Readme

n8n-nodes-mayar

n8n community nodes untuk Mayar Headless API (Actions & Trigger).

Instalasi

  • n8n Cloud:

    • Buka Community Nodes dan cari n8n-nodes-mayar.
    • Install dari UI n8n, lalu tambahkan kredensial Mayar API.
  • Self-hosted:

    • npm install n8n-nodes-mayar
    • Pastikan environment n8n Anda memuat paket ini (Community Nodes aktif).

Konfigurasi

Buat kredensial "Mayar API" di n8n:

  • API Key: token Mayar Anda
  • Base URL: default https://api.mayar.id/hl/v1 (Sandbox: https://api.mayar.club/hl/v1)

Fitur

  • Mayar Action Node

    • Balance: Get
    • Invoice: Create, Get Many
    • Coupon: Create, Get, Get Many
    • Customer: Get Many, Create, Update Email
    • Options:
      • Continue On Fail: lanjut workflow saat error dengan output error
      • Max Retries: retry untuk error sementara (429, 5xx)
      • Retry Delay (ms): jeda antar retry
      • Debug: menambahkan meta informasi ke output
  • Mayar Trigger Node

    • Satu webhook endpoint (mayar) yang meneruskan payload request apa adanya
    • Output tunggal (main), webhookResponse meng-echo payload untuk memudahkan pengujian

Contoh Penggunaan

  • Trigger (Webhook)

    • Kirim POST ke endpoint webhook dengan JSON payload. Contoh:
      {
        "event": "payment.received",
        "data": { "id": "123", "status": "SUCCESS" }
      }
    • Payload akan diteruskan ke output main dan di-echo sebagai respons HTTP.
  • Action: Invoice Create

    • Tambahkan node Mayar
    • Set Resource: Invoice, Operation: Create
    • Isi parameter: name, email, mobile, redirectUrl, description, expiredAt (opsional), items
    • Atur Options bila perlu (misal Max Retries untuk kestabilan)
  • Action: Customer Get Many

    • Resource: Customer, Operation: Get Many
    • Parameter: page, pageSize

Pengembangan

  • npm install
  • npm run build
  • Struktur build: output berada di dist/ dan direferensikan oleh n8n melalui field n8n di package.json.

Versioning (bump.sh)

Gunakan skrip bump.sh untuk menaikkan versi dan rilis cepat:

./bump.sh [major|minor|patch] [publish]
  • major|minor|patch: tipe versi semver
  • Skrip akan:
    • membangun paket,
    • menjalankan npm version (membuat commit dan tag),
    • git push dan git push --tags.
  • Tambahkan argumen publish untuk sekaligus menjalankan npm publish --access public.

Lisensi

MIT

Tautan

  • n8n Community Nodes: https://docs.n8n.io/integrations/community-nodes/
  • Mayar API: silakan merujuk dokumentasi resmi Mayar / tim Mayar