An alternative client library for the IPFS HTTP API, aiming to be as lightweight as possible (<20KB) in the browser. To interact with the API, you need to have a local daemon running. It needs to be open on the right port. 5001 is the default and is used in the examples below, but it can be set to whatever you need. In a web browser IPFS HTTP client (either browserified or CDN-based) might encounter an error saying that the origin is not allowed. This would be a CORS ("Cross Origin Resource Sharing") failure: IPFS servers are designed to reject requests from unknown domains by default. You can whitelist the domain that you are calling from by changing your ipfs config.
Features
- Custom HTTP Headers
- Run the daemon with the right port
- A lightweight JavaScript HTTP client library for IPFS
- This module can be bundled with webpack and browserify and should be compatible with most other bundlers
- All API methods are documented using Promises/async/await but they also accept a callback as their last parameter
- Dual-licensed under Apache 2.0 and MIT terms
Categories
File SharingLicense
MIT LicenseFollow js-ipfs-http-client-lite
You Might Also Like
Our Free Plans just got better! | Auth0 by Okta
You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your secuirty. Auth0 now, thank yourself later.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of js-ipfs-http-client-lite!