{"id":15130082,"url":"https://github.com/etherdream/web2img","last_synced_at":"2025-05-16T11:02:27.636Z","repository":{"id":39364476,"uuid":"403265943","full_name":"EtherDream/web2img","owner":"EtherDream","description":"Bundle web files into a single image","archived":false,"fork":false,"pushed_at":"2023-07-31T10:37:06.000Z","size":177,"stargazers_count":1277,"open_issues_count":2,"forks_count":53,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-05-16T11:01:47.275Z","etag":null,"topics":["bundle","cdn","imagehosting","serviceworker","web"],"latest_commit_sha":null,"homepage":"https://etherdream.github.io/web2img/","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/EtherDream.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":"2021-09-05T09:24:44.000Z","updated_at":"2025-05-12T11:48:24.000Z","dependencies_parsed_at":"2024-10-29T18:23:32.498Z","dependency_job_id":null,"html_url":"https://github.com/EtherDream/web2img","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/EtherDream%2Fweb2img","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EtherDream%2Fweb2img/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EtherDream%2Fweb2img/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EtherDream%2Fweb2img/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EtherDream","download_url":"https://codeload.github.com/EtherDream/web2img/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254518383,"owners_count":22084374,"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":["bundle","cdn","imagehosting","serviceworker","web"],"created_at":"2024-09-26T02:29:18.197Z","updated_at":"2025-05-16T11:02:27.582Z","avatar_url":"https://github.com/EtherDream.png","language":"JavaScript","readme":"# Web2Img\n\nWeb2Img is a tool to bundle your web files into a single image, and extract them via Service Worker at runtime.\n\nYou can use image hosting sites as free CDNs to save bandwidth costs.\n\n![intro.png](assets/img/intro.png)\n\n## Tool\n\nTry It Online: https://etherdream.github.io/web2img/\n\nOR: https://etherdream.com/web2img/ (latest)\n\nhttps://user-images.githubusercontent.com/1072787/132183995-b342c3a8-1408-4819-923e-2d25fde419be.mp4\n\n\n## Example\n\nDemo: [https://fanhtml5.github.io](https://fanhtml5.github.io)\n\nTarget Files: https://github.com/fanhtml5/fanhtml5.github.io (only 2 files)\n\nSource Files: https://github.com/fanhtml5/test-site\n\n## FAQ\n\nQ: What if JavaScript is disabled?\n\nA: Unfortunately, the page can't be displayed. You can add a fallback in `404.html` such as:\n\n```html\n\u003cnoscript\u003e\n  \u003cmeta http-equiv=Refresh content=\"0;url=FALLBACK_URL\"\u003e\n\u003c/noscript\u003e\n\u003cscript src=/x.js\u003e\u003c/script\u003e\n```\n\n----\n\nQ: What if the browser doesn't support Service Worker?\n\nA: Same as above. The program will read the contents of `\u003cnoscript\u003e` and render them.\n\n----\n\nQ: Is free CDN safe?\n\nA: Yes, the program will verify the data integrity.\n\n----\n\nQ: Is free CDN stable?\n\nA: Not sure, but you can provide multiple URLs to improve stability.\n\n----\n\nQ: Can any free CDN be used?\n\nA: No, CDN must enable CORS, allow empty referrer and \"null\" origin (or real value).\n\n----\n\nQ: Would it be better to optimize the image before uploading?\n\nA: If the server will re-encode the image, it makes no difference.\n\n----\n\nQ: Why use `404.html`?\n\nA: It's an easy way to intercept any path.\n\n----\n\nQ: How to update files?\n\nA: Just overwrite `x.js`, the client polls this file every 2 minutes.\n\n----\n\nQ: Will new features be added?\n\nA: This project is just an experiment, there is a new project named [freecdn](https://github.com/EtherDream/freecdn) which is much more powerful. (better docs will be released soon)\n\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fetherdream%2Fweb2img","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fetherdream%2Fweb2img","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fetherdream%2Fweb2img/lists"}