GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - lightningd/plugins: Community curated plugins for core-lightning

BranchesTags
Open more actions menu

Latest commit

 

History

1,356 Commits
1,356 Commits

Folders and files

NameName
Last commit message
Last commit date
.ci
.ci
 
 
.github
.github
 
 
archived
archived
 
 
backup
backup
 
 
circular @ 45f1487
circular @ 45f1487
 
 
cl-zmq
cl-zmq
 
 
clearnet
clearnet
 
 
cln-nip47 @ 62fbc07
cln-nip47 @ 62fbc07
 
 
cln-ntfy @ 25c3c3e
cln-ntfy @ 25c3c3e
 
 
clnaddress @ 0ce7793
clnaddress @ 0ce7793
 
 
clnrod @ 9db8693
clnrod @ 9db8693
 
 
consolidator @ 43bc704
consolidator @ 43bc704
 
 
donations
donations
 
 
feeadjuster
feeadjuster
 
 
historian
historian
 
 
hold @ 945bca9
hold @ 945bca9
 
 
ln-address-pay @ e5a3499
ln-address-pay @ e5a3499
 
 
lnradar @ 55de3a7
lnradar @ 55de3a7
 
 
monitor
monitor
 
 
payany @ 29e8ffe
payany @ 29e8ffe
 
 
persistent-channels
persistent-channels
 
 
prometheus
prometheus
 
 
rebalance
rebalance
 
 
sling @ ebf957b
sling @ ebf957b
 
 
summars @ b259e13
summars @ b259e13
 
 
summary
summary
 
 
trustedcoin @ 2e1d23d
trustedcoin @ 2e1d23d
 
 
watchtower-client @ c9f82bc
watchtower-client @ c9f82bc
 
 
.coveragerc
.coveragerc
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
.mergify.yml
.mergify.yml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
Reckless.md
Reckless.md
 
 
conftest.py
conftest.py
 
 
pyproject.toml
pyproject.toml
 
 
pytest.ini
pytest.ini
 
 
sitecustomize.py
sitecustomize.py
 
 
uv.lock
uv.lock
 
 

Repository files navigation

Plugins for Core-Lightning

Community curated plugins for Core-Lightning.

Integration Tests (latest) Nightly Integration Tests (master)

Available plugins

Name Short description CLN
26.06/master
backup A simple and reliable backup plugin
circular Fast, efficient parallel channel rebalancer with bLIP-18 inbound fee support
clearnet A plugin that can be used to enforce clearnet connections when possible
clnaddress Run a lnurl server to receive via lnurl or ln-addresses with optional Zap support
cln-nip47 Nostr Wallet Connect (NWC) plugin to connect your wallets via nostr to your node.
cln-ntfy Core Lightning plugin for sending ntfy alerts.
clnrod Channel acceptor plugin. Configurable with external data from amboss/1ml and notifications
cl-zmq Publishes notifications via ZeroMQ to configured endpoints
consolidator Automatically consolidate your UTXO's
donations A simple donations page to accept donations from the web
feeadjuster Dynamic fees to keep your channels more balanced
historian Gossip message archiver
hold Hold invoices that do not require the preimage to be known when created
ln-address-pay Allows payments to lightning addresses
lnradar A plugin to gather liquidity information from payment probes
monitor helps you analyze the health of your peers and channels
payany Supercharge CLN's pay/xpay/renepay. Automatically fetch invoices for static ln addresses like LNURL etc.. Set a budget for external wallets.
persistent-channels Maintains a number of channels to peers
prometheus Exposes some key metrics from c-lightning in the prometheus format
rebalance Keeps your channels balanced
sling Rebalance your channels with smart rules and built-in background tasks
summars Print configurable summary of node, channels and optionally forwards, invoices, payments
summary Print a nice summary of the node status
trustedcoin Replace your Bitcoin Core with data from public block explorers
watchtower-client Watchtower client for The Eye of Satoshi

Plugin Managers

This is a list of plugin managers that can help you install these plugins:

Name Short description
coffee Reference implementation for a flexible core lightning plugin manager
reckless Comes with CLN. Reckless support can be checked here: Reckless.

Archived plugins

If you can't find a plugin you're looking for, it may have been archived. Plugins are archived when they start to fail integration testing with the latest CLN release, at which point they will be considered unmaintained.

Installation

To install and activate a plugin you need to stop your lightningd and restart it with the plugin argument like this:

