swiftlang/swift-for-wasm-examples

Swift

228

62 commits

updated Aug 28, 2026

See the code

README

Swift for WebAssembly Example Packages

A collection of example projects using Swift's support for WebAssembly. To learn more, see:

The repository is split into multiple subdirectories:

  • The AudioWorkstation package demonstrates use of WebAssembly for application plugins;
  • The WebGPUDemo package demonstrates use of WebAssembly in the browser, with Swift bindings to the WebGPU API.
  • The DOMRefTypes package demonstrates use of WebAssembly reference types for high performance bridging to DOM Web APIs. This specific package is currently provided for advanced use cases only.

Contributing to this repository

Contributions to Swift are welcomed and encouraged! Please see the Contributing to Swift guide.

To be a truly great community, Swift.org needs to welcome developers from all walks of life, with different backgrounds, and with a wide range of experience. A diverse and friendly community will have more great ideas, more unique perspectives, and produce more great code. We will work diligently to make the Swift community welcoming to everyone.

To give clarity of what is expected of our members, Swift has adopted the code of conduct defined by the Contributor Covenant. This document is used across many open source communities, and we think it articulates our values well. For more, see the Code of Conduct.

Code of Conduct

Like all Swift.org projects, we would like these example projects to foster a diverse and friendly community. We expect contributors to adhere to the Swift.org Code of Conduct.

Contributors

MaxDesiatov

48 commits

shahmishal

7 commits

parispittman

3 commits

heckj

2 commits

swiftlang/swift-for-wasm-examples

Swift

228

62 commits

updated Aug 28, 2026

See the code

README

Swift for WebAssembly Example Packages

A collection of example projects using Swift's support for WebAssembly. To learn more, see:

The repository is split into multiple subdirectories:

  • The AudioWorkstation package demonstrates use of WebAssembly for application plugins;
  • The WebGPUDemo package demonstrates use of WebAssembly in the browser, with Swift bindings to the WebGPU API.
  • The DOMRefTypes package demonstrates use of WebAssembly reference types for high performance bridging to DOM Web APIs. This specific package is currently provided for advanced use cases only.

Contributing to this repository

Contributions to Swift are welcomed and encouraged! Please see the Contributing to Swift guide.

To be a truly great community, Swift.org needs to welcome developers from all walks of life, with different backgrounds, and with a wide range of experience. A diverse and friendly community will have more great ideas, more unique perspectives, and produce more great code. We will work diligently to make the Swift community welcoming to everyone.

To give clarity of what is expected of our members, Swift has adopted the code of conduct defined by the Contributor Covenant. This document is used across many open source communities, and we think it articulates our values well. For more, see the Code of Conduct.

Code of Conduct

Like all Swift.org projects, we would like these example projects to foster a diverse and friendly community. We expect contributors to adhere to the Swift.org Code of Conduct.

Contributors

MaxDesiatov

48 commits

shahmishal

7 commits

parispittman

3 commits

heckj

2 commits

Languages

Swift

76.4%

JavaScript

7.6%

C

5.4%

WGSL

4.7%

HTML

3.9%

WebAssembly

1.3%