{"id":20622468,"url":"https://github.com/codewithmirza/c2wasm","last_synced_at":"2026-05-05T17:32:56.271Z","repository":{"id":254061791,"uuid":"774413258","full_name":"codewithmirza/c2wasm","owner":"codewithmirza","description":"Compiling some C code to Wasm(WebAssembly), then calling it from a web app.","archived":false,"fork":false,"pushed_at":"2024-04-02T19:49:56.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-30T19:47:14.524Z","etag":null,"topics":["c","wasm","web"],"latest_commit_sha":null,"homepage":"https://codewithmirza.github.io/c2wasm/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codewithmirza.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":"2024-03-19T14:05:24.000Z","updated_at":"2024-08-21T04:57:15.000Z","dependencies_parsed_at":"2024-08-21T07:05:25.178Z","dependency_job_id":null,"html_url":"https://github.com/codewithmirza/c2wasm","commit_stats":null,"previous_names":["codewithmirza/c2wasm"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codewithmirza/c2wasm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithmirza%2Fc2wasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithmirza%2Fc2wasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithmirza%2Fc2wasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithmirza%2Fc2wasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codewithmirza","download_url":"https://codeload.github.com/codewithmirza/c2wasm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithmirza%2Fc2wasm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32660314,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["c","wasm","web"],"created_at":"2024-11-16T12:23:00.211Z","updated_at":"2026-05-05T17:32:56.255Z","avatar_url":"https://github.com/codewithmirza.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WebAssembly Function Call Example\n\nThis is a simple project demonstrating how to compile a C function to WebAssembly (WASM) using Emscripten and call it from a web application.\n\n## Project Structure\n\n- **functions.c**: Contains a simple C function to add two numbers.\n- **index.html**: HTML file for the web application.\n- **script.js**: JavaScript file to load and call the WebAssembly module.\n- **styles.css**: For styling the web application.\n- **functions.wasm**: Compiled WebAssembly module generated from `functions.c`.\n- **README.md**: Documentation for the project.\n\n## Steps to Run\n\n1. **Compile C Function to WebAssembly**:\n   - Use Emscripten to compile `functions.c` to WebAssembly:\n     ```\n     emcc functions.c -o functions.wasm\"\n     ```\n\n2. **Access the Web Application**:\n   - Open the GitHub Pages website connected to this repository [here](https://codewithmirza.github.io/c2wasm/).\n\n## Usage\n- Enter two numbers in the input fields and click the \"Add\" button to see the result.\n\n## Additional Notes\n- Experiment with different C functions and compile them to WebAssembly for use in web applications.\n- Explore more advanced features and optimizations offered by Emscripten for WebAssembly development.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithmirza%2Fc2wasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodewithmirza%2Fc2wasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithmirza%2Fc2wasm/lists"}