| CARVIEW |
Select Language
HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx/1.24.0 (Ubuntu)
Content-Type: text/html; charset=utf-8
Cache-Control: public, max-age=300
Content-Encoding: gzip
Via: 1.1 varnish, 1.1 varnish
Accept-Ranges: bytes
Age: 0
Date: Fri, 16 Jan 2026 23:46:03 GMT
X-Served-By: cache-dfw-ktki8620043-DFW, cache-bom-vanm7210085-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768607163.982902,VS0,VE287
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
clplug: Easily add functionality to your lightning node
[Skip to Readme]
clplug: Easily add functionality to your lightning node
For more information see the documentation about plugins from the core lightning project https://docs.corelightning.org/docs/plugins
[Skip to Readme]
Modules
- Plugin
- Plugin.Client
- Plugin.Connect
- Plugin.Generic
- Plugin.Hooks
- Internal
- Plugin.Internal.Conduit
- Plugin.Manifest
- Plugin.Notifications
Downloads
- clplug-1.0.0.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
| Versions [RSS] | 0.1.0.0, 0.2.0.0, 0.3.0.0, 0.3.1.0, 0.3.2.0, 0.3.3.0, 0.4.0.0, 1.0.0.0 |
|---|---|
| Change log | CHANGELOG.md |
| Dependencies | aeson (>=2.2.1 && <2.3), attoparsec (>=0.14.4 && <0.15), attoparsec-aeson (>=2.2.0 && <2.3), base (>=4.19 && <5), bytestring (>=0.12.1 && <0.13), conduit (>=1.3.5 && <1.4), mtl (>=2.3.1 && <2.4), network (>=3.1.4 && <3.2), stm (>=2.5.2 && <2.6), text (>=2.1.1 && <2.2) [details] |
| License | MIT |
| Copyright | 2024 |
| Author | autonomousorganization |
| Maintainer | autonomousorganization |
| Uploaded | by autonomousorganization at 2024-05-26T16:57:42Z |
| Category | bitcoin, lightning, plugin |
| Distributions | |
| Downloads | 531 total (28 in the last 30 days) |
| Rating | 2.0 (votes: 1) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs not available [build log] All reported builds failed as of 2024-05-26 [all 2 reports] |
Readme for clplug-1.0.0.0
[back to package description]Core Lightning Plug
Create Core Lightning plugins in haskell.
Use plugin to create an executable that can be installed as a plugin!
main = plugin manifest start app
A manifest defines the interface with core lightning. It is just a Value but Plugin.Manifest has helper types to easily define it.
manifest = object [
"dynamic" .= True
, "subscriptions" .= ([] :: [Text] )
, "options" .= ([]::[Option])
, "rpcmethods" .= ([
, RpcMethod "command" "[label]" "description" Nothing False
])
, "hooks" .= ([Hook "invoice_payment" Nothing])
, "featurebits" .= object [ ]
, "notifications" .= ([]::[Notification])
]
start runs on startup and defines the initial state.
start = do
_ <- lightningCli ("getinfo" :: Text)
_ <- liftIO . forkIO $ < service >
return < state >
app handler function allows you to monitor status (through notification), add rpc commands, or augment normal operation (through hooks).
app (Req (Just i) "method" params) =
if <condition>
then release i
else reject i
Remember any output to stdout will break the connection.