{"id":17990700,"url":"https://github.com/oluceps/c2wib","last_synced_at":"2025-04-04T03:44:30.603Z","repository":{"id":185449501,"uuid":"673489855","full_name":"oluceps/c2wib","owner":"oluceps","description":"Compile bpf program to WebAssembly in browser with clang wasm bin","archived":false,"fork":false,"pushed_at":"2023-08-02T04:37:55.000Z","size":7526,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T08:45:56.611Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/oluceps.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":"2023-08-01T18:38:33.000Z","updated_at":"2025-01-29T02:17:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"c5581afe-33a9-4918-afba-740cc1c3b78f","html_url":"https://github.com/oluceps/c2wib","commit_stats":null,"previous_names":["oluceps/c2wib"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oluceps%2Fc2wib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oluceps%2Fc2wib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oluceps%2Fc2wib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oluceps%2Fc2wib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oluceps","download_url":"https://codeload.github.com/oluceps/c2wib/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247117746,"owners_count":20886439,"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":[],"created_at":"2024-10-29T19:18:50.956Z","updated_at":"2025-04-04T03:44:30.588Z","avatar_url":"https://github.com/oluceps.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Compile to wasm in browser\n\nThis project based on [emception](https://github.com/jprendes/emception/tree/master), [emscripten](https://emscripten.org) and [LLVM](https://llvm.org/).\n\n\n\n\n\nhttps://github.com/oluceps/c2wib/assets/35628088/00352953-104c-4a26-97d5-5e28b84db54d\n\n\n\n\n\n# Demo\n\nhttps://demo.nyaw.xyz\n\nUpload [example](./examples/bootstrap) and try compile in the browser.\n\n\nTested with:\n\nMozilla Firefox 115.0.2  \nChromium 115.0.5790.110\n\n# Build\n\n```console\n$ ./build.sh\n$ pnpm build\n```\n\n## build with docker\n```\n$  docker buildx build . -t ctwib_build\n$  docker run \\\n    -it --rm \\\n    -v /var/run/docker.sock:/var/run/docker.sock \\\n    -v $(pwd):$(pwd) \\\n    -v $(pwd)/emception/build/emsdk_cache:/emception/emsdk/upstream/emscripten/cache \\\n    -u $(id -u):$(id -g) \\\n    $(id -G | tr ' ' '\\n' | xargs -I{} echo --group-add {}) \\\n    ctwib_build:latest \\\n    bash -c \"pushd $(pwd)/emception \u0026\u0026 ./build.sh \u0026\u0026 popd \u0026\u0026 pnpm build\"\n```\n\n# Serve\n```console\n$ pnpm dev\n```\n\n# License\n[MIT](./LICENSE) © 2023 eunomia-bpf \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foluceps%2Fc2wib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foluceps%2Fc2wib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foluceps%2Fc2wib/lists"}