💾 Archived View for siiky.srht.site › projects › ipfs.gmi captured on 2023-11-14 at 07:58:55. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-03-20)
-=-=-=-=-=-=-
siiky
2022/07/23
2022/07/24
en
I wrote a CHICKEN Scheme egg to control a Kubo node through its RPC API.
I'm really glad how it turned out. I think the list of endpoints along with their arguments is very easy to maintain (easily the most tedious job of such a library), and more importantly I think it's very easy to use also.
A new version of Kubo was released some day of this past week, and today I spent a few hours updating the egg. I received nice comments from teiresias and a couple of improvements. That and the fact that they're using the egg made today that much better.
What prompted me to write this was Petri nets log #003, where I write about languages convertible to other target languages. The idea didn't come to me while writing that log but because of this egg. After writing it and getting something already usable I thought of using IPFS where CHICKEN didn't fit: some mpv hacks with its Lua interface. "Why not write an ipfs.lua?", thought I. And so I did, the following couple of hours. I progressed along well, until I reached the point where only the endpoints were missing. Of course, I didn't want to write them by hand yet again, screw that! Instead, I wrote a different version of export-rpc-call and voila: a Lua file with all the endpoints defined, ready to be used!
Have to think what to do about the recent rename someday...