kirok Docs
한국어

kirok

Frontend logic library

> go run github.com/devngho/kirok-cli@latest init

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

A chart comparing the time it takes to calculate Fibonacci numbers in Chrome. A chart comparing the time it takes to calculate Fibonacci numbers in Firefox. Kirok compiles your code to WebAssembly with Kotlin/WASM so your code runs fast.

Get started

> go run github.com/devngho/kirok-cli@latest init

Get Started
MIT License Copyright © 2023 devngho