MCPcopy Index your code
hub / github.com/bytecodealliance/component-docs

github.com/bytecodealliance/component-docs @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
73 symbols 128 edges 29 files 9 documented · 12% 1 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

WebAssembly Component Model Documentation

This repository contains user-facing documentation for the WebAssembly component model. "User-facing" means it focuses on how to use the component model, not on the internal design and implementation details.

The documentation is published at https://component-model.bytecodealliance.org/.

Documentation on WASI (WebAssembly System Interface) can be found at https://wasi.dev/. See the wasi.dev repository to contribute to that documentation.

Contributions are welcome - see Contributing for more info. Planned work is listed in the Issues section, but if there's content missing that you think would be helpful to gain understanding of the component model, please feel free to add a new issue, or send a PR directly!

Extension points exported contracts — how you extend this code

AsI32 (Interface)
(no doc) [9 implementers]
component-model/examples/tutorial/calculator/src/bindings.rs
AsI32 (Interface)
(no doc) [9 implementers]
component-model/examples/tutorial/adder/src/bindings.rs
AsI32 (Interface)
(no doc) [9 implementers]
component-model/examples/tutorial/command/src/bindings.rs
Guest (Interface)
(no doc) [1 implementers]
component-model/examples/tutorial/calculator/src/bindings.rs
Guest (Interface)
(no doc) [1 implementers]
component-model/examples/tutorial/adder/src/bindings.rs

Core symbols most depended-on inside this repo

exit_if_error
called by 5
component-model/examples/example-c-host/host.c
add
called by 4
component-model/examples/tutorial/python/app.py
changeTab
called by 3
component-model/theme/tabs.js
as_i32
called by 3
component-model/examples/tutorial/calculator/src/bindings.rs
syncAll
called by 2
component-model/theme/tabs-a11y.js
eval_expression
called by 2
component-model/examples/tutorial/command/src/bindings.rs
as_i32
called by 2
component-model/examples/tutorial/command/src/bindings.rs
add
called by 2
component-model/examples/example-host/src/sync_add.rs

Shape

Function 42
Method 17
Class 7
Interface 5
Enum 2

Languages

Rust63%
TypeScript18%
Python8%
C5%
Go3%
C#3%

Modules by API surface

component-model/examples/tutorial/calculator/src/bindings.rs12 symbols
component-model/examples/tutorial/command/src/bindings.rs9 symbols
component-model/examples/tutorial/adder/src/bindings.rs7 symbols
component-model/theme/tabs-a11y.js5 symbols
component-model/examples/tutorial/command/src/main.rs5 symbols
component-model/theme/tabs-url-sync.js4 symbols
component-model/examples/example-host/src/state.rs4 symbols
scripts/generate_sitemap.py3 symbols
component-model/examples/example-host/src/main.rs3 symbols
component-model/examples/tutorial/python/app.py2 symbols
component-model/examples/tutorial/go/adder/main.go2 symbols
component-model/examples/tutorial/csharp/adder/Component.cs2 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add component-docs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact