Alby JS SDK

github.com/getAlby/js-sdk Nostr Open-source project

Alby JS SDK provides JavaScript libraries for the Alby OAuth2 Wallet API and Nostr Wallet Connect.

github.com/getAlby/js-sdk
Alby JS SDK homepage screenshot

About Alby JS SDK

Alby JS SDK is a JavaScript library for interacting with bitcoin lightning wallets via Nostr Wallet Connect or the Alby Wallet API. It includes an LN client for paying lightning invoices and lightning addresses and for requesting payments, plus NWC app and wallet-service clients, Alby OAuth API functions such as invoices and webhooks, and WebLN providers.

It requires Node.js 22 or higher for native fetch and WebSocket support.

Key features

  • Pay lightning invoices with NWC connection credentials
  • Pay lightning addresses using fiat-denominated amounts
  • Request payments and trigger action on payment
  • Create invoices and manage payments via Alby Wallet API
  • Set up payment webhooks for Alby Wallet transactions
  • Use NostrWebLNProvider and OAuthWebLNProvider for WebLN
Best for: Developers building JavaScript apps that send or receive bitcoin lightning payments.
Good for
  • Supports both Nostr Wallet Connect and Alby Wallet API connections
  • Works with several existing NWC-enabled wallets for credentials
  • Can be installed with npm, yarn, or direct module import
Watch out for
  • Requires Node.js 22 or higher for native fetch and WebSocket support
  • Use on older Node.js versions needs a separate polyfill and is not recommended

Alby JS SDK at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Not stated
Language
English
Last checked
Oct 5, 2026 · Online when checked
Listed
Oct 5, 2026

Alby JS SDK alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 11 alternatives

Alby NWC (Web)

nwc.getalby.com

Alby Hub is a self-custodial Bitcoin Lightning wallet that connects to apps for spending online and in person.

Evento

github.com/sevenlabsxyz/evento-client

Evento provides an open-source Nostr client with a built-in self-custodial Bitcoin Lightning wallet.

Open source
24 alternatives

Popular in Nostr

Well-known listings from the same topic.

All 110

Alby JS SDK FAQ

How do I install the SDK?
With npm using npm install @getalby/sdk, with yarn using yarn add @getalby/sdk, or in the browser with a module import from a CDN such as esm.sh.
How do I get credentials for the LN client?
Use an NWC connection secret from an NWC-enabled wallet such as Alby Hub, coinos, Primal, lnwallet.app, or Yakihonne.
What Node.js version is needed?
Node.js 22 or higher is required for native fetch and WebSocket support.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing