{"id":19952945,"url":"https://github.com/ethersphere/swarm-url-rewriter","last_synced_at":"2026-06-08T04:32:40.837Z","repository":{"id":78861806,"uuid":"114641012","full_name":"ethersphere/swarm-url-rewriter","owner":"ethersphere","description":"With the swarm-url-rewrite JS snippet you can rewrite bzz:// urls to http:// url using a gateway.","archived":false,"fork":false,"pushed_at":"2017-12-19T15:26:53.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-08T18:50:41.099Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ethersphere.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-18T12:55:39.000Z","updated_at":"2017-12-18T13:04:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"a46d68a1-1e1f-4edd-b4f5-e89c361bc8d3","html_url":"https://github.com/ethersphere/swarm-url-rewriter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ethersphere/swarm-url-rewriter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethersphere%2Fswarm-url-rewriter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethersphere%2Fswarm-url-rewriter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethersphere%2Fswarm-url-rewriter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethersphere%2Fswarm-url-rewriter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ethersphere","download_url":"https://codeload.github.com/ethersphere/swarm-url-rewriter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethersphere%2Fswarm-url-rewriter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34048681,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-13T01:14:51.167Z","updated_at":"2026-06-08T04:32:40.822Z","avatar_url":"https://github.com/ethersphere.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# swarm-url-rewriter\n\nEthereum Swarm uses `bzz://` urls, which are not supported by the browsers out there.\nHowever, it is still recommended to use `bzz://` links to Swarm pages. To make these `bzz://` links work in the current browser environment, you can use this small JS snippet to rewrite the links in the page to domain relative path links (`/bzz:/`), which will work well if the actual page is accessed through a swarm gateway.\nBecause the script rewrites the urls only when the user clicks on them, it works well with complex dynamic web apps and not just with static htmls.\n\n**Limitation**: The script only rewrites html anchor hrefs, so buttons or other components which navigate away on mouse clicks are not affected.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethersphere%2Fswarm-url-rewriter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fethersphere%2Fswarm-url-rewriter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethersphere%2Fswarm-url-rewriter/lists"}