-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to install helia-http-gateway
using NPM
#117
Comments
@bludnic we haven't targeted releasing this as an npm package yet, but we will eventually =) right now we're focusing on making sure https://github.com/ipfs/helia-verified-fetch is solid and passing gateway conformance. once that is done, we will make it easier for folks to run this. Adin, Lidel, or Alex may have other thoughts? I've added this to our helia WG call for tomorrow. feel free to join! https://lu.ma/7uncn5aw |
Also, we may release this as |
I think at we should have the gateway compliance tests running and decent results in tiros before release. It doesn't feel too far off. But yes, |
We a building decentralized file transfer in ADAMANT Messenger. We plan to use IPFS with Helia and Node.js. It would be great if you could release the |
@bludnic this package is mostly just a small fastify wrapper on top of Do you mind talking a small bit more about how you will be using helia-http-gateway? |
One more thing: https://github.com/ipfs-shipyard/service-worker-gateway is pretty cool too (but also not installable via npm yet). we're still fleshing things out, but this would allow all the users of adamant-im to fetch content from the network directly, instead of having them all use a centralized gateway you host at some endpoint |
@SgtPooki We created a repo Adamant-im/ipfs-node based on The |
got it :) instead of standing up helia-http-gateway itself and wrapping only the if you convert the code at https://github.com/Adamant-im/ipfs-node/blob/e11b82353d0916ba5d29f1df63f291c2614858d0/src/index.js#L80-L92 to use we're actually targeting the gateway specs directly in verified-fetch, instead of this repo (but this gateway will then support them as well) You can see that we're constructing a verified-fetch instance with a custom helia node at helia-http-gateway/src/index.ts Lines 173 to 174 in b4531c0
and then basically just forwarding the fastify request directly to helia fetch in helia-http-gateway/src/helia-http-gateway.ts Lines 82 to 95 in b4531c0
const filePromise = await verifiedFech(`ipfs://${cid}`, {headers: req.headers}) // plus any query/format/accept support you want to add and benefit from all the spec compliance |
but, yes, for running a legit endpoint that supports /ipns and /ipfs and subdomains, using this library would help you out. If that's what you're looking to do, we can work on getting a v0.0.1 published when we feel it's generally usable with a warning :) |
Seems that the app is not yet published on NPM, so
npm i helia-http-gateway
fails.https://www.npmjs.com/search?q=helia-http-gateway
The Docker installation though works but it doesn't fit my needs. Is there a way to install the package as NPM dependency? What do you suggest?
The text was updated successfully, but these errors were encountered: