hakate 3.4.1 indexed State management library enabling dependency-based state handling with features for creating, collecting, and managing parent-child state relationships. Integrates easily with build systems for seamless setup.
Bring this to kpkg
This library is indexed from the KMP ecosystem and already resolves through kpkg.dev's Maven Central proxy. Maintainers can verify the namespace and publish future versions to kpkg for free hosting, real download stats, and signed-provenance pages.
Publishing coming soonMetadata
Owner kigawa-net
Stars 3
Used by —
Health —
License —
Latest 3.4.1
Repository github.com/kigawa-net/hakate
Updated 2025-07-06 Readme Changelog hakate
About
A state managing library for kotlin
It can manage state with dependency
repository
Using
Requirement
Getting Started
1. add to dependency
pom.xml
<dependency>
<groupId>net.kigawa</groupId>
<artifactId>hakate</artifactId>
<version>1.0.0</version>
</dependency>
build.gradle.kts
implementation("net.kigawa:hakate:1.0.0")
2. write the code
new state
val initializer = HakateInitializer()
val dispatcher = initializer.newStateDispatcher()
val state = stateDispatcher.newState("default value" )
collect state
stateDispatcher.useState {
state.collect {
value = it
isSet = true
}
}
child state
stateDispatcher.useState {
val child = state.child { parent, prev: String? ->
return @child "$parent -child"
}
}
set state
state.set ("new value" )
Author
Making
Version
Example: 9.1.2
9 : major, destructive
1 : miner, new function
2 : miner, bug fix
Dependency
Artifact Dependency
org.jetbrains.kotlinx:kotlinx-coroutines-core
org.jetbrains.kotlin:kotlin-stdlib-js
org.jetbrains.kotlin:kotlin-stdlib
Dev Dependency
cl.franciscosolis.sonatype-central-upload
com.vanniktech.maven.publish
gradle
Related libraries Surfaced from shared tags and platforms — no rankings paid for.
kilua ★ 364
rjaros Composable web framework enabling modern web application development with declarative UI components, state management, server-side rendering, and support for WebAssembly and JavaScript targets. Shared: web, state-management, kotlin-coroutines fritz2 ★ 20
fritztwo Lightweight reactive web toolkit: type-safe HTML DSL, precise two-way data binding with fine-grained DOM updates, built-in state management, validation, routing, websockets and webcomponents. Shared: web, state-management, kotlin-coroutines kotlinx-benchmark ★ 635
Kotlin Toolkit for running benchmarks on multiplatform code, offering low noise, reliable results, statistical analysis, and detailed performance reports. Supports various target configurations and custom benchmark profiles. Shared: web, kotlin-dsl
github
io.github.gradle-nexus.publish-plugin:io.github.gradle-nexus.publish-plugin.gradle.plugin
kotlin
org.gradle.toolchains.foojay-resolver-convention
org.jetbrains.dokka
org.jetbrains.kotlin:kotlin-test-common
org.jetbrains.kotlin:kotlin-test-annotations-common
org.jetbrains.kotlin:kotlin-test-junit
org.jetbrains.kotlinx:kotlinx-coroutines-test
org.jetbrains.kotlin:kotlin-test
org.jetbrains.kotlin.multiplatform KStateMachine
DSL library for creating state machines and statecharts. Supports event-based transitions, reactive listening, nested and parallel states, typesafe transitions, undo transitions, and exports to diagrams. Zero dependencies.
Shared: state-management, kotlin-coroutines