# \#webassembly

**URL:** https://forums.swift.org/tag/webassembly/155.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [Introducing ElementaryUI: Swift in the Browser 🚀](https://forums.swift.org/t/introducing-elementaryui-swift-in-the-browser/83952)

<div class="topic-metadata">

**Author:** [@sliemeobn](https://forums.swift.org/u/sliemeobn)\
**Replies:** 17\
**Last updated:** [October 6, 2026, 9:12am UTC](https://forums.swift.org/t/introducing-elementaryui-swift-in-the-browser/83952 "2026-10-06T09:12:03Z")

</div>

Hello there, lovely Swift community! ▶ A web framework? In Swift? With WebAssembly? Yes: ElementaryUI ! :globe\_with\_meridians: Swift in the Browser - Run declarative Swift applications natively in the browser with WebAs…

---

## [Follow-up on StateUI: the same Swift code now runs on the web](https://forums.swift.org/t/follow-up-on-stateui-the-same-swift-code-now-runs-on-the-web/89904)

<div class="topic-metadata">

**Author:** [@idexus](https://forums.swift.org/u/idexus)\
**Replies:** 0\
**Last updated:** [October 5, 2026, 8:01pm UTC](https://forums.swift.org/t/follow-up-on-stateui-the-same-swift-code-now-runs-on-the-web/89904 "2026-10-05T20:01:05Z")

</div>

StateUI started as an experiment, and somehow it works now: Mac, iOS, Android, Windows, Linux, and as of this week the web too. It's the same Swift code compiled to WebAssembly, running right in the browser. It's stil…

---

## [Edge of Tomorrow: Full-Stack Swift on Both Sides of fetch](https://forums.swift.org/t/edge-of-tomorrow-full-stack-swift-on-both-sides-of-fetch/89175)

<div class="topic-metadata">

**Author:** [@sliemeobn](https://forums.swift.org/u/sliemeobn)\
**Replies:** 7\
**Last updated:** [August 31, 2026, 4:53pm UTC](https://forums.swift.org/t/edge-of-tomorrow-full-stack-swift-on-both-sides-of-fetch/89175 "2026-08-31T16:53:22Z")

</div>

Hello lovely community, I have been cooking something I’d like to show you: While this web app certainly neither looks impressive nor does anything particularly useful, it packs quite a few things that have only been…

---

## [Presenting Swiflow, a frontend stack for the web in Swift → Wasm](https://forums.swift.org/t/presenting-swiflow-a-frontend-stack-for-the-web-in-swift-wasm/87971)

<div class="topic-metadata">

**Author:** [@zzal](https://forums.swift.org/u/zzal)\
**Replies:** 7\
**Last updated:** [July 19, 2026, 8:07pm UTC](https://forums.swift.org/t/presenting-swiflow-a-frontend-stack-for-the-web-in-swift-wasm/87971 "2026-07-19T20:07:28Z")

</div>

Does the web need a Swift frontend stack? I don't know, but here's my take on what could be something for me to develop web apps in the future. (Swiflow is a solo project, built and maintained by me as a hands-on explor…

---

## [Possible double-destruction bug for ~Copyable type when targeting WASM](https://forums.swift.org/t/possible-double-destruction-bug-for-copyable-type-when-targeting-wasm/85078)

<div class="topic-metadata">

**Author:** [@joehink](https://forums.swift.org/u/joehink)\
**Replies:** 6\
**Last updated:** [March 8, 2026, 11:25am UTC](https://forums.swift.org/t/possible-double-destruction-bug-for-copyable-type-when-targeting-wasm/85078 "2026-03-08T11:25:32Z")

</div>

I’m seeing different destruction behavior for a move-only type (~Copyable) when compiling for native vs WebAssembly. Native behavior matches expectations, but the WASM build appears to destroy the value twice. struct S…

---

## [Agent Skills: Expert recipes for Swift on WebAssembly](https://forums.swift.org/t/agent-skills-expert-recipes-for-swift-on-webassembly/84075)

<div class="topic-metadata">

**Author:** [@kateinoigakukun](https://forums.swift.org/u/kateinoigakukun)\
**Replies:** 1\
**Last updated:** [January 12, 2026, 9:58pm UTC](https://forums.swift.org/t/agent-skills-expert-recipes-for-swift-on-webassembly/84075 "2026-01-12T21:58:49Z")

</div>

Hi everyone, Many of us are now using AI coding agents like Cursor, Claude Code, and so on. While they are great for general Swift tasks, they often struggle with the specifics of Swift on WebAssembly. They might sugges…

---

## [Question about Wasm embedded + JavaScriptKit](https://forums.swift.org/t/question-about-wasm-embedded-javascriptkit/84007)

<div class="topic-metadata">

**Author:** [@Morten\_Bek\_Ditlevsen](https://forums.swift.org/u/Morten_Bek_Ditlevsen)\
**Replies:** 7\
**Last updated:** [January 9, 2026, 10:28am UTC](https://forums.swift.org/t/question-about-wasm-embedded-javascriptkit/84007 "2026-01-09T10:28:57Z")

</div>

Hi all, I am experimenting with porting a small game I made using embedded Swift for esp32c6 to Wasm embedded. I first followed the guide Getting Started with Swift SDKs for WebAssembly and got the basic functionality …

---

## [How to pass JSON in and out of a Swift Wasm function from/to JS](https://forums.swift.org/t/how-to-pass-json-in-and-out-of-a-swift-wasm-function-from-to-js/82955)

<div class="topic-metadata">

**Author:** [@Geordie\_J](https://forums.swift.org/u/Geordie_J)\
**Replies:** 0\
**Last updated:** [October 30, 2025, 9:04pm UTC](https://forums.swift.org/t/how-to-pass-json-in-and-out-of-a-swift-wasm-function-from-to-js/82955 "2025-10-30T21:04:17Z")

</div>

I have asked a bunch of questions on these forums, especially in recent months, and I wanted to give something back. It’s a simple demo, but you might find it helpful if you’re trying to pass complex data types between …

---

## [WebAssembly Swift SDK selection in Swift 6.2](https://forums.swift.org/t/webassembly-swift-sdk-selection-in-swift-6-2/82267)

<div class="topic-metadata">

**Author:** [@taylorswift](https://forums.swift.org/u/taylorswift)\
**Replies:** 2\
**Last updated:** [September 21, 2025, 6:47pm UTC](https://forums.swift.org/t/webassembly-swift-sdk-selection-in-swift-6-2/82267 "2025-09-21T18:47:16Z")

</div>

i get this now, i think because the triple wasm32-unknown-wasip1 is matching both the normal wasm SDK, and the embedded one, and it is selecting the embedded one for some reason warning: multiple Swift SDKs match target…

---

## [Web App with Embedded Swift - POC demo](https://forums.swift.org/t/web-app-with-embedded-swift-poc-demo/75486)

<div class="topic-metadata">

**Author:** [@sliemeobn](https://forums.swift.org/u/sliemeobn)\
**Replies:** 36\
**Last updated:** [August 27, 2025, 5:17pm UTC](https://forums.swift.org/t/web-app-with-embedded-swift-poc-demo/75486 "2025-08-27T17:17:52Z")

</div>

Hello lovely community, I just pushed an Embedded Swift proof-of-concept Wasm app out the door that uses JavaScriptKit elementary-dom (the experimental reactive Elementary package I am playing with) SwiftPM for buildi…

---

## [Swift SDKs for WebAssembly now available on swift.org](https://forums.swift.org/t/swift-sdks-for-webassembly-now-available-on-swift-org/80405)

<div class="topic-metadata">

**Author:** [@Max\_Desiatov](https://forums.swift.org/u/Max_Desiatov)\
**Replies:** 8\
**Last updated:** [July 2, 2025, 9:54am UTC](https://forums.swift.org/t/swift-sdks-for-webassembly-now-available-on-swift-org/80405 "2025-07-02T09:54:23Z")

</div>

As the Platform Steering Group accepted the vision document for WebAssembly support, we’re excited to announce that Swift SDKs for Wasm are now available at swift.org/install. The website now also hosts a getting started…

---

## [Confused by JavaScriptKit crash](https://forums.swift.org/t/confused-by-javascriptkit-crash/79956)

<div class="topic-metadata">

**Author:** [@taylorswift](https://forums.swift.org/u/taylorswift)\
**Replies:** 0\
**Last updated:** [May 18, 2025, 12:07am UTC](https://forums.swift.org/t/confused-by-javascriptkit-crash/79956 "2025-05-18T00:07:19Z")

</div>

this crashes: let data: JSValue = JSObject.global\["Object"\].new() and yet this does not: let data: JSObject = JSObject.global\["Object"\].function!.new() why?

---

## [Swift Stream IDE](https://forums.swift.org/t/swift-stream-ide/79756)

<div class="topic-metadata">

**Author:** [@MikeIsaev](https://forums.swift.org/u/MikeIsaev)\
**Replies:** 4\
**Last updated:** [May 11, 2025, 8:04am UTC](https://forums.swift.org/t/swift-stream-ide/79756 "2025-05-11T08:04:11Z")

</div>

I'm working on a VS Code extension called Swift Stream IDE , which has been available on the official marketplace since last fall – but today, I'm finally ready to announce it. Its main features: Containerized develop…

---

## [Flappy Swift: A WebAssembly game written in Swift in ~100 KB](https://forums.swift.org/t/flappy-swift-a-webassembly-game-written-in-swift-in-100-kb/79262)

<div class="topic-metadata">

**Author:** [@sliemeobn](https://forums.swift.org/u/sliemeobn)\
**Replies:** 7\
**Last updated:** [April 23, 2025, 11:19pm UTC](https://forums.swift.org/t/flappy-swift-a-webassembly-game-written-in-swift-in-100-kb/79262 "2025-04-23T23:19:18Z")

</div>

Hello lovely community, I don't know about you, but thought it was about time that we have our own WebAssembly "Flappy Bird" clone. So, without further ado: Play Flappy Swift The cool part about it is that it animate…

---

## [Emsdk libc instead of WASI](https://forums.swift.org/t/emsdk-libc-instead-of-wasi/79361)

<div class="topic-metadata">

**Author:** [@VolodymyrBoichentsov](https://forums.swift.org/u/VolodymyrBoichentsov)\
**Replies:** 0\
**Last updated:** [April 18, 2025, 7:01pm UTC](https://forums.swift.org/t/emsdk-libc-instead-of-wasi/79361 "2025-04-18T19:01:09Z")

</div>

About couple month ago, I was tinkering with the SwiftWasm toolchain and Embedded Swift. known problems: Binaries compiled with SwiftWasm WASI are very large. Embedded Swift comes without "batteries", i.e. no libc and…

---

## [\[Pitch\] A Vision for WebAssembly Support in Swift](https://forums.swift.org/t/pitch-a-vision-for-webassembly-support-in-swift/79060)

<div class="topic-metadata">

**Author:** [@Max\_Desiatov](https://forums.swift.org/u/Max_Desiatov)\
**Replies:** 26\
**Last updated:** [April 15, 2025, 4:39pm UTC](https://forums.swift.org/t/pitch-a-vision-for-webassembly-support-in-swift/79060 "2025-04-15T16:39:39Z")

</div>

As WebAssembly support has been developed by the Swift community and significantly improved over the years, I would like to put up a pitch for a vision describing WebAssembly support in Swift. Your feedback would be high…

---

## [How to globally disable implicit #canImport(Foundation) availability?](https://forums.swift.org/t/how-to-globally-disable-implicit-canimport-foundation-availability/78939)

<div class="topic-metadata">

**Author:** [@taylorswift](https://forums.swift.org/u/taylorswift)\
**Replies:** 0\
**Last updated:** [March 29, 2025, 10:37pm UTC](https://forums.swift.org/t/how-to-globally-disable-implicit-canimport-foundation-availability/78939 "2025-03-29T22:37:41Z")

</div>

a “normal” WebAssembly build ought to end up producing something like this: Size of original WebAssembly binary: 8.81 MB Size after stripping debug symbols: 6.17 MB Size after optimization: 3.91 MB shockingly, after ad…

---

## [JavaScriptKit and Swift Concurrency](https://forums.swift.org/t/javascriptkit-and-swift-concurrency/78873)

<div class="topic-metadata">

**Author:** [@taylorswift](https://forums.swift.org/u/taylorswift)\
**Replies:** 7\
**Last updated:** [March 27, 2025, 10:22pm UTC](https://forums.swift.org/t/javascriptkit-and-swift-concurrency/78873 "2025-03-27T22:22:45Z")

</div>

i’ve spent a few days investigating the state of WebAPIKit and JavaScriptKit, and i find that the library is exceedingly Concurrency-unfriendly. many fundamental types such as JSString are non-Sendable (they have some la…

---

## [Bluetooth](https://forums.swift.org/t/bluetooth/76054)

<div class="topic-metadata">

**Author:** [@ColemanCDA](https://forums.swift.org/u/ColemanCDA)\
**Replies:** 1\
**Last updated:** [November 29, 2024, 2:42am UTC](https://forums.swift.org/t/bluetooth/76054 "2024-11-29T02:42:39Z")

</div>

PureSwift/Bluetooth is a Swift package with multiple libraries supporting the Bluetooth SIG specifications and protocols, including GAP, GATT, HCI, L2CAP, Classic (BR/EDR) and Low Energy support. Support for differen…

---

## [Wasm is not mentioned in swift 6.0 release](https://forums.swift.org/t/wasm-is-not-mentioned-in-swift-6-0-release/74833)

<div class="topic-metadata">

**Author:** [@felixfxu](https://forums.swift.org/u/felixfxu)\
**Replies:** 1\
**Last updated:** [September 22, 2024, 7:40am UTC](https://forums.swift.org/t/wasm-is-not-mentioned-in-swift-6-0-release/74833 "2024-09-22T07:40:26Z")

</div>

I think there is some progress in swift wasm in the 6.0 version, but why it's not mentioned in any document like Swift.org - Announcing Swift 6 ?

---

## [Swift Wasm for mobile cross-platform development?](https://forums.swift.org/t/swift-wasm-for-mobile-cross-platform-development/73292)

<div class="topic-metadata">

**Author:** [@bioche](https://forums.swift.org/u/bioche)\
**Replies:** 4\
**Last updated:** [July 28, 2024, 4:14pm UTC](https://forums.swift.org/t/swift-wasm-for-mobile-cross-platform-development/73292 "2024-07-28T16:14:21Z")

</div>

Hello Swift Community ! I have recently explored how to share code between fully native iOS and Android apps (Swift & Kotlin) and I'm currently evaluating if WebAssembly that would reuse our swift code would be a viable…

---

## [Some feedback from my short experience with SwiftWasm](https://forums.swift.org/t/some-feedback-from-my-short-experience-with-swiftwasm/69605)

<div class="topic-metadata">

**Author:** [@felixfxu](https://forums.swift.org/u/felixfxu)\
**Replies:** 11\
**Last updated:** [July 10, 2024, 1:47pm UTC](https://forums.swift.org/t/some-feedback-from-my-short-experience-with-swiftwasm/69605 "2024-07-10T13:47:11Z")

</div>

Hi, I tried swiftwasm for the last several days and I'd like to share my feedback here. First of all, I'm glad to be able to use swift language for wasm, which is mainly supported by the communities. It's great to achi…

---

## [Possibility to enable \`any\` in Embedded Swift](https://forums.swift.org/t/possibility-to-enable-any-in-embedded-swift/72535)

<div class="topic-metadata">

**Author:** [@MikeIsaev](https://forums.swift.org/u/MikeIsaev)\
**Replies:** 12\
**Last updated:** [June 18, 2024, 4:55pm UTC](https://forums.swift.org/t/possibility-to-enable-any-in-embedded-swift/72535 "2024-06-18T16:55:30Z")

</div>

Is it possible to optionally enable any and other features in Embedded Swift? I'm using it with WebAssembly for web development, and in this case, I completely understand and appreciate that String and its related functi…

---

## [Embedded Wasm and SwiftPM Dependencies: Duplicate Symbol Issue](https://forums.swift.org/t/embedded-wasm-and-swiftpm-dependencies-duplicate-symbol-issue/72180)

<div class="topic-metadata">

**Author:** [@MikeIsaev](https://forums.swift.org/u/MikeIsaev)\
**Replies:** 18\
**Last updated:** [June 13, 2024, 10:28am UTC](https://forums.swift.org/t/embedded-wasm-and-swiftpm-dependencies-duplicate-symbol-issue/72180 "2024-06-13T10:28:00Z")

</div>

During my experiments with Embedded Swift and WASM, I wrote U16String (a UTF-16 String implementation) and adapted the JavaScriptKit library to compile and work in Embedded mode. I'm using swift-for-wasm-examples as a f…

---

## [PoC: Improving macro build times with WebAssembly](https://forums.swift.org/t/poc-improving-macro-build-times-with-webassembly/70967)

<div class="topic-metadata">

**Author:** [@kabiroberai](https://forums.swift.org/u/kabiroberai)\
**Replies:** 32\
**Last updated:** [May 16, 2024, 5:26am UTC](https://forums.swift.org/t/poc-improving-macro-build-times-with-webassembly/70967 "2024-05-16T05:26:13Z")

</div>

The Lede I decided to take a crack at the whole "Building Macros with WebAssembly" idea and managed to put together something that improves build times by up to 10x even without any compiler integration! There's current…

---

## [Stdlib and runtime tests for Wasm/WASI now available on Swift CI](https://forums.swift.org/t/stdlib-and-runtime-tests-for-wasm-wasi-now-available-on-swift-ci/70385)

<div class="topic-metadata">

**Author:** [@Max\_Desiatov](https://forums.swift.org/u/Max_Desiatov)\
**Replies:** 12\
**Last updated:** [March 27, 2024, 7:49am UTC](https://forums.swift.org/t/stdlib-and-runtime-tests-for-wasm-wasi-now-available-on-swift-ci/70385 "2024-03-27T07:49:24Z")

</div>

As some of you closely following WebAssembly support in the Swift toolchain may have noticed, there's no longer a need to maintain a fork of the main branch of apple/swift repository for wasm32 and WASI platforms. The Sw…

---

## [GSoC 2024: Interest in building Swift Macros with WebAssembly](https://forums.swift.org/t/gsoc-2024-interest-in-building-swift-macros-with-webassembly/70256)

<div class="topic-metadata">

**Author:** [@CMDJojo](https://forums.swift.org/u/CMDJojo)\
**Replies:** 0\
**Last updated:** [February 25, 2024, 2:08am UTC](https://forums.swift.org/t/gsoc-2024-interest-in-building-swift-macros-with-webassembly/70256 "2024-02-25T02:08:11Z")

</div>

Hi there! I was happy seeing Swift be a mentor organisation for this year's GSoC. I scrolled through the project ideas and found the project "Building Swift Macros with WebAssembly" very interesting! I am writing here t…

---

## [GSOC 2024 - Applying for: Building Swift Macros with WebAssembly](https://forums.swift.org/t/gsoc-2024-applying-for-building-swift-macros-with-webassembly/70251)

<div class="topic-metadata">

**Author:** [@moste00](https://forums.swift.org/u/moste00)\
**Replies:** 0\
**Last updated:** [February 24, 2024, 9:24pm UTC](https://forums.swift.org/t/gsoc-2024-applying-for-building-swift-macros-with-webassembly/70251 "2024-02-24T21:24:38Z")

</div>

Hey guys, hope you're all well and doing great. I really liked this idea here about compiling macro implementation code to WASM. It hits all the sweet spots I like, and I would very much like to work on it this GSOC! L…

---

## [Swift wasm binary sizes?](https://forums.swift.org/t/swift-wasm-binary-sizes/51533)

<div class="topic-metadata">

**Author:** [@Syre](https://forums.swift.org/u/Syre)\
**Replies:** 30\
**Last updated:** [October 8, 2022, 2:02pm UTC](https://forums.swift.org/t/swift-wasm-binary-sizes/51533 "2022-10-08T14:02:56Z")

</div>

Hey folks, I had a need to delve into the world of WASM, and so I figured I'd see what Swift WASM is all about. Long story short, the environment that I'd like to deploy to is seriously memory constrained (less than 8M…

---

## [SwiftWasm 5.6.0 is now available](https://forums.swift.org/t/swiftwasm-5-6-0-is-now-available/57093)

<div class="topic-metadata">

**Author:** [@Max\_Desiatov](https://forums.swift.org/u/Max_Desiatov)\
**Replies:** 1\
**Last updated:** [May 2, 2022, 6:11pm UTC](https://forums.swift.org/t/swiftwasm-5-6-0-is-now-available/57093 "2022-05-02T18:11:27Z")

</div>

SwiftWasm maintainers are happy to announce the new release of SwiftWasm tracking upstream Swift 5.6! Notable WebAssembly-specific changes in this release: The toolchain is now available for Ubuntu 20.04 on aarch64 an…

[Next page](https://forums.swift.org/tag/webassembly/155.md?match_all_tags=true&page=1&tags%5B%5D=webassembly)
