{"id":13472769,"url":"https://github.com/WebAssembly/WASI","last_synced_at":"2025-03-26T17:31:17.996Z","repository":{"id":37271166,"uuid":"179135166","full_name":"WebAssembly/WASI","owner":"WebAssembly","description":"WebAssembly System Interface","archived":false,"fork":false,"pushed_at":"2024-10-21T17:40:57.000Z","size":2686,"stargazers_count":4878,"open_issues_count":87,"forks_count":254,"subscribers_count":207,"default_branch":"main","last_synced_at":"2024-10-22T08:09:03.360Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WebAssembly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"Contributing.md","funding":null,"license":"LICENSE.md","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":"2019-04-02T18:23:05.000Z","updated_at":"2024-10-22T08:03:22.000Z","dependencies_parsed_at":"2023-02-15T17:31:11.475Z","dependency_job_id":"923e3c56-c121-41bc-8e44-efdde5690dd7","html_url":"https://github.com/WebAssembly/WASI","commit_stats":{"total_commits":380,"total_committers":61,"mean_commits":6.229508196721311,"dds":0.7131578947368421,"last_synced_commit":"2980bb39e1d2a4a2adae4748908cb4325cd41a26"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebAssembly%2FWASI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebAssembly%2FWASI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebAssembly%2FWASI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebAssembly%2FWASI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WebAssembly","download_url":"https://codeload.github.com/WebAssembly/WASI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221893515,"owners_count":16898643,"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-07-31T16:00:57.828Z","updated_at":"2025-03-26T17:31:17.989Z","avatar_url":"https://github.com/WebAssembly.png","language":"Rust","readme":"[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4323447.svg)](https://doi.org/10.5281/zenodo.4323447)\n    \n# WebAssembly System Interface\n\n![WASI](WASI.png)\n\nThe WebAssembly System Interface (WASI) is a set of APIs for WASI being\ndeveloped for eventual standardization by the WASI Subgroup, which is a\nsubgroup of the WebAssembly Community Group.\n\nWASI started with launching what is now called [Preview 1], an API using\nthe witx IDL, and it is now widely used. Its major influences are POSIX and\nCloudABI.\n\n[WASI Preview 2] is now stable, and is a modular collection of\nAPIs defined with the [Wit IDL], and it incorporates many of the lessons\nlearned from Preview 1, including adding support for a wider range of\nsource languages, modularity, a more expressive type system,\nvirtualizability, and more.\n\n[Preview 1]: https://github.com/WebAssembly/WASI/tree/main/legacy/README.md\n[WASI Preview 2]: https://github.com/WebAssembly/WASI/blob/main/wasip2/README.md\n[Wit IDL]: https://github.com/WebAssembly/component-model/blob/main/design/mvp/WIT.md\n\n## Find the APIs\n\nDevelopment of each API happens in its own repo, which you can access\nfrom the [proposals list](Proposals.md).\n\nThis repo is for general discussion, as well as documenting how we work\nand high-level goals.\n\n## Propose a new API\n\nIf you would like to create a new proposal, get started with our\n[Contributing guide](Contributing.md).\n\nAll new API proposals should use the new format and the new repo structure that is shown in the [proposal template](https://github.com/WebAssembly/wasi-proposal-template).\n\nSee the [Wit in WASI](docs/WitInWasi.md) document for more information about using Wit for WASI proposals.\n\n## WASI High Level Goals\n\n(In the spirit of [WebAssembly's High-Level Goals](https://github.com/WebAssembly/design/blob/main/HighLevelGoals.md).)\n\n1. Define a set of portable, modular, runtime-independent, and\n   WebAssembly-native APIs which can be used by WebAssembly code to interact\n   with the outside world. These APIs preserve the essential sandboxed nature of\n   WebAssembly through a [Capability-based] API design.\n2. Specify and implement incrementally. Start with a Minimum Viable Product\n   (MVP), then adding additional features, prioritized by feedback and\n   experience.\n3. Supplement API designs with documentation and tests, and, when feasible,\n   reference implementations which can be shared between wasm engines.\n4. Make a great platform:\n    * Work with WebAssembly tool and library authors to help them provide\n      WASI support for their users.\n    * When being WebAssembly-native means the platform isn't directly\n      compatible with existing applications written for other platforms,\n      design to enable compatibility to be provided by tools and libraries.\n    * Allow the overall API to evolve over time; to make changes to API\n      modules that have been standardized, build implementations of them\n      using libraries on top of new API modules to provide compatibility.\n\n[Capability-based]: https://en.wikipedia.org/wiki/Capability-based_security\n\n## WASI Design Principles\n\n### Capability-based security\n\nWASI is designed with capability-based security principles, using the\nfacilities provided by the Wasm [component model]. All access to external\nresources is provided by capabilities.\n\nThere are two kinds of capabilities:\n\n - Handles, defined in the [component-model type system], dynamically\n   identify and provide access to resources. They are unforgeable, meaning\n   there's no way for an instance to acquire access to a handle other than\n   to have another instance explicitly pass one to it.\n\n - Link-time capabilities, which are functions which require no handle\n   arguments, are used sparingly, in situations where it's not necessary\n   to identify more than one instance of a resource at runtime. Link-time\n   capabilities are *interposable*, so they are still refusable in a\n   capability-based security sense.\n\nWASI has no *ambient authorities*, meaning that there are no global\nnamespaces at runtime, and no global functions at link time.\n\n[component model]: https://github.com/WebAssembly/component-model\n[component-model type system]: https://github.com/WebAssembly/component-model/blob/main/design/mvp/Explainer.md#type-definitions\n\nNote that this is a different sense of \"capability\" than [Linux\ncapabilities](http://man7.org/linux/man-pages/man7/capabilities.7.html)\nor the withdrawn [POSIX\ncapabilities](https://archive.org/details/posix_1003.1e-990310), which\nare per-process rather than per-resource.\n\n### Interposition\n\nInterposition in the context of WASI interfaces is the ability for a\nWebassembly instance to implement a given WASI interface, and for a\nconsumer WebAssembly instance to be able to use this implementation\ntransparently. This can be used to adapt or attenuate the functionality\nof a WASI API without changing the code using it.\n\nComponent model interfaces always support link-time interposition. While\nWASI APIs are often implemented in hosts, they can also be implemented\nin Wasm, which may itself be a wrapper around the host. This may be used\nto implement *attenuation*, providing filtered access to the underlying\nhost-provided functionality.\n\nInterposition is sometimes referred to as \"virtualization\", however we\nuse \"interposition\" here because the word \"virtualization\" has several\nrelated meanings.\n\n### Compatibility\n\nCompatibility with existing applications and libraries, as well as\nexisting host platforms, is important, but will sometimes be in conflict\nwith overall API cleanliness, safety, performance, or portability.\nWhere practical, WASI seeks to keep the WASI API itself free of\ncompatibility concerns, and provides compatibility through libraries,\nsuch as WASI libc, and tools. This way, applications which don't require\ncompatibility for compatibility's sake aren't burdened by it.\n\n### Portability\n\nPortability is important to WASI, however the meaning of portability\nwill be specific to each API.\n\nWASI's modular nature means that engines don't need to implement every\nAPI in WASI, so we don't need to exclude APIs just because some host\nenvironments can't implement them. We prefer APIs which can run across\na wide variety of engines when feasible, but we'll ultimately decide\nwhether something is \"portable enough\" on an API-by-API basis.\n\n### Modularity\n\nWASI will include many interfaces that are not appropriate for every host\nenvironment, so WASI uses the component model's worlds mechanism to allow\nspecific sets of APIs to be described which meet the needs of different\nenvironments.\n","funding_links":[],"categories":["Rust","others","Projects"],"sub_categories":["Libraries"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWebAssembly%2FWASI","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FWebAssembly%2FWASI","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWebAssembly%2FWASI/lists"}