• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

linonetwo/ipfs-browser-gateway: An IPFS gateway without server, by utilizing ser ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

linonetwo/ipfs-browser-gateway

开源软件地址:

https://github.com/linonetwo/ipfs-browser-gateway

开源编程语言:

JavaScript 97.3%

开源软件介绍:

ipfs-browser-gateway

Given an IPFS multihash, print the content and try to render web page if the content is HTML.

Notice that currently deployed version in gh-page have problem loading website served with IFPS, it will only load files, videos and images.

Latest refactor is happened in exxhentai/rehentai-frontend, it will be merged here after being stabilized.

Development

This is a "create-react-app" app, so in local development just:

npm i && npm start

Deployment

To deploy this gateway by your self, replace all http://onetwo.ren/ipfs-browser-gateway/ in this repo with your own website.

You can fork it and deploy it via gh-pages: npm run deploy, or deploy it use now.

Drawback

  1. The first visit to a webpage hosted in IPFS is way slower than traditional HTTP page. Though server side gateway http://ipfs.io/ipfs is slow too. (but in next version you can add a peer, thus directly connect to it)
  2. Can't promise long-term cache, compared to a gateway running on a server, who can pin a file for a longer time.
  3. Don't work with AJAX likes fetch API, see my comment in ipfs/public-gateway-checker.
  4. May break service worker inside page delivered by ipfs (untested).

Road Map

  • Refactor
  • Cache

Reference




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap