|
| 1 | +## Component Model Concepts |
| 2 | + |
| 3 | +This section introduces the core concepts and [rationale](./why-component-model.md) of the component model. |
| 4 | + |
| 5 | +* A [WebAssembly Component](./components.md) is the next evolution of core WebAssembly binaries. |
| 6 | + * WebAssembly components are *nestable* -- they may contain one or more core modules and/or sub-components composed together. |
| 7 | +* The Component Model extends core WebAssembly by introducing higher level types and interface-driven development |
| 8 | + * [WebAssembly Interface Types (WIT)][wit] is the [IDL (Interface Definition Language)][wiki-idl] used to formally define functionality for WebAssembly modules. |
| 9 | + * With WIT, WebAssembly components gain the ability to conform an language-agnostic and encode that support, so any WebAssembly component binary can be interrogated *and* executed. |
| 10 | + * An [Interface](./interfaces.md) describes the types and functions used for a specific, focused bit of functionality. |
| 11 | + * A [World](./worlds.md) assembles interfaces to express what features a component offers, and what features it depends on. |
| 12 | + * A [Package](./packages.md) is a set of WIT files containing a related set of interfaces and worlds. |
| 13 | +* The Component Model introduces the idea of a "platform" to core WebAssembly -- enabling the structured, standardized use of "host" functionality for WebAssembly "guest"s. |
| 14 | + * The WebAssembly System Interface (WASI) defines in WIT a family of interfaces for common system-level functions. |
| 15 | + * WASI defines common execution environments such as the command line (`wasi:cli`) or a HTTP server (`wasi:http`). |
| 16 | +* The Component Model introducs makes core WebAssembly composable -- components that provide functionality and those that use them can be composed together into *one* resulting component |
| 17 | + |
| 18 | +> [!NOTE] |
| 19 | +> The Component Model is stewarded by the Bytecode Alliance and designed [in the open][cm-repo]. |
| 20 | +> |
| 21 | +> See the [`WebAssembly/component-model`][cm-repo] repository for [Goals][goals],[use cases][use-cases], and [high level design choices][design-choices]. |
| 22 | +
|
| 23 | +[cm-repo]: https://github.com/WebAssembly/component-model |
| 24 | +[wiki-idl]: https://en.wikipedia.org/wiki/Web_IDL |
| 25 | +[goals]: https://github.com/WebAssembly/component-model/blob/main/design/high-level/Goals.md |
| 26 | +[use-cases]: https://github.com/WebAssembly/component-model/blob/main/design/high-level/UseCases.md |
| 27 | +[design-choices]: https://github.com/WebAssembly/component-model/blob/main/design/high-level/Choices.md |
| 28 | +[wit]: https://github.com/WebAssembly/component-model/blob/main/design/mvp/WIT.md |
| 29 | + |
| 30 | +[!NOTE]: # |
0 commit comments