kirok
Frontend logic library
High performance
Kirok compiles your code to WebAssembly with Kotlin/WASM so your code
runs fast. Simple
Write your logic and use it in your frontend environment. You can focus
on writing logic and showing it to users. Simple code
// Index.kt
@Serializable
@Model
data class Index(var count: Int = 0)
@Init
fun init(): Index = Index()
@Intent
fun add(model: Index) {
model.count += 1
}
<!-- App.svelte -->
<script>
import { useIndex } from "./kirok/Index";
const [simpleCounter, { add }] = useIndex()
</script>
<div>
<button on:click={() => add()}>{$simpleCounter.count}</button>
</div>
Cool performance
Calculate fibonacci numbers
Kirok compiles your code to WebAssembly with Kotlin/WASM so your code
runs fast. Get started