Skip to main content
Blog

Reckless Wrapper

Making it easier for devs to build cool things with LNPlay.

The following section outline the major efforts we've been working on this week:

Ghost Themes

There where still some minor things we wanted to change with our Ghost theme websites. We where about to change the font size for LNWidget to allow for better readability. One thing we are still working on is changing the font style for LNWidget.

REST Interface

We where finally able to get most of the REST interface issues resolved. Turns out the nginx configuration needed to be adjusted to better support passing JSON objects for parameterized queries. Once those changes were committed, we were able to continue developing the lightning-cli-rest script.

lightning-cli-rest

Great! We have the REST interface all working. We can issue curl statements and get valid responses from the backend core lightning nodes.

But what if you want to interact with your CLN node? Well, to assist, we created lightning-cli. We provide this tool on lnwidget.guide so hackathoners can interact with their node. Having a tool like this allows developers to use tools like cln-reckless-wrapper.

cln-reckless-wrapper

Alright, so we wanted give hackathoners the ability to do CLN plugin development. Fortunately, there's this cool python script called reckless. However, turns out the script is intended to be executed from a shell environment only; Core Lightning DOES NOT expose reckless via the JSON RPC by default. The result? Hackathoners wouldn't be able to download, install, and update CLN plugins since they only have access to the REST/websocket services.

So we set out to create a Core Lightning plugin we call cln-reckless-wrapper. It's a simple python script that exposes the reckless functionality to hackathoners.

💡
Is there a better way to do this? Probably. But hey! It works, so onward!

Like this content? Consider leaving a tip.