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
Other Useful Business Software
Forever Free Full-Stack Observability | Grafana Cloud
Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of js-ipfs-http-client-lite!