Bitcoin Lightning payments for MedusaJS eCommerce via CLINK

MedusaJS is one of the fastest-growing open-source eCommerce frameworks, but despite its explosive growth in headless commerce, no Bitcoin Lightning module existed for MedusaJS. Until now. Built a MedusaJS module that enables Bitcoin Lightning payments for online stores using the CLINK protocol. Available via npm and GitHub.

Woompa Loompa

28. Juli 2026July 28, 2026 · 2 Min. Lesezeit2 min read

image

Built a MedusaJS plugin that enables Bitcoin Lightning payments for online stores using the CLINK protocol. Available via npm and GitHub.

The gap: MedusaJS is one of the fastest-growing open-source eCommerce frameworks (35K+ stars on GitHub, claimed $10B+ GMV global, ~150K monthly npm downloads). Despite explosive growth in headless commerce, no Bitcoin Lightning plugin existed for MedusaJS. Until now.

Market context:

What it does:

Why CLINK? CLINK (Common Lightning Interface for Nostr Keys) uses Nostr as transport layer with no web server required for your Lightning node if you chose Bootstrap on ShockWallet.app. Self-custodial by design when you opt-in running your Lightning.pub node. Ephemeral keys for payment requests = better privacy than traditional payment processors.

Quick start:

npm install medusa-plugin-bitcoin-lightning-via-clink
// medusa-config.ts
{
  resolve: "medusa-plugin-bitcoin-lightning-via-clink",
  id: "clink",
  options: {
    noffer: "noffer1...",  // Your CLINK offer
    currencySource: "coingecko"
  }
}

Advantages: Traditional card payments cost merchants 2-3% per transaction. Lightning costs a fraction of a cent. Let's not even consider all telemetry and tracking that can be done by third parties on all your fiat payments, done and received. CLINK offers zero traceability without any traceable HTTP/HTTPS calls. For a small business processing thousands of transactions/month, the savings are material. Plus: no chargebacks, instant settlement, no waiting for batch processing, it just works, 24/7, 365 days a year non stop.

Links:

Feedback welcome. Happy to answer any questions.

#bitcoin#clink#commerce#ecommerce#lightning#medusajs#npm#payments

Written by

Comments

No comments yet. Start the conversation.