<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/getting-started-with-web-assembly-and-kotlin-multiplatform-uz7lhuppb" -->

---
title: Getting Started with Web Assembly and Kotlin Multiplatform
description: A beginner-friendly guide to setting up a Kotlin Multiplatform project that compiles to WebAssembly and runs in the browser. Covers project creation in...
canonical: https://daily.dev/posts/getting-started-with-web-assembly-and-kotlin-multiplatform-uz7lhuppb
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Getting Started with Web Assembly and Kotlin Multiplatform | daily.dev
og:description: A beginner-friendly guide to setting up a Kotlin Multiplatform project that compiles to WebAssembly and runs in the browser. Covers project creation in...
og:url: https://daily.dev/posts/getting-started-with-web-assembly-and-kotlin-multiplatform-uz7lhuppb
og:image: https://api.daily.dev/og/posts/UZ7lhUpPb.png
og:image:alt: Getting Started with Web Assembly and Kotlin Multiplatform
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Getting Started with Web Assembly and Kotlin Multiplatform

**[Touchlab](https://daily.dev/sources/touchlab)** · 6 min read · 0 upvotes · 0 comments

## Summary

A beginner-friendly guide to setting up a Kotlin Multiplatform project that compiles to WebAssembly and runs in the browser. Covers project creation in IntelliJ IDEA, configuring the `build.gradle.kts` file with the `wasmJs` target, creating the HTML entry point, and running the dev server with Gradle. Also explains how the Kotlin compiler generates JavaScript glue code to handle the complex WebAssembly module instantiation process, including providing the thousands of required imports automatically.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://touchlab.co/kotlin-wasm-getting-started>

## Similar posts on daily.dev

- [Your First WebAssembly Program and Web App \(Written, Tested, and Deployed Entirely in the Web Browser\)](https://daily.dev/posts/your-first-webassembly-program-and-web-app-written-tested-and-deployed-entirely-in-the-web-browse-52yjwamn5) · Towards Data Science · 1 upvotes · 1 comments
- [When Should JavaScript Devs Use the Power of WebAssembly?](https://daily.dev/posts/when-should-javascript-devs-use-the-power-of-webassembly--9u3gr182s) · The New Stack · 3 upvotes · 0 comments
- [WebAssembly: an introduction](https://daily.dev/posts/webassembly-an-introduction-1iycvposp) · Flavio Copes · 3 upvotes · 0 comments

---

Tags: [#kotlin](https://daily.dev/tags/kotlin), [#webassembly](https://daily.dev/tags/webassembly), [#gradle](https://daily.dev/tags/gradle), [#compose-multiplatform](https://daily.dev/tags/compose-multiplatform)

[View this post on daily.dev](https://daily.dev/posts/getting-started-with-web-assembly-and-kotlin-multiplatform-uz7lhuppb)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Getting Started with Web Assembly and Kotlin Multiplatform","url":"https://daily.dev/posts/getting-started-with-web-assembly-and-kotlin-multiplatform-uz7lhuppb","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/getting-started-with-web-assembly-and-kotlin-multiplatform-uz7lhuppb"},"datePublished":"2026-08-02T07:15:27.459Z","dateModified":"2026-08-02T07:38:51.265Z","description":"A beginner-friendly guide to setting up a Kotlin Multiplatform project that compiles to WebAssembly and runs in the browser. Covers project creation in...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c9c10dbec2bc1ee37e0e2752bd61fd56?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c9c10dbec2bc1ee37e0e2752bd61fd56?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Touchlab","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Touchlab","logo":"https://media.daily.dev/image/upload/s--CQ0u6GwB--/f_auto,q_auto/v1785654902/logos/touchlab?_a=BAMAMicg0","url":"https://daily.dev/sources/touchlab"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/getting-started-with-web-assembly-and-kotlin-multiplatform-uz7lhuppb","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"kotlin,webassembly,gradle,compose-multiplatform","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Touchlab","item":"https://daily.dev/sources/touchlab"},{"@type":"ListItem","position":3,"name":"Getting Started with Web Assembly and Kotlin Multiplatform"}]}
```

