{"id":29419856,"url":"https://github.com/bytecodealliance/wasi-nn","last_synced_at":"2025-07-12T01:13:08.443Z","repository":{"id":45215668,"uuid":"351912685","full_name":"bytecodealliance/wasi-nn","owner":"bytecodealliance","description":"High-level bindings for wasi-nn system calls","archived":false,"fork":false,"pushed_at":"2024-10-31T06:13:05.000Z","size":251053,"stargazers_count":49,"open_issues_count":22,"forks_count":37,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-06-13T00:09:14.575Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/bytecodealliance.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":"2021-03-26T21:09:48.000Z","updated_at":"2025-05-08T18:06:04.000Z","dependencies_parsed_at":"2024-04-26T18:27:39.007Z","dependency_job_id":"feb35d70-f70b-40ef-a583-6f4de33289b1","html_url":"https://github.com/bytecodealliance/wasi-nn","commit_stats":{"total_commits":51,"total_committers":2,"mean_commits":25.5,"dds":"0.21568627450980393","last_synced_commit":"9c2028085f95afdc5cb7d92b867a3664770680d8"},"previous_names":["bytecodealliance/as-wasi-nn"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bytecodealliance/wasi-nn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytecodealliance%2Fwasi-nn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytecodealliance%2Fwasi-nn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytecodealliance%2Fwasi-nn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytecodealliance%2Fwasi-nn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bytecodealliance","download_url":"https://codeload.github.com/bytecodealliance/wasi-nn/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytecodealliance%2Fwasi-nn/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259559622,"owners_count":22876489,"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":"2025-07-12T01:13:07.895Z","updated_at":"2025-07-12T01:13:08.432Z","avatar_url":"https://github.com/bytecodealliance.png","language":"CSS","readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003e\u003ccode\u003ewasi-nn\u003c/code\u003e\u003c/h1\u003e\n\n  \u003cstrong\u003eA \u003ca href=\"https://bytecodealliance.org/\"\u003eBytecode Alliance\u003c/a\u003e project\u003c/strong\u003e\n\n  \u003cp\u003e\u003cstrong\u003eHigh-level bindings for writing wasi-nn applications\u003c/strong\u003e\u003c/p\u003e\n\n  \u003cp\u003e\n    \u003ca href=\"https://github.com/bytecodealliance/wasi-nn/actions?query=workflow%3ACI\"\u003e\n      \u003cimg src=\"https://github.com/bytecodealliance/wasi-nn/workflows/CI/badge.svg\" alt=\"CI status\"/\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://crates.io/crates/wasi-nn\"\u003e\n      \u003cimg src=\"https://img.shields.io/crates/v/wasi-nn.svg\"/\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://www.npmjs.com/package/as-wasi-nn\"\u003e\n      \u003cimg src=\"https://img.shields.io/npm/v/as-wasi-nn.svg\"/\u003e\n    \u003c/a\u003e\n  \u003c/p\u003e\n\n\u003c/div\u003e\n\n### Introduction\n\nThis project provides high-level wasi-nn bindings for Rust and AssemblyScript. The basic idea: write\nyour machine learning application in a high-level language using these bindings, compile it to\nWebAssembly, and run it in a WebAssembly runtime that supports the [wasi-nn] proposal, such as\n[Wasmtime] and [WasmEdge].\n\n[Wasmtime]: https://wasmtime.dev\n[wasi-nn]: https://github.com/WebAssembly/wasi-nn\n[WasmEdge]: https://github.com/WasmEdge/WasmEdge\n\n\u003e __NOTE__: These bindings are experimental (use at your own risk) and subject to upstream changes\n\u003e in the [wasi-nn] specification.\n\n\n### Use\n\n - In Rust, download the [crate from crates.io][crates.io] by adding `wasi-nn = \"0.6.0\"` as a Cargo\n   dependency; more information in the [Rust README].\n - In AssemblyScript, download the [package from npmjs.com][npmjs.com] by adding `\"as-wasi-nn\":\n   \"^0.3.0\"` as an NPM dependency; more information in the [AssemblyScript README].\n - When you call Wasmtime, you'll need to pass the flag `--wasi-modules=experimental-wasi-nn` to\n   enable the use use of wasi-nn.\n - For WasmEdge, you should install the [wasi-nn plugin] first.\n\n[crates.io]: https://crates.io/crates/wasi-nn\n[Rust README]: rust/README.md\n[npmjs.com]: https://www.npmjs.com/package/wasi-nn\n[AssemblyScript README]: assemblyscript/README.md\n[wasi-nn plugin]: https://wasmedge.org/docs/category/ai-inference\n\n### Examples\n\nThis repository includes examples of using these bindings. See the [Rust example] and\n[AssemblyScript example] to walk through an end-to-end image classification using an AlexNet model.\nCurrently the example uses OpenVino as the backend. If you are running Ubuntu, you can simply run\nthe script to install the supported version`.github/actions/install-openvino/install.sh`. Otherwise\nyou'll need to visit the [Installation Guides] and follow the instructions for your OS. The version\nof OpenVino currently supported is openvino_2022.1.0.643.\n\nOnce you have OpenVino installed, run them with:\n - `./build.sh rust` runs the [Rust example]\n - `./build.sh as` runs the [AssemblyScript example]\n\n[Rust example]: rust/examples/classification-example\n[AssemblyScript example]: assemblyscript/examples/object-classification.ts\n[Installation Guides]: https://docs.openvino.ai/2023.3/openvino_docs_install_guides_overview.html\n\nTo run examples in WasmEdge, consult this article: [WasmEdge wasi-nn examples].\n\n[WasmEdge wasi-nn examples]: https://github.com/second-state/WasmEdge-WASINN-examples\n\n### Related Links\n\n- [WASI]\n- [wasi-nn]\n- [Wasmtime]\n- [WasmEdge]\n- [AssemblyScript]\n- [OpenVino]\n\n[WASI]: https://github.com/WebAssembly/WASI\n[AssemblyScript]: https://www.assemblyscript.org/\n[OpenVino]: https://docs.openvinotoolkit.org/latest/index.html\n\n### License\n\nThis project is licensed under the Apache 2.0 license. See [LICENSE] for more details.\n\n[LICENSE]: LICENSE\n\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in\nthis project by you, as defined in the Apache-2.0 license, shall be licensed as above, without any\nadditional terms or conditions.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytecodealliance%2Fwasi-nn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbytecodealliance%2Fwasi-nn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytecodealliance%2Fwasi-nn/lists"}