{"id":23422762,"url":"https://github.com/linonetwo/ipfs-browser-gateway","last_synced_at":"2025-04-12T15:08:01.309Z","repository":{"id":112322790,"uuid":"125702503","full_name":"linonetwo/ipfs-browser-gateway","owner":"linonetwo","description":"An IPFS gateway without server, by utilizing service worker.","archived":false,"fork":false,"pushed_at":"2023-12-15T02:33:44.000Z","size":3988,"stargazers_count":34,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T15:07:57.052Z","etag":null,"topics":["ipfs","service-worker"],"latest_commit_sha":null,"homepage":"https://onetwo.ren/ipfs-browser-gateway/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/linonetwo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-03-18T07:35:17.000Z","updated_at":"2025-03-30T00:44:33.000Z","dependencies_parsed_at":"2023-05-12T20:45:43.246Z","dependency_job_id":null,"html_url":"https://github.com/linonetwo/ipfs-browser-gateway","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linonetwo%2Fipfs-browser-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linonetwo%2Fipfs-browser-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linonetwo%2Fipfs-browser-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linonetwo%2Fipfs-browser-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linonetwo","download_url":"https://codeload.github.com/linonetwo/ipfs-browser-gateway/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248586234,"owners_count":21128997,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ipfs","service-worker"],"created_at":"2024-12-23T03:09:50.802Z","updated_at":"2025-04-12T15:08:01.279Z","avatar_url":"https://github.com/linonetwo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ipfs-browser-gateway\n\nGiven an IPFS multihash, print the content and try to render web page if the content is HTML.\n\nNotice that currently deployed version in gh-page have problem loading website served with IFPS, it will only load files, videos and images.\n\nLatest refactor is happened in [exxhentai/rehentai-frontend](https://github.com/exxhentai/rehentai-frontend), it will be merged here after being stabilized.\n\n## Development\n\nThis is a \"create-react-app\" app, so in local development just:\n\n`npm i \u0026\u0026 npm start`\n\n## Deployment\n\nTo deploy this gateway by your self, replace all `http://onetwo.ren/ipfs-browser-gateway/` in this repo with your own website.\n\nYou can fork it and deploy it via gh-pages: `npm run deploy`, or deploy it use `now`.\n\n## Drawback\n\n1. 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)\n1. Can't promise long-term cache, compared to a gateway running on a server, who can pin a file for a longer time.\n1. Don't work with AJAX likes fetch API, see my comment in [ipfs/public-gateway-checker](https://github.com/ipfs/public-gateway-checker/pull/62).\n1. May break service worker inside page delivered by ipfs (untested).\n\n## Road Map\n\n- Refactor\n- Cache\n\n## Reference\n\n- [Discussion](https://github.com/ipfs/ipfs-service-worker/issues/11)\n- [Further Discussion](https://github.com/ipfs-shipyard/service-worker-gateway/pull/1)\n- [JS-IPFS-Gateway](https://github.com/ipfs/js-ipfs/tree/master/src/http/gateway)\n- [readable-stream in SW](https://developers.google.com/web/updates/2016/06/sw-readablestreams)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinonetwo%2Fipfs-browser-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinonetwo%2Fipfs-browser-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinonetwo%2Fipfs-browser-gateway/lists"}