/kotlin-wasm-examples

Examples with Kotlin/Wasm

Primary LanguageKotlinApache License 2.0Apache-2.0

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.

To know more about Kotlin wasm, please visit https://kotl.in/wasm.

Examples

  • Compose Image Viewer — Web version of Image Viewer application built with Compose Multiplatform
  • Browser Example -- A simple app showing "Hello World" in the browser using DOM API.
  • Node.js Example -- A simple app printing "Hello World" in the Node.js.
  • KoWasm -- Server-side and full stack development with Kotlin and WebAssembly leveraging WASI and Component Model.

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 instruction in the README.md

Feedback & Questions

Try examples, and share your feedback and ask questions in the Kotlin Slack #webassembly channel (if you’re not a member, apply here) or on Twitter to @bashorov.