2.1.2 • Published 10 months ago

@helia/http v2.1.2

Weekly downloads
-
License
Apache-2.0 OR MIT
Repository
github
Last release
10 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

1 year ago

2.1.2-99025383

10 months ago

2.0.2-5784ceb

1 year ago

2.1.1-33dbeed

11 months ago

2.0.4-d602bb2

1 year ago

2.0.1-e58e49c

1 year ago

2.0.2-22c1beb

1 year ago

2.0.2-3d1ce0b

1 year ago

2.0.4-70b8fa9

1 year ago

2.0.4-15de32f

1 year ago

2.0.2-e45e1de

1 year ago

2.0.2-07e0bc0

1 year ago

2.1.1-88cc129

11 months ago

2.1.2-28a70912

10 months ago

2.0.1-aecac3d

1 year ago

2.1.1-d5e8799

11 months ago

2.0.4-eaf789a

1 year ago

2.0.4-45ca6bc

1 year ago

2.0.2-6a9fd94

1 year ago

2.1.1-a4dfe0b

11 months ago

2.0.5-325b36f

1 year ago

2.1.2-50a97662

10 months ago

2.0.5-ae67092

11 months ago

2.0.2-075b6ca

1 year ago

2.1.2

10 months ago

2.1.1

11 months ago

2.0.4-afa9a1a

1 year ago

2.0.4-ac7185a

1 year ago

2.0.1-f7b5d3f

1 year ago

2.0.5-c0bf36e

1 year ago

2.1.0

11 months ago

2.0.4-deb9165

1 year ago

2.0.3-f7155d8

1 year ago

2.1.1-e3522f5

11 months ago

2.0.2-87aa9b4

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.1.1-60fbbc2

11 months ago

2.0.2-a7aebd5

1 year ago

2.0.5-9591175

11 months ago

2.0.4-99bb059

1 year ago

2.0.3-c015793

1 year ago

2.0.2-73121c2

1 year ago

2.0.5-bb2ab74

11 months ago

2.0.2-1c8583c

1 year ago

2.0.5-cd1eb58

11 months ago

2.0.4-91880b0

1 year ago

2.1.0-d43efc7

11 months ago

2.0.4-2c7185c

1 year ago

2.0.1-1aa6c8d

1 year ago

2.0.4-ad081b2

1 year ago

2.0.3-12df657

1 year ago

2.0.2-4710c65

1 year ago

2.1.2-7a52e951

10 months ago

2.0.4-73cb631

1 year ago

2.0.5-daaa511

12 months ago

2.0.3-c7024de

1 year ago

2.0.4-375796a

1 year ago

2.0.3-6542cf2

1 year ago

2.0.5-3d77369

11 months ago

2.0.1-c09fef2

1 year ago

2.1.1-d78f91b

11 months ago

2.0.4-e6339ed

1 year ago

2.0.5-313e2c1

12 months ago

2.1.2-41bcc88d

10 months ago

2.0.5-d883eaf

12 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

2 years ago

1.0.9-5643b1d

2 years ago

1.0.11-ec8bf66

2 years ago

1.0.9-e6bca0b

2 years ago

1.0.11-4f14996

2 years ago

1.0.10-acd876b

2 years ago

1.0.9-b4877b5

2 years ago

1.0.9-3577d3d

2 years ago

1.0.9-f16c9ea

2 years ago

1.0.11-f5a03fc

2 years ago

1.0.11-3bf5ab0

2 years ago

1.0.10-ac4bdb8

2 years ago

1.0.9-6952f05

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.10-c9c644c

2 years ago

1.0.9-117198f

2 years ago

1.0.9-155e24d

2 years ago

1.0.11-5ff6998

2 years ago

1.0.9-5fab3a3

2 years ago

1.0.8-21ef20c

2 years ago

1.0.11-8805202

2 years ago

1.0.9-74ccc92

2 years ago

1.0.11-9de08ef

2 years ago

1.0.8-011fa92

2 years ago

1.0.11-23e62e1

2 years ago

1.0.10-e567717

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9-62f77df

2 years 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