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

Project Samples

Project Activity

See All Activity >

Categories

File Sharing

License

MIT License

Follow js-ipfs-http-client-lite

js-ipfs-http-client-lite Web Site

Other Useful Business Software
Forever Free Full-Stack Observability | Grafana Cloud Icon
Forever Free Full-Stack Observability | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

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.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of js-ipfs-http-client-lite!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

JavaScript

Related Categories

JavaScript File Sharing Software

Registered

2023-07-17