Lightning.Pub Logo
Lightning.Pub

Don't just run a Lightning Node,
run a Lightning Pub

THE NODE FOR ANYONE

Perfect For

Family & Friends

Share Lightning access with loved ones easily through simple invitation codes.

Offer users lower fees and more reliability than mobile node wallets without big centralized custodians.

Businesses

Run Lightning infrastructure for your customers and employees without an engineering department.

Easily integrate your existing line of business applications with static payment codes and webhooks.

Node Operators

Manage your Lightning node remotely over Nostr from the ShockWallet integrated dashboard.

Achieve sovereignty and generate income without compromising on Enterprise-Class usability.

PUB IS THE NODE DISTRIBUTION THAT GETS IT DONE

Everything you need to run a
professional Lightning service

Nostr-Native Account System

Complete Lightning infrastructure with a P2P-like design eliminates traditional server configuration hurdles.

Automated Channel Management

Fetches quotes from top LSPs including Zeus and Flashsats for automated channel creation and management.

Advanced Security Monitoring

Integrated Watchdog mitigates zero-day drainage attacks by tracking LND state discrepancies.

Multi-Layer Accounting

Support for application pools and users with customizable fee regimes for monetization.

Static Offers & Webhooks

Receive instant notifications for order status changes via webhooks, perfect for e-commerce software and automation.

Connect Apps

Connect external apps over Nostr with Kind 21k or NWC for seamless integration.

ENTERPRISE-GRADE ARCHITECTURE

Built for Scale & Security

SIMPLE SETUP FOR BEGINNERS

Up and Running in 2 Minutes

Lightweight enough for cheap VPS instances, mini computers, and old laptops

sudo wget -qO- https://deploy.lightning.pub | sudo bash

DEVELOPER API

Build Something Great

Get started with just a few lines of code

Create User

// Import the ShockDK (coming soon)
import { Pub } from '@shocknet/sdk';

// Create a new user with Nostr auth
Pub.createUser({
  npub: 'npub1...'
}).then(user => {
  console.log('User created!', user.id);
});

Create Invoice

// Generate a Lightning invoice ⚡
Pub.createInvoice({
  amount: 1000,
  memo: 'Coffee payment'
}).then(invoice => {
  console.log(invoice.bolt11);
});

Handle Offers

// Configure webhook for static offer callbacks
app.post('/webhook/offers', (req, res) => {
  const { offerId, amount, paid } = req.body;
  
  console.log('Item sold: 💰', {
    offerId,
    amount,
    paid
  });
});

Send Payment

// Pay a Lightning invoice ⚡
Pub.sendPayment({
  invoice: 'lnbc...',
  amount: 1000
}).then(payment => {
  console.log('Paid!', payment.hash);
});

Start slinging sats today!

Self-Hosted

Deploy from GitHub to retain total control to your own device.

Install Now

Cloud-Hosting

Get added support with a pre-configured cloud server. Coming soon!