sliemeobn
(Simon Leeb)
August 25, 2026, 12:04pm
1
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 made possible very recently:
builds Embedded Swift WebAssembly with 6.4.x and swift-build (quite a recent achievement)
integrates ElementaryUI + BridgeJS in the frontend, including Fetch API networking
uses “NewCodable” (experimental) for shared Swift data types (both on the edge backend and web frontend)
uses async/await and throws like it’s nothing ; )
deploys Swift logic on Cloudflare Workers (edge runtime, ~107kB wasm fetch handler)
Find the source code here: GitHub - elementary-swift/example-cloudflare-worker: Full Stack Swift web tech demo using WebAssembly · GitHub
Now, "NewCodable" is still experimental, Swift 6.4 is not out yet, and using Embedded Swift still has a few usability quirks - but I think it is pretty exciting to see the steady progress in this area.
Feel free to ask any question!
14 Likes
FranzBusch
(Franz Busch)
August 25, 2026, 2:59pm
2
This is really great. Thanks for sharing.
sliemeobn:
I would love to hear if the FetchHTTPClient that we have prototyped could work for this as well. It is equally experimental as the NewCodable API.
sliemeobn
(Simon Leeb)
August 25, 2026, 3:46pm
3
I initially planned on using it, but then - oh, what horrors my eyes had to witness - in just the second line!!
import Foundation
So, with a single tear of disappointment rolling down my cheek, I silently shook my head and closed that GitHub tab again...
FranzBusch
(Franz Busch)
August 25, 2026, 3:54pm
4
Good point. We definitely want to get rid of the full Foundation dependency here.
sliemeobn
(Simon Leeb)
August 25, 2026, 3:56pm
5
I know of this PR - not sure if that is already all it takes to make it "embedded wasm" portable, but it's a start:
main ← MaxDesiatov:maxd/embedded-httpclient
opened 03:09PM - 27 Jul 26 UTC
### Motivation
Most users of `FetchHTTPClient` have constraints on binary siz… e, so this module needs to buildable in Embedded Swift.
### Modifications
Removed `import Foundation` from `Examples/WasmClient` and `FetchHTTPClient`
### Result
`Examples/WasmClient` is buildable with Embedded Swift.
### Test Plan
Manual testing, due to lack of Swift Testing availability in Embedded Swift.
1 Like
Super cool! How's the debugging experience for the client side code?