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

You Might Also Like
Our Free Plans just got better! | Auth0 by Okta Icon
Our Free Plans just got better! | Auth0 by Okta

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

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.
Try free now
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