{"id":17030339,"url":"https://github.com/vsoch/sifweb","last_synced_at":"2025-08-12T13:38:05.837Z","repository":{"id":141668000,"uuid":"210032779","full_name":"vsoch/sifweb","owner":"vsoch","description":"Testing loading a SIF into a browser using Web Assembly (under development)","archived":false,"fork":false,"pushed_at":"2019-09-22T15:34:43.000Z","size":3468,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T12:12:02.176Z","etag":null,"topics":["golang","sif","singularity","web-assembly"],"latest_commit_sha":null,"homepage":"https://vsoch.github.io/sifweb","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vsoch.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-21T18:13:54.000Z","updated_at":"2020-07-04T15:46:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"3dbdac72-96bd-47d9-9a82-057c1745c960","html_url":"https://github.com/vsoch/sifweb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vsoch/sifweb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsoch%2Fsifweb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsoch%2Fsifweb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsoch%2Fsifweb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsoch%2Fsifweb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vsoch","download_url":"https://codeload.github.com/vsoch/sifweb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsoch%2Fsifweb/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270069906,"owners_count":24521916,"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","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"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":["golang","sif","singularity","web-assembly"],"created_at":"2024-10-14T08:06:21.472Z","updated_at":"2025-08-12T13:38:05.792Z","avatar_url":"https://github.com/vsoch.png","language":"Go","readme":"# Sifweb\n\nThis is a proof of concept for reading a container binary directly into a browser\nusing GoLang and Web Assembly. Specifically, we load a SIF header and display it:\n\n![img/sifweb.png](img/sifweb.png)\n\nIt's a proof of concept because it works for small images. For large images we will need\nto modify the code to read up to a maximum location that the header might be found,\nor other tricks that can avoid reading all of the binary into the browser at once.\nFor now I'm very happy with this because I figured it out in under a day! :D\n\n## Usage\n\nIf you are [testing online](https://vsoch.github.io/sifweb) you should first pull a small container:\n\n```bash\n$ singularity pull docker://busybox\n# busybox_latest.sif\n```\n\nAnd upload it to the browser to show the header data. You can inspect the console\nto see other messages that are coming directly from GoLang.\n\n## Docker\n\nIf you want to test locally, you'll need GoLang version 1.13 or higher. The reason\nis because we use a function [CopyBytesToGo](https://tip.golang.org/pkg/syscall/js/#CopyBytesToGo)\nthat was just recently added. First, build the container. \n\n```bash\n$ docker build -t vanessa/sifweb .\n```\n\nIt will install [emscripten](https://emscripten.org/docs/getting_started/FAQ.html),\nadd the source code to the repository, and compile to wasm. You can then\nrun the container and expose port 80 to see the compiled interface:\n\n```bash\n$ docker run -it --rm -p 80:80 vanessa/sifweb \n``` \n\nThen you can proceed to upload your container.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvsoch%2Fsifweb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvsoch%2Fsifweb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvsoch%2Fsifweb/lists"}