lightningd --plugin=/path/to/plugin/directory/plugin_file_name.py

Notes:

  • The plugin_file_name.py must have executable permissions: chmod a+x plugin_file_name.py
    • You must have git core.fileMode set to true to reflect the permissions in git
    • On Windows you might need to do the git add command in WSL to be able to change the permissions
  • A plugin can be written in any programming language, as it interacts with lightningd purely using stdin/stdout pipes.

Automatic plugin initialization

Alternatively, especially when you use multiple plugins, you can copy or symlink all plugin directories into your ~/.lightning/plugins directory. The daemon will load each executable it finds in sub-directories as a plugin. In this case you don't need to manage all the --plugin=... parameters.

Dynamic plugin initialization

Most of the plugins can be managed using the RPC interface. Use

lightning-cli plugin start /path/to/plugin/directory/plugin_file_name

to start it, and

lightning-cli plugin stop /path/to/plugin/directory/plugin_file_name

to stop it.

As a plugin developer this option is configurable with all the available plugin libraries, and defaults to true.

PYTHONPATH and pyln

To simplify plugin development you can rely on pyln-client for the plugin implementation, pyln-proto if you need to parse or write lightning protocol messages, and pyln-testing in order to write tests. These libraries can be retrieved in a number of different ways:

  • Using pip tools: pip3 install pyln-client pyln-testing
  • Using the PYTHONPATH environment variable to include your clightning's shipped pyln-* libraries:
export PYTHONPATH=/path/to/lightnind/contrib/pyln-client:/path/to/lightnind/contrib/pyln-testing:$PYTHONPATH

Writing tests

The pyln-testing library provides a number of helpers and fixtures to write tests. While not strictly necessary, writing a test will ensure that your plugin is working correctly against a number of configurations (both with and without DEVELOPER, COMPAT and EXPERIMENTAL_FEATURES), and more importantly that they will continue to work with newly release versions of Core-Lightning.

Writing a test is as simple as this:

  • The framework will look for unittest filenames starting with test_.
  • The test functions should also start with test_.
from pyln.testing.fixtures import *

pluginopt = {"plugin": os.path.join(os.path.dirname(__file__), "YOUR_PLUGIN.py")}


def test_your_plugin(node_factory, bitcoind):
    l1 = node_factory.get_node(options=pluginopt)
    s = l1.rpc.getinfo()
    assert s["network"] == "regtest"  # or whatever you want to test

Tests are run against pull requests, all commits on master, as well as once ever 24 hours to test against the latest master branch of the Core-Lightning development tree.

Running tests locally can be done like this: (make sure the PYTHONPATH env variable is correct)

pytest YOUR_PLUGIN/YOUR_TEST.py

Python plugins specifics

Additional dependencies

Additionally, some Python plugins come with a requirements.txt which can be used to install the plugin's dependencies using the pip tools:

pip3 install -r requirements.txt

Note: You might need to also specify the --user command line flag depending on your environment.

Contributing

Minimum supported Python version

The minimum supported version of Python for this repository is currently 3.9.x (12 June 2025). Python plugins users must ensure to have a version >= 3.9. Python plugins developers must ensure their plugin to work with all Python versions >= 3.9.

Recommended commits format

Whenever submitting code contributions for this repository, we should try to stick to the format 'lightning' uses, something like:

plugin name: One subject line
        (empty line)
more detailed description (if any)

More Plugins from the Community

  • @conscott's plugins
  • @renepickhardt's plugins
  • @rsbondi's plugins
  • Core-Lightning plugins emulating commands of LND (lncli)

Plugin Builder Resources

  • Description of the plugin API
  • C Plugin API by @rustyrussell
  • Python Plugin API & RPC Client (PyPI) by @cdecker and a video tutorial by @renepickhardt
  • Go Plugin API & RPC Client by @niftynei
  • C++ Plugin API & RPC Client by @darosior
  • Javascript Plugin API & RPC Client by @darosior
  • TypeScript Plugin API & RPC Client by @AaronDewes
  • Java Plugin API & RPC Client by @vincenzopalazzo
  • C# Plugin Guideline and example project by @joemphilips
  • Kotlin plugin guideline and example by @vincenzopalazzo

About

Community curated plugins for core-lightning

Topics

c-lightningclncore-lightninglightninglightning-networklightningdplugin

Resources

Readme
BSD-3-Clause license
Activity
Custom properties

Stars

317 stars

Watchers

18 watching

Forks

134 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.