Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
ipfs-grpc-client
Advanced tools
A client for the ipfs-grpc-server module
This module implements part of the IPFS Core API using gRPC over websockets to achieve the bidirectional streaming necessary to have full duplex streams running in the browser.
It's not recommended you use this directly, instead use the ipfs-client to combine this with the ipfs-http-client in order to have HTTP fallback for the missing parts of the API.
The fetch and XHR APIs do not allow for full-duplex streaming, that is, allowing the client to receive bytes from the response while also adding more bytes to the outgoing request.
This limits what we can do in browsers in terms of the API, for example streaming arbitrarily sized payloads or exposing libp2p duplex streams.
gPRC over websockets has no such limitations so allows us to harness the full power of a remote IPFS node in the browser without the need to work around browser behaviour.
$ npm install ipfs-grpc-client
createClient([options])
None
An optional object which may have the following keys:
Name | Type | Default | Description |
---|---|---|---|
url | Multiaddr or string or URL | undefined | The address of a ipfs-grpc-server to connect to |
agent | http.Agent | undefined | A http.Agent used to control HTTP client behaviour (node.js only) |
Type | Description |
---|---|
object | An instance of the client |
const createClient = require('ipfs-gprc-client')
const client = createClient({
url: '/ipv4/127.0.0.1/tcp/1234/ws'
})
const id = await client.id()
FAQs
A client library for the IPFS gRPC API
The npm package ipfs-grpc-client receives a total of 210 weekly downloads. As such, ipfs-grpc-client popularity was classified as not popular.
We found that ipfs-grpc-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.