Run Swift in browsers

SwiftWasm compiles your Swift code to WebAssembly.

Sign up for our mailing list:

Try Swift on WebAssembly now

Compile Swift in the cloud and run in your browser.

Check out how to get started and create a browser app written in Swift on your local machine.

Are you looking for a powerful playground environment with access to the SwiftUI API in you browser? Try our SwiftWasm Pad!

You can also build and run short snippets right here in the text input below.

How you can help

Sponsor our work

The SwiftWasm organization needs funding to continue sustainable development of our projects.

You can contribute on our GitHub Sponsors page or on Open Collective.

Resolve remaining issues

SwiftWasm is ready for early adopters, but still needs extensive testing and polishing.

Want to help? See the list of outstanding issues for info on what still needs to be done.

Upstream patches

We're working on integrating our patches into the official Swift compiler.

Want to help? See the pull request to see which commits needs to be submitted.

Design web bindings

Wouldn't it be nice to invoke web APIs directly from Swift?

Want to help? Have a look at JavaScriptKit and give it a try. Report issues if you see any, submit PRs, and spread the word!

Credits

Getting Swift to work on WebAssembly required the hard work of many people:

Thanks.