{"id":13545759,"url":"https://github.com/mdn/webassembly-examples","last_synced_at":"2025-05-14T16:13:23.543Z","repository":{"id":39611621,"uuid":"82829077","full_name":"mdn/webassembly-examples","owner":"mdn","description":"Code examples that accompany the MDN WebAssembly documentation — see https://developer.mozilla.org/en-US/docs/WebAssembly. ","archived":false,"fork":false,"pushed_at":"2024-10-18T14:41:08.000Z","size":460,"stargazers_count":1129,"open_issues_count":1,"forks_count":258,"subscribers_count":52,"default_branch":"main","last_synced_at":"2024-10-30T06:54:55.238Z","etag":null,"topics":["examples","wasm","webassembly"],"latest_commit_sha":null,"homepage":"","language":"WebAssembly","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mdn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2017-02-22T16:49:20.000Z","updated_at":"2024-10-25T08:14:54.000Z","dependencies_parsed_at":"2024-04-15T10:47:41.954Z","dependency_job_id":"dffb632f-bd02-4bfd-a6c8-2cb205bf3ce6","html_url":"https://github.com/mdn/webassembly-examples","commit_stats":{"total_commits":119,"total_committers":16,"mean_commits":7.4375,"dds":0.4957983193277311,"last_synced_commit":"7e4038f2891f89c0c01cf8f4e495ae7caffb5e0b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdn%2Fwebassembly-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdn%2Fwebassembly-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdn%2Fwebassembly-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdn%2Fwebassembly-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdn","download_url":"https://codeload.github.com/mdn/webassembly-examples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248631670,"owners_count":21136554,"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":["examples","wasm","webassembly"],"created_at":"2024-08-01T11:01:14.984Z","updated_at":"2025-04-12T20:39:28.900Z","avatar_url":"https://github.com/mdn.png","language":"WebAssembly","funding_links":[],"categories":["Examples","Uncategorized","WebAssembly","性能与案例"],"sub_categories":["Kits","Uncategorized","经典示例项目"],"readme":"# webassembly-examples\n\nCode examples that accompany the MDN WebAssembly documentation — see https://developer.mozilla.org/en-US/docs/WebAssembly.\n\n## Testing/modifying the examples\n\nThe examples can be tested locally by running a [local server](https://developer.mozilla.org/en-US/docs/Learn/Common_questions/Tools_and_setup/set_up_a_local_testing_server#using_python) to serve your directory of choice.\n\nIf you modify any `.wat` files for testing you will need to generate a corresponding `.wasm` file, replacing the existing version in the folder.\nFor most examples, this can be done using the `wat2wasm` tool, which is part of the [WABT: The WebAssembly Binary Toolkit](https://github.com/WebAssembly/wabt/) (for setup/usage see [Converting the text .wat into a binary .wasm file](https://developer.mozilla.org/en-US/docs/WebAssembly/Text_format_to_Wasm#converting_the_text_.wat_into_a_binary_.wasm_file) on MDN and the readme in the WABT GitHub repo.\n\nNote that some examples use features that are still considered optional.\nThese are listed in the [supported proposals](https://github.com/WebAssembly/wabt/#supported-proposals) section on the WABT README.md, along with the flags used to invoke them.\nFor example, to build WASM for the [multi-memory](https://github.com/mdn/webassembly-examples/blob/main/understanding-text-format/multi-memory.wat) example you will need to specify the `--enable-multi-memory` flag as shown:\n\n```sh\nwat2wasm --enable-multi-memory multi-memory.wat\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdn%2Fwebassembly-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdn%2Fwebassembly-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdn%2Fwebassembly-examples/lists"}