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
Simplify Purchasing For Your Business Icon
Simplify Purchasing For Your Business

Manage what you buy and how you buy it with Order.co, so you have control over your time and money spent.

Simplify every aspect of buying for your business in Order.co. From sourcing products to scaling purchasing across locations to automating your AP and approvals workstreams, Order.co is the platform of choice for growing businesses.
Learn More
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