{"id":15587828,"url":"https://github.com/beaglefoot/wasm-load-module-example","last_synced_at":"2025-07-05T01:37:29.932Z","repository":{"id":42876127,"uuid":"257094833","full_name":"Beaglefoot/wasm-load-module-example","owner":"Beaglefoot","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-26T13:28:39.000Z","size":33,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-06T17:46:49.695Z","etag":null,"topics":["docker","wasm","wasm-example"],"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/Beaglefoot.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}},"created_at":"2020-04-19T20:23:49.000Z","updated_at":"2020-04-20T10:15:51.000Z","dependencies_parsed_at":"2022-08-30T05:50:12.624Z","dependency_job_id":null,"html_url":"https://github.com/Beaglefoot/wasm-load-module-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Beaglefoot/wasm-load-module-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beaglefoot%2Fwasm-load-module-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beaglefoot%2Fwasm-load-module-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beaglefoot%2Fwasm-load-module-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beaglefoot%2Fwasm-load-module-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Beaglefoot","download_url":"https://codeload.github.com/Beaglefoot/wasm-load-module-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beaglefoot%2Fwasm-load-module-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263644383,"owners_count":23493906,"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":["docker","wasm","wasm-example"],"created_at":"2024-10-02T22:04:22.711Z","updated_at":"2025-07-05T01:37:29.914Z","avatar_url":"https://github.com/Beaglefoot.png","language":"JavaScript","readme":"# wasm-load-module-example\nNaive side by side performance comparison of unmemoized Fibonacci number calculations.\nServes to demonstrate how to compile C function to WebAssembly and call it from JS without emscripten runtime.\n\n## How to build \u0026 run\n1. `yarn install`\n2. `docker build -t wasm-load-module-example .`\n3. `docker cp $(docker run -d wasm-load-module-example):/usr/src/fib.wasm ./src/`\n4. `yarn start`\n\n## To find names of exported wasm functions\nGet inside docker container:\n```sh\ndocker run -it wasm-load-module-example bash\n```\n\nOnce inside check WAST:\n```sh\nroot@66cd9754dbf5:/usr/src# wasm-dis fib.wasm\n(module\n (type $0 (func (param i32) (result i32)))\n (type $1 (func (result i32)))\n (global $global$0 (mut i32) (i32.const 2752))\n (export \"_fibC\" (func $0))\n (export \"_main\" (func $1))\n (export \"stackAlloc\" (func $2))\n...\n```\n\n## Helpful reading\n[Compiling a New C/C++ Module to WebAssembly](https://developer.mozilla.org/en-US/docs/WebAssembly/C_to_wasm)\n\n[Using the WebAssembly JavaScript API](https://developer.mozilla.org/en-US/docs/WebAssembly/Using_the_JavaScript_API)\n\n[WebAssembly Standalone](https://github.com/emscripten-core/emscripten/wiki/WebAssembly-Standalone)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeaglefoot%2Fwasm-load-module-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeaglefoot%2Fwasm-load-module-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeaglefoot%2Fwasm-load-module-example/lists"}