Socket
Book a DemoInstallSign in
Socket

@getalby/lightning-messageboard

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@getalby/lightning-messageboard

A web component for a lightning messageboard powered by NWC

latest
npmnpm
Version
1.1.0
Version published
Weekly downloads
0
-100%
Maintainers
0
Weekly downloads
 
Created
Source

Lightning Messageboard

A simple messageboard web component powered by NWC that allows visitors to pay bitcoin to post messages.

Demo

👉 Try the Live Demo

The demo shows various themes and customization options for the Lightning Messageboard component.

Screenshots

image

Features

  • 💸 Lightning Network payment integration via Nostr Wallet Connect (NWC)
  • 🎨 Customizable themes
  • 🔒 Secure receive-only connection to your wallet
  • 📱 Responsive design
  • 💬 Simple but effective comments system for your website
  • 🎮 Visitors can pay more to ensure their comment shows at the top of the message board

Usage

Include the script:

<script
  type="module"
  src="https://esm.sh/@getalby/lightning-messageboard"
></script>

Then add the web component where you want it to be displayed:

<lightning-messageboard
  nwc-url="nostr+walletconnect://..."
></lightning-messageboard>

Attributes

Required

  • nwc-url: NWC connection secret of a sub-wallet with receive-only permissions (make_invoice, lookup_invoice, list_transactions) for receiving Lightning Network payments.

Optional

  • theme: JSON string with theme colors.

Theme Options

The following theme properties can be customized:

  • primary-color: Main color used for buttons and accents
  • background-color: Background color of the component
  • border-color: Color for borders
  • text-color: Main text color
  • text-muted-color: Color for secondary text
  • button-text-color: Text color for buttons
  • border-radius: Border radius for the component and elements

See the demo for example themes and use your browser dev tools to inspect them.

Development

Clone the repository and install dependencies:

git clone https://github.com/getAlby/lightning-messageboard.git
cd lightning-messageboard
yarn install

Build the project:

yarn build

Start a HTTP server to view the demo page locally:

python3 -m http.server

License

MIT

Keywords

lightning

FAQs

Package last updated on 17 Mar 2025

Did you know?

Socket

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.

Install

Related posts