
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
invoice-any
Advanced tools
Generate Lightning Network invoices from Lightning addresses or LNURL with ease!
invoice-any is a lightweight Node.js package that allows you to generate Lightning Network invoices directly from a Lightning Address (e.g., username@domain.com) or an LNURL. It simplifies the process of interacting with the Lightning Network for payments.
You can install the package using npm:
npm install invoice-any
Import the package into your project and use the getInvoice function.
const { getInvoice } = require('invoice-any');
const address = 'user@domain.com'; // Or an LNURL
const amountSats = 1000; // Amount in Satoshis
getInvoice(address, amountSats)
.then(invoice => {
console.log('⚡ Generated Invoice:', invoice);
})
.catch(error => {
console.error('❌ Error:', error);
});
You can also use it directly from the command line to generate invoices instantly.
Syntax:
get-invoice <lightning-address-or-lnurl> <amount-in-sats>
Example:
# Using npx (no installation needed)
npx invoice-any heyolaniran@blink.sv 500
# Or if installed globally
get-invoice legiblepower59@walletofsatoshi.com 500
This package supports any wallet or service that implements the Lightning Address or LNURL protocol.
Some popular examples include:
This package relies on the following dependencies:
Happy Hacking! 🚀
FAQs
Generate Lightning Network invoices from Lightning addresses or LNURL
We found that invoice-any demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.