A transparent discovery signal based on current public GitHub metadata.
Recent activity35% weight
90
Community adoption25% weight
28
Maintenance state20% weight
85
License clarity10% weight
100
Project information10% weight
75
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
The goal was to make the state management concept of Redux simple, understandable & easy to use in Kotlin based projects. To achieve that, we adapted only the core concepts from Redux and slightly modified them. We excluded Android, Apple or any platform-specific dependencies. It is just pure Kotlin. By doing so, you are free to choose your architecture that best suits your codebase, no need to make any big refactor to fit in Flywheel. Don't be fooled by its simplicity, Flywheel got you covered for all practical use-cases. Even if we missed anything, it can be easily extended to support your use cases.
ALGORITHMICALLY RELATED
Similar Open-Source Projects
Selected from shared topics, language and repository description—not editorial ratings.
Race Tracker is a simple Android app built with Jetpack Compose and Material 3 that simulates a race between two participants with different speeds. It includes start, pause, and reset controls with progress indicators, while serving as a practice project for concurrency in Kotlin using coroutines.
Each GitHub release includes a Flywheel.xcframework.zip artifact with a matching Package.swift manifest containing the URL and checksum.
Building the XCFramework locally
The XCFramework is not checked into the repository. To build it from source:
# Build and copy into flywheel/xcframework/ for local SPM use
./gradlew :flywheel:copyXCFrameworkToRepo
# Build, zip and generate a release-ready Package.swift with checksum
./gradlew :flywheel:generatePackageSwift
# Full release prep: build XCFramework, generate Package.swift, copy to repo root
./gradlew prepareSpmRelease
Usage
This is how a simple counter example looks like.
Define a state.
data class CounterState(val counter: Int = 0) : State
Define a reducer that updates the state based on the action & current state.
val reduce = reducerForAction<CounterAction, CounterState> { action, state ->
with(state) {
when (action) {
is CounterAction.IncrementAction -> copy(counter = counter + 1)
is CounterAction.DecrementAction -> copy(counter = counter - 1)
}
}
}
Create a StateReserve.
val stateReserve = StateReserve(
initialState = InitialState.set(CounterState()),
reduce = reduce)
Listen for state changes
stateReserve.states.collect { state -> println(state.counter) }
Send actions to StateReserve to update the state.
stateReserve.dispatch(IncrementAction)
To learn more about Flywheel, head on over to our wiki.
License
Copyright (C) 2021 Abhi Muktheeswarar
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.