2.1.2 • Published 6 months ago

@helia/http v2.1.2

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

@helia/http

ipfs.tech Discuss codecov CI

A lightweight implementation of IPFS over HTTP in JavaScript

About

Exports a createHeliaHTTP function that returns an object that implements a lightweight version of the Helia API that functions only over HTTP.

By default, content and peer routing are requests are resolved using the Delegated HTTP Routing API and blocks are fetched from Trustless Gateways.

Pass it to other modules like @helia/unixfs to fetch files from the distributed web.

Example

import { createHeliaHTTP } from '@helia/http'
import { unixfs } from '@helia/unixfs'
import { CID } from 'multiformats/cid'

const helia = await createHeliaHTTP()

const fs = unixfs(helia)
fs.cat(CID.parse('bafyFoo'))

Example - with custom gateways and delegated routing endpoints

import { createHeliaHTTP } from '@helia/http'
import { trustlessGateway } from '@helia/block-brokers'
import { delegatedHTTPRouting, httpGatewayRouting } from '@helia/routers'
import { unixfs } from '@helia/unixfs'
import { CID } from 'multiformats/cid'

const helia = await createHeliaHTTP({
  blockBrokers: [
    trustlessGateway()
  ],
  routers: [
    delegatedHTTPRouting('https://delegated-ipfs.dev'),
    httpGatewayRouting({
      gateways: ['https://cloudflare-ipfs.com', 'https://ipfs.io']
    })
  ]
})

const fs = unixfs(helia)
fs.cat(CID.parse('bafyFoo'))

Install

$ npm i @helia/http

Browser <script> tag

Loading this module through a script tag will make its exports available as HeliaHttp in the global namespace.

<script src="https://unpkg.com/@helia/http/dist/index.min.js"></script>

Helia-http

API Docs

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

2.0.3-2666d64

11 months ago

2.1.2-99025383

7 months ago

2.0.2-5784ceb

11 months ago

2.1.1-33dbeed

7 months ago

2.0.4-d602bb2

10 months ago

2.0.1-e58e49c

1 year ago

2.0.2-22c1beb

11 months ago

2.0.2-3d1ce0b

1 year ago

2.0.4-70b8fa9

9 months ago

2.0.4-15de32f

9 months ago

2.0.2-e45e1de

11 months ago

2.0.2-07e0bc0

1 year ago

2.1.1-88cc129

7 months ago

2.1.2-28a70912

6 months ago

2.0.1-aecac3d

1 year ago

2.1.1-d5e8799

7 months ago

2.0.4-eaf789a

10 months ago

2.0.4-45ca6bc

10 months ago

2.0.2-6a9fd94

1 year ago

2.1.1-a4dfe0b

7 months ago

2.0.5-325b36f

9 months ago

2.1.2-50a97662

7 months ago

2.0.5-ae67092

8 months ago

2.0.2-075b6ca

1 year ago

2.1.2

7 months ago

2.1.1

7 months ago

2.0.4-afa9a1a

9 months ago

2.0.4-ac7185a

10 months ago

2.0.1-f7b5d3f

1 year ago

2.0.5-c0bf36e

9 months ago

2.1.0

7 months ago

2.0.4-deb9165

10 months ago

2.0.3-f7155d8

10 months ago

2.1.1-e3522f5

7 months ago

2.0.2-87aa9b4

11 months ago

2.0.3

11 months ago

2.0.2

1 year ago

2.0.5

9 months ago

2.0.4

10 months ago

2.1.1-60fbbc2

7 months ago

2.0.2-a7aebd5

11 months ago

2.0.5-9591175

7 months ago

2.0.4-99bb059

10 months ago

2.0.3-c015793

10 months ago

2.0.2-73121c2

1 year ago

2.0.5-bb2ab74

8 months ago

2.0.2-1c8583c

11 months ago

2.0.5-cd1eb58

7 months ago

2.0.4-91880b0

9 months ago

2.1.0-d43efc7

7 months ago

2.0.4-2c7185c

10 months ago

2.0.1-1aa6c8d

1 year ago

2.0.4-ad081b2

9 months ago

2.0.3-12df657

11 months ago

2.0.2-4710c65

1 year ago

2.1.2-7a52e951

7 months ago

2.0.4-73cb631

9 months ago

2.0.5-daaa511

8 months ago

2.0.3-c7024de

11 months ago

2.0.4-375796a

10 months ago

2.0.3-6542cf2

11 months ago

2.0.5-3d77369

7 months ago

2.0.1-c09fef2

1 year ago

2.1.1-d78f91b

7 months ago

2.0.4-e6339ed

9 months ago

2.0.5-313e2c1

8 months ago

2.1.2-41bcc88d

7 months ago

2.0.5-d883eaf

8 months ago

2.0.1-dff82ec

1 year ago

2.0.0-0238ed4

1 year ago

2.0.0-8364296

1 year ago

2.0.1

1 year ago

2.0.0-efc47fa

1 year ago

2.0.0-693c82d

1 year ago

2.0.0-23ebae1

1 year ago

2.0.0-460853f

1 year ago

2.0.0-1b2934b

1 year ago

1.0.11-bc64f47

1 year ago

2.0.0

1 year ago

1.0.11-60d8c8a

1 year ago

1.0.11-efdefc1

1 year ago

1.0.11-2f88fc8

1 year ago

1.0.11-c04dbf5

1 year ago

1.0.9-461d219

1 year ago

1.0.9-5643b1d

1 year ago

1.0.11-ec8bf66

1 year ago

1.0.9-e6bca0b

1 year ago

1.0.11-4f14996

1 year ago

1.0.10-acd876b

1 year ago

1.0.9-b4877b5

1 year ago

1.0.9-3577d3d

1 year ago

1.0.9-f16c9ea

1 year ago

1.0.11-f5a03fc

1 year ago

1.0.11-3bf5ab0

1 year ago

1.0.10-ac4bdb8

1 year ago

1.0.9-6952f05

1 year ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.10-c9c644c

1 year ago

1.0.9-117198f

1 year ago

1.0.9-155e24d

1 year ago

1.0.11-5ff6998

1 year ago

1.0.9-5fab3a3

1 year ago

1.0.8-21ef20c

2 years ago

1.0.11-8805202

1 year ago

1.0.9-74ccc92

1 year ago

1.0.11-9de08ef

1 year ago

1.0.8-011fa92

2 years ago

1.0.11-23e62e1

1 year ago

1.0.10-e567717

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9-62f77df

1 year ago

1.0.7-f46700f

2 years ago

1.0.7-e6b976a

2 years ago

1.0.7

2 years ago

1.0.6-9fa2427

2 years ago

1.0.6-a8fdfc2

2 years ago

1.0.6-55b9650

2 years ago

1.0.6

2 years ago

1.0.5-b0d50e9

2 years ago

1.0.5-7419dfc

2 years ago

1.0.5-fa9bd4b

2 years ago

1.0.5-36081e0

2 years ago

1.0.5-6a62d1c

2 years ago

1.0.5-2d070b9

2 years ago

1.0.5-361fbd3

2 years ago

1.0.5-e4e67d0

2 years ago

1.0.5-f6bcbd4

2 years ago

1.0.5-0a528bb

2 years ago

1.0.5-f7f71bb

2 years ago

1.0.5-0ecb529

2 years ago

1.0.5-5e98950

2 years ago

1.0.5-52dbcf2

2 years ago

1.0.5

2 years ago

1.0.4-5d62dfb

2 years ago

1.0.4-59de059

2 years ago

1.0.4-338885f

2 years ago

1.0.4

2 years ago

1.0.3-9c8a2c0

2 years ago

1.0.3-5323724

2 years ago

1.0.3-9ea934e

2 years ago

1.0.3-395cd9e

2 years ago

1.0.3-b67ac5f

2 years ago

1.0.3-7cd012a

2 years ago

1.0.3-532d6c4

2 years ago

1.0.3-ba4b7ba

2 years ago

1.0.3-b1c761d

2 years ago

1.0.3-5cf216b

2 years ago

1.0.3-329652a

2 years ago

1.0.3-1561e4a

2 years ago

1.0.3-6ddefb0

2 years ago

1.0.3-e582c63

2 years ago

1.0.3-9ac5909

2 years ago

1.0.3-d1c497b

2 years ago

1.0.3-b6765fe

2 years ago

1.0.3

2 years ago

1.0.3-ecf5394

2 years ago

1.0.2-2c71b6e

2 years ago

1.0.2-adc5589

2 years ago

1.0.2-a0d651c

2 years ago

1.0.2-a64e5de

2 years ago

1.0.2-8c9bb7d

2 years ago

1.0.2-c69913c

2 years ago

1.0.2-90c6feb

2 years ago

1.0.2

2 years ago

1.0.1-77e34fc

2 years ago

1.0.1-917a1bc

2 years ago

1.0.1-c3f2ed1

2 years ago

1.0.1-1319c61

2 years ago

1.0.1-6f8c15b

2 years ago

1.0.1-1ee6a4a

2 years ago

1.0.1-28d62f7

2 years ago

1.0.1-dc2e7a6

2 years ago

1.0.1-2d965be

2 years ago

1.0.1-7c07e11

2 years ago

1.0.1-7c3ce21

2 years ago

1.0.1-a04e041

2 years ago

1.0.1-754c7af

2 years ago

1.0.1-8db7792

2 years ago

1.0.1-31cdfa8

2 years ago

1.0.1-75d0a5b

2 years ago

1.0.1-9b1ddf8

2 years ago

1.0.1-7a7c0c1

2 years ago

1.0.1-3283a5c

2 years ago

1.0.1-f58d467

2 years ago

1.0.1-3851fe2

2 years ago

1.0.1-5c0c39c

2 years ago

1.0.1-6c88ee1

2 years ago

1.0.1-8a5bc6f

2 years ago

1.0.1-f243de2

2 years ago

1.0.0-ca8d5eb

2 years ago

1.0.1

2 years ago

1.0.0-94b0cd1

2 years ago

1.0.0-44f4e88

2 years ago

1.0.0-e554493

2 years ago

1.0.0

2 years ago

0.9.0-99c94f4

2 years ago

0.9.0-4836d52

2 years ago

0.9.0-4943c5b

2 years ago

0.9.0-19bf9ce

2 years ago

0.9.0-f2853f8

2 years ago

0.9.0-db7d091

2 years ago

0.9.0-031519c

2 years ago

0.9.0-5a87bbd

2 years ago

0.9.0-163df38

2 years ago

0.9.0-76220cd

2 years ago

0.9.0-843fba4

2 years ago

0.9.0-3477b27

2 years ago

0.9.0-ce74026

2 years ago

0.9.0-a966706

2 years ago

0.9.0-a2229bd

2 years ago

0.9.0

2 years ago