kiwi
Cassowary constraint solving
Summary
| Latest Version | Unknown |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-27 04:30 |
Tags
Installation
nimble install kiwi
choosenim install kiwi
git clone https://github.com/yglukhov/kiwi
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| kiwi | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/yglukhov/kiwi |
|---|---|
| Homepage | https://github.com/yglukhov/kiwi |
| Documentation | View Documentation |
| Registry Source | nimble_official |
README
kiwi

A Nim port of the kiwi-java implementation of the Cassowary constraint solving algorithm
Usage
import kiwi
let s = newSolver()
let x = newVariable()
let y = newVariable()
s.addConstraint(x == 20)
s.addConstraint(x + 2 == y + 10)
s.updateVariables()
assert(x.value == 20)
assert(y.value == 12)
Links
- overconstrained - collection of similar projects (github)