Skip to content

Kotlin/kotlin-wasm-examples

Repository files navigation

Incubator

Kotlin/Wasm examples

This repository contains a collection of examples demonstrating how to use Kotlin/Wasm. Each example includes the source code and a README.md file explaining how to build and run the example.

Note: To know more about Kotlin/Wasm, see the Kotlin documentation.

Examples

These are the Kotlin/Wasm examples you can try:

  • Compose example — A simple Compose Multiplatform application template
  • Compose Jetsnack — Web version of a Jetsnack application built with Compose Multiplatform
  • Compose image viewer — Web version of an image viewer application built with Compose Multiplatform
  • Browser example — A simple application showing "Hello World" in the browser using DOM API
  • Node.js example — A simple application printing "Hello World" in Node.js
  • KoWasm — Server-side and full stack development with Kotlin and WebAssembly leveraging WASI and Component Model
  • WASI example — A simple application using WASI API in Node.js and Deno

Build and run

To build and run an example, follow these steps:

  1. Clone this repository.
  2. Navigate to the directory of the example you want to build and run.
  3. Follow the instructions in the README.md file of the example you want to build and run.

Feedback and questions

Try the examples and share your feedback or questions in our #webassembly Slack channel. Get a Slack invite. You can also share your comments with @bashorov on X (Twitter).