Home

Awesome

Incubator

This example showcases a web application built with Compose Multiplatform for web and Kotlin/Wasm.

Check it out:

Static Badge.

Compose Multiplatform for web

Note: Web support is an Alpha feature. It may be changed at any time. You can use it in scenarios before production. We would appreciate your feedback on GitHub.

Join the compose-web community.

Compose Multiplatform for web enables sharing your mobile or desktop UIs on the web.

Compose Multiplatform for web is based on Kotlin/Wasm, the newest target for Kotlin Multiplatform projects. This enables running your code in the browser, leveraging WebAssembly's advantages like high and consistent application performance.

Follow the instructions in the sections below to try out this application built with Compose Multiplatform for web and Kotlin/Wasm.

Set up the environment

Before starting, ensure you have the necessary IDE and browser setup to run the application.

IDE

We recommend using IntelliJ IDEA 2023.1 or later to work with the project. It supports Kotlin/Wasm out of the box.

Browser (for Kotlin/Wasm target)

To run applications built with Kotlin/Wasm in a browser, you need a browser supporting the Wasm Garbage Collection (GC) feature:

Chrome and Chromium-based

Firefox

Safari/WebKit

Wasm GC support is currently under active development.

Note: For more information about the browser versions, see the Troubleshooting documentation.

Build and run

To build and run the application:

  1. In IntelliJ IDEA, open the repository.
  2. Run the application by typing one of the following Gradle commands in the terminal:

Feedback and questions

Give it a try and share your feedback or questions in our #compose-web Slack channel. Get a Slack invite. You can also share your comments with @bashorov on X (Twitter).

Learn more