0.13.1 • Published 11 months ago

ipfs-grpc-client v0.13.1

Weekly downloads
258
License
Apache-2.0 OR MIT
Repository
github
Last release
11 months ago

⛔️ DEPRECATED: js-IPFS has been superseded by Helia

📚 Learn more about this deprecation or how to migrate

⚠️ If you continue using this repo, please note that security fixes will not be provided

ipfs-grpc-client

ipfs.tech Discuss codecov CI

A client library for the IPFS gRPC API

Table of contents

Install

$ npm i ipfs-grpc-client

Browser <script> tag

Loading this module through a script tag will make it's exports available as IpfsGrpcClient in the global namespace.

<script src="https://unpkg.com/ipfs-grpc-client/dist/index.min.js"></script>

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.

Why?

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.

API

create([options])

Parameters

None

Options

An optional object which may have the following keys:

NameTypeDefaultDescription
urlMultiaddr or string or URLundefinedThe address of a ipfs-grpc-server to connect to
agenthttp.AgentundefinedA http.Agent used to control HTTP client behaviour (node.js only)

Returns

TypeDescription
objectAn instance of the client

Example

import { create } from 'ipfs-gprc-client'

const client = create({
  url: '/ipv4/127.0.0.1/tcp/1234/ws'
})

const id = await client.id()

License

Licensed under either of

Contribute

Contributions welcome! Please check out the issues.

Also see our contributing document for more information on how we work, and about contributing in general.

Please be aware that all interactions related to this repo are subject to the IPFS Code of Conduct.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

npm.io

0.13.0-6d95ce08

11 months ago

0.13.1

11 months ago

0.13.0-e64813f6

11 months ago

0.13.0-4694e806

11 months ago

0.13.0-7b79c1b8

11 months ago

0.12.0-d1c3abb3

1 year ago

0.13.0-ab02e8f8

1 year ago

0.12.0-789ee585

1 year ago

0.13.0

1 year ago

0.13.0-6eeb1be5

1 year ago

0.13.0-b64d4af0

1 year ago

0.12.0-fa578bac

1 year ago

0.13.0-3bcabe38

1 year ago

0.12.0-4b4c124c

1 year ago

0.12.0-5f73ecad

1 year ago

0.12.0

2 years ago

0.11.0

2 years ago

0.11.1

2 years ago

0.9.5-7165bf71.0

2 years ago

0.10.1

2 years ago

0.10.2

2 years ago

0.9.5-4e93dd5d.0

2 years ago

0.10.0

2 years ago

0.9.5-919b27a8.0

2 years ago

0.9.4

2 years ago

0.9.4-8f7ce23c.0

2 years ago

0.9.4-e90b8f13.0

2 years ago

0.9.3

2 years ago

0.9.3-df1bd1bb.0

2 years ago

0.9.3-125d42ba.0

2 years ago

0.9.2-2c8ec080.0

2 years ago

0.9.1-rc.0

2 years ago

0.9.1-rc.1

2 years ago

0.9.1-rc.2

2 years ago

0.9.1-rc.3

2 years ago

0.9.1-rc.4

2 years ago

0.9.1-rc.5

2 years ago

0.8.3-rc.6

2 years ago

0.8.3-rc.5

2 years ago

0.8.3-rc.4

2 years ago

0.8.3-rc.3

2 years ago

0.8.3-rc.2

2 years ago

0.8.3-rc.1

2 years ago

0.8.3-rc.9

2 years ago

0.9.3-1082fce9.0

2 years ago

0.8.3-rc.8

2 years ago

0.8.3-rc.7

2 years ago

0.9.2-383dc07d.0

2 years ago

0.9.1-6cb3a87e.0

2 years ago

0.9.1-cca6e321.0

2 years ago

0.9.2-3a74c110.0

2 years ago

0.8.3-rc.11

2 years ago

0.8.3-rc.10

2 years ago

0.8.3-rc.13

2 years ago

0.8.3-rc.12

2 years ago

0.9.2-709831f6.0

2 years ago

0.9.1-5439a0e.0

2 years ago

0.9.2-8d260215.0

2 years ago

0.9.2-2afef2eb.0

2 years ago

0.9.0

2 years ago

0.9.2

2 years ago

0.9.1

2 years ago

0.9.2-3a5d61d4.0

2 years ago

0.9.1-a6b201af.0

2 years ago

0.9.1-fbe14923.0

2 years ago

0.8.3-rc.0

2 years ago

0.7.2-rc.6

2 years ago

0.7.2-rc.5

2 years ago

0.8.1-rc.0

2 years ago

0.8.1-rc.1

2 years ago

0.8.1

2 years ago

0.8.0

2 years ago

0.8.2

2 years ago

0.8.2-rc.2

2 years ago

0.8.2-rc.3

2 years ago

0.8.2-rc.0

2 years ago

0.8.2-rc.1

2 years ago

0.7.2-rc.4

3 years ago

0.7.2-rc.3

3 years ago

0.7.2-rc.2

3 years ago

0.7.2-rc.1

3 years ago

0.7.2-rc.0

3 years ago

0.7.1

3 years ago

0.7.1-rc.5

3 years ago

0.7.1-rc.3

3 years ago

0.7.1-rc.2

3 years ago

0.7.1-rc.1

3 years ago

0.7.0

3 years ago

0.6.6-rc.18

3 years ago

0.6.6-rc.17

3 years ago

0.7.1-rc.0

3 years ago

0.6.6-rc.16

3 years ago

0.6.6-rc.15

3 years ago

0.6.6-rc.14

3 years ago

0.6.6-rc.13

3 years ago

0.6.6-rc.12

3 years ago

0.6.6-rc.1

3 years ago

0.6.4-rc.11

3 years ago

0.6.6-rc.0

3 years ago

0.6.5-rc.0

3 years ago

0.6.5

3 years ago

0.6.4

3 years ago

0.6.4-rc.8

3 years ago

0.6.4-rc.5

3 years ago

0.6.4-rc.4

3 years ago

0.6.4-rc.2

3 years ago

0.6.4-rc.1

3 years ago

0.6.3-rc.7

3 years ago

0.6.3-rc.8

3 years ago

0.6.3

3 years ago

0.6.3-rc.6

3 years ago

0.6.3-rc.5

3 years ago

0.6.3-rc.3

3 years ago

0.6.3-rc.4

3 years ago

0.6.3-rc.2

3 years ago

0.6.2-rc.4

3 years ago

0.6.2-rc.3

3 years ago

0.6.2

3 years ago

0.5.1-rc.7

3 years ago

0.5.1-rc.9

3 years ago

0.5.1-rc.10

3 years ago

0.6.2-rc.1

3 years ago

0.6.1-rc.1

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.5.1-rc.6

3 years ago

0.5.1-rc.5

3 years ago

0.5.1-rc.4

3 years ago

0.5.0

3 years ago

0.4.2-rc.11

3 years ago

0.4.2-rc.8

3 years ago

0.4.2-rc.10

3 years ago

0.4.2-rc.6

3 years ago

0.4.2-rc.3

3 years ago

0.4.2-rc.2

3 years ago

0.4.2-rc.1

3 years ago

0.4.1-rc.7

3 years ago

0.4.1

3 years ago

0.4.1-rc.5

3 years ago

0.4.1-rc.1

3 years ago

0.4.1-rc.2

3 years ago

0.3.4-rc.8

3 years ago

0.3.4-rc.9

3 years ago

0.3.4-rc.17

3 years ago

0.3.4-rc.11

3 years ago

0.4.0

3 years ago

0.3.4-rc.14

3 years ago

0.3.4-rc.6

3 years ago

0.3.4-rc.3

3 years ago

0.3.4-rc.2

3 years ago

0.3.4-rc.1

3 years ago

0.3.3

3 years ago

0.3.3-rc.3

3 years ago

0.3.3-rc.4

3 years ago

0.3.3-rc.2

3 years ago

0.3.1-rc.7

3 years ago

0.3.3-rc.1

3 years ago

0.3.1-rc.11

3 years ago

0.3.2-rc.3

3 years ago

0.3.2-rc.4

3 years ago

0.3.2-rc.1

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.2.5-rc.14

3 years ago

0.2.5-rc.11

3 years ago

0.2.5-rc.32

3 years ago

0.2.5-rc.31

3 years ago

0.2.5-rc.30

3 years ago

0.3.1-rc.6

3 years ago

0.3.1-rc.5

3 years ago

0.3.1-rc.1

3 years ago

0.2.5-rc.19

3 years ago

0.2.5-rc.18

3 years ago

0.2.5-rc.17

3 years ago

0.2.5-rc.26

3 years ago

0.2.5-rc.25

3 years ago

0.2.5-rc.24

3 years ago

0.2.5-rc.22

3 years ago

0.2.5-rc.21

3 years ago

0.2.5-rc.20

3 years ago

0.3.0

3 years ago

0.2.5-rc.29

3 years ago

0.2.5

3 years ago

0.2.5-rc.28

3 years ago

0.2.5-rc.27

3 years ago

0.2.5-rc.3

3 years ago

0.2.3

3 years ago

0.2.4

3 years ago

0.2.3-rc.5

3 years ago

0.2.3-rc.4

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.3-rc.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.1-rc.5959

3 years ago

0.0.1-rc.5958

3 years ago

0.0.1-rc.5957

3 years ago

0.0.0

3 years ago