-
-
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
Can go-ipfs be programmed or am I stuck with the CLI? #5377
Comments
Latest iteration of that bug: ipfs/js-ipfs#1446 The HTTP API allows you to write programs that use the go-ipfs daemon externally, can do this from the browser using js-ipfs-api or from a go application using go-ipfs-api. You can also use go-ipfs as a library but this isn't currently well supported. We're working on improving this situation by implementing something we call the CoreAPI (the current interfaces live in core/coreapi/interfaces) but that hasn't been completed. Once that has been completed, we'll write some examples.
Take a look at: IPFS itself is a building block. It's designed in the client-server model where a single user will have a single IPFS daemon running in the background with multiple applications acting as clients. The CLI interface is currently just a convenient client that's relatively easy to write and maintain. Closing for tracking purposes as this issue isn't directly actionable, feel free to ask follow up questions. Note: In the future, you should probably ask questions at https://discuss.ipfs.io (our discussion forum). I've answered this one here as it's almost a feature request but the discussion forum is better suited to questions like this. |
@Stebalien thank you very much, now it's clearer, okay I'll use the forum, do you also have a chat or Slack? What I'd love to have from the js-ipfs-api is:
Bonus questions:
|
You can find us on the #ipfs channel on Freenode (IRC).
Let's move this to the forums or IRC. This looks like it's going to be a long discussion. |
Can I build something with go-ipfs or can I just use it with the CLI? Js-ipfs is very well documented and very easy to get started, however as long as it keeps crashing every 15 minutes is useless. So I was wondering if I can go back and start from scratch again my project with go-ipfs. However the only things I can find are CLI commands and something about the http api, which I don't like since I don't have the full control I have with js-ipfs and that I hope to have with go-ipfs. There aren't many people able to use the terminal so why all this emphasis on that, instead of making it easy for people to build something with go-ipfs? Since few people even know about this language, there should be a very good guide that helps starting from scratch...
The error I get with js-ipfs has been around for quite long if you search for it:
https://github.com/libp2p/js-libp2p-switch/issues/235
I get it with version 0.31.4, 0.31.3, and 0.30.0, but I think every version has it. This is what I get:
I get this problem with the main example of the ipfs-pubsub-room repository:
https://github.com/ipfs-shipyard/ipfs-pubsub-room
The text was updated successfully, but these errors were encountered: