-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Point users at canonical kubo/client/rpc library #9124
Comments
Food for thought: Our CLI for RPC over HTTP is built with https://github.com/ipfs/go-ipfs-cmds/ We use this library for generating docs at https://docs.ipfs.tech/reference/kubo/rpc/ Would be really nice if we leveraged this somehow in HTTP client library. Ideally, it would depend on Kubo, and generate client for commands based on go-ipfs-cmds annotations present in Kubo sources. Not sure how feasible this is, but someone wants to explore this, we could add more annotations if needed – prior art in #8802. |
Triage notes:
|
One not-so-nice aspect of this idea is that suddenly your API client depend on quite heavy and break prone dependencies like libp2p. Maybe consider at least a dedicated go.mod file? |
@MichaelMure |
@Jorropo is go-ipfs-http-client the thing we want to support going forward? |
2023-05-23 conversation:
|
Maybe let's just call it kuboClient "github.com/ipfs/kubo/client/rpc"
node, err := kuboClient.NewLocalApi() |
@Jorropo : do you have the corresponding PR for this? |
|
Updated progress in the top comment + filled ipfs/go-ipfs-http-client#184 and ipfs/go-ipfs-api#296 based on my understanding of next steps. |
Hi all, triaging old ipfs-docs issues right now and I came across Issue 1194: List other Kubo RPC API clients, which depends on this. It looks like work can't yet start on 1194? |
@ElPaisano good question! We've had a release with (This can happen without being blocked by ipfs/go-ipfs-http-client#184 and ipfs/go-ipfs-api#296) |
https://github.com/ipfs/go-ipfs-api is not replaced by
|
As a result, I agree with @lidel, that ipfs/ipfs-docs#1194 shouldn't be blocked. Carry on please @ElPaisano. |
sounds good, thanks all |
2023-10-05 conversation: emphasis before IPFS Connect is just to make sure we're always pointing at the new thing. |
The only point remaining here is to create an automation to alert us when a new command is added, which I extracted to #10178. I think that is enough of its own thing to deserve its own issue. Therefore, I am closing this one. I think the main points (documentation, archiving repositories, directing to new clients) have been done. If you find a wild mention to the old clients that we no longer want to support, feel free to submit a PR to replace the links. |
Current state
We have two RPC clients for "GO-IPFS":
After renaming to Kubo, this state of things is arguably a really really bad user experience:
Desired state
Ideally, we should have one Kubo client at https://github.com/ipfs/go-kubo-rpc-client
Keeping
go-
prefix is important because we want consistency across languages,and Kubo team will maintain
go-kubo-rpc-client
too.TODO
go-ipfs-api
supports more things, e.g. MFS.go-ipfs-http-client
to Kubo repo askubo/client/rpc
, and use it going forward.go-ipfs-http-client
, making it "official" one.go-kubo-rpc-client
cc @2color @BigLep @Jorropo @ajnavarro
The text was updated successfully, but these errors were encountered